Having a pretty rough time getting php5 installed

Randall Wood randall.h.wood at alexandriasoftware.com
Sat Aug 9 12:29:41 PDT 2008

On Sat, Aug 9, 2008 at 3:12 PM, Scott Haneda <talklists at newgeo.com> wrote:
>> I would recommend to use everything from MacPorts. We have a HOWTO
>> for setting up Apache, MySQL and PHP:
>> <http://trac.macports.org/wiki/howto/MAMP>
> Not going to well, apache2 went in fine, mysql seems to now have gone
> in with a clean being done first.  I ran the load of the launcd file,
> that was fine, then when I run:
> sudo mysql5 mysql_install_db5
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/opt/local/var/run/mysql5/mysqld.sock' (2)

Is it possible that this instance is conflicting the instance that you
installed earlier?

> So, of course, I can not start it either
> me at me:/opt/local/bin/ $sudo /opt/local/bin/mysqld_safe5 &
> [1] 67824
> me at me:/opt/local/bin/ $Starting mysqld daemon with databases from /opt/
> local/var/db/mysql5
> STOPPING server from pid file /opt/local/var/db/mysql5/me.local.pid
> 080809 12:10:06  mysqld ended
> So I move on, trying to get php5 going:
> sudo port clean php5
> sudo port install php5 +apache2 +mysql5 +pear +imap +sqlite +tidy
> * How do I get sqlite support in php5?
> ... fetches most everything ... then ...
> Error: Target org.macports.fetch returned:
>                     You have an Apple X11 installation already.
>                         MacPorts will not overwrite it.
>                     If you wish to use Apple X11,
>                         install the X11SDK included with Xcode tools.

As it says, make sure the Apple X11SDK package included with Xcode is installed.

>                     If you really want to use XFree86 instead,
>                         please move it aside first :
>                             sudo mv /usr/X11R6 /usr/X11R6.apple
> Error: The following dependencies failed to build: gd2 XFree86
> autoconf help2man p5-locale-gettext perl5.8 m4 automake fontconfig
> jpeg libpng libtool libmcrypt libxml2 libxslt mhash tidy tiff
> Error: Status 1 encountered during processing.
> --
> Scott
> talklists at newgeo.com
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Randall Wood
randall.h.wood at alexandriasoftware.com

"The rules are simple: The ball is round. The game lasts 90 minutes.
All the rest is just philosophy."

More information about the macports-users mailing list