postgresql82-server compile error on Apple Leopard with Macports 1.5

I wasn’t able to compile postgresql82-server on my machine, it’s unable to compile php5 with postgresql-client support as well. Think there might be some bugs on it, here is some quick short cut fix, to enable php5 + Postgresql82 compile on your Apple.

First of all, make clean on your postgresql82 port;

sudo port -vd clean portgresql82

After that, make some changes on config file;

export EDITOR=vim
sudo port edit postgresql82

remove the line –with-bonjour

After that change to postgresql working directory and run make command


cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql82/work/postgresql-8.2.5/
make

Now, it’s ready to compile and install

sudo port -vd install postgresql82-server

Done with postgresql, now with php5;

sudo port -dv install php5 +mysql5 +pear +postgresql +apache

MacPorts is fun.

* thanks spoonfork for putting up the solutions for me, wasn’t aware of it. Thanks Tun!

Related posts:

  1. Install MySQL5 Server on Apple Mac Leopard with MacPorts Previously I wrote a post on “installing postgresql 8.2 on...
  2. installing postgresql 8.2 on Leopard with macports postgresql! one of my favorite high performance open source db,...
  3. Problem Upgrade Apache2 on MacPorts I was trying to upgrade apache2 on my Macports but...
  4. How do I Start Application Services with launchctl When Apple Mac Leopard Boot Up If you have MySQL, PostgreSQL, Apache2 or other application installed...
  5. OS X Lion Macports OS X Lion Macports, Can I upgrade from Snow Leopard?...
  6. MySQL 5 Server Cannot Start on Apple Mac Leopard There were some problem during configuring MySQL5 Server on Leopard...
  7. Install MySQL5 on Mac OSX With Darwin Port Before installing MySQL5, please be sure you have Darwin Port...
  8. PostgreSQL Database signal 6 Error On Apple Mac After I have done PostgreSQL upgrade through MacPort, the database...
  9. Upgrade to php52 on FreeBSD By default, after portsnap to latest FreeBSD port tree, it...
  10. MySQL Cannot Connect with PHP in OSX I think some of you might have problem connecting to...

Tags: , ,

Leave a Reply