Can't compile PHP?

Can't compile PHP?

Posted by: mghuser
Posted on: 2007-02-18 19:20:00

When compiling PHP 5.1.2, I use the ff configure command :

'./configure' '--with-mysql=/usr' '--enable-calendar' '--enable-
force-cgi-redirect' '--with-config-file-path=/home/myusername/' '--
enable-trans-sid' '--with-gd' '--with-ttf=/usr' '--with-freetype-
dir=/usr' '--with-exif' '--with-jpeg-dir=/usr' '--with-png-
dir=/usr' '--with-zlib-dir=/usr' '--enable-ftp' '--with-gettext' '--
enable-mbstring=all' '--with-xml' '--prefix=/home/myusername/php' '--
without-pear'

* take note that myusername is not the real server username.


when I issue the "make" command an error appears after some time :

libtool: link: `ext/hash/hash_haval.lo' is not a valid libtool object
make: *** [sapi/cgi/php] Error 1


anyone knows how to get around this error? thanks.


P.S. I've already sent a message to support, but they told me to post it here. weird I know... I've already compiled PHP many times in different dreamhost servers and each time I do the same thing but this error appeared just now on a specific server. thanks.

Re: Can't compile PHP?

Posted by: Mousee
Posted on: 2007-02-19 04:02:00

To me, it looks like you're not telling 'configure' where MHash can be located. And also, DreamHost support does NOT support custom PHP4/5 installs. Which I believe is why they directed you to the forums here.

If you follow the content of the Wiki's PHP5 Install Script (obviously you can change the settings in it, as well as the version), you should have no such issues wink

Also as a note, PLEASE remember to use NICE when you're compiling programs on your DH server.

In reply to:


Nice -n 19 make


... works nicely smile


Tags: usrdreamhostlibtoolhashzlibserver thanksserver usernamereal serverphp errorsapiphp 5gettextfreetypedo the same thingttfprefixpeargdpngff