This is not in your path, so all references to these commands fail. These command reside in /opt/local/lib/postgres80/bin. The user you’ll need to su to to install the database is “postgres80”, not “postgres” like on Linux. Here are some notes to work round the problems you’ll encounter: Postgres OS-level user However, this doesn’t work as expected on Mac. Fix “make database”Īfter you install you need to run “make database” as per the installation guide. NB: The postgres client is called psql8, not psql like on Linux. Make one using the psql client: su - postgresql80 psql8 template1 > CREATE USER postgres There’s no user called “postgres” by default like on Linux. Change to the directory containing psql8 and run: # ln -s psql8 psql Add the postgres user to postgres Under Mac the database client is called “psql8”, but on Linux its “psql”. It’s left here just incase someone needs it… Gcc -lssl -L/opt/local/lib -I/opt/local/includes -lcrypto -o bannergrab bannergrab.cĮverything below here should no longer be required. Version 0.0.9 of yaptest introduced some Mac-friendly install scripts: # make databasemac # make installmac Building bannergrabĪpparently this should fix your compile problems on mac: The following dirty workaround will fix the problem, but I’d like a cleaner solution: # cd /usr/bin/ # mv perl perl-old # ln -s /opt/local/bin/perl Use the Mac Version of the Install Scripts However, the ports version is in /opt/local/bin/perl. Unhappily, all the PERL scripts in yaptest are hard-coded to use /usr/bin/perl. Don’t use 8.3 even if it’s installed for you. This will pull in postgres 8.3 as a dependency unfortunately. Install PERL’s Postgres DBI driver: port install p5-class-dbi-pg It is possible to get yaptest working on Postgres 8.2+, but the solution isn’t documented here. Next, install PostgreSQL v8.0.x: port install postgresql80-server If you haven’t done so already, you’ll need to install MacPorts. Deanx gave gave me some very useful hints on how to get yaptest working on Mac.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |