johnnysoj Posted May 3, 2006 Share Posted May 3, 2006 Hello all.I'm having an issue compiling PHP, more specifically, the PHP CLI. My PHP shared object compiles just fine, and works perfectly.The main problem is after I run my make, I'll go to the sapi/cli directory,and the php file in this directory is a shell script, not a binary.# Generated by ltmain.sh - GNU libtool 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)## The sapi/cli/php program cannot be directly executed until all the libtool# libraries that it depends on are installed.## This wrapper script should never be moved out of the build directory.# If it is, it will not operate correctly.the shell script calls the php file located in the .libs file. If I run either of these two files, they work fine, but i'm curious why it doesn't build the binary.The libtool installed is the one that comes with RHEL ES3, but I've built the latest version. It turns out that PHP uses its own version of libtool, seperate from the systems...my configure script is as follows:./configure --with-apxs=/usr/local/apache/bin/apxs --with-oracle=/opt/oracle --with-oci8=/opt/oracle --with-zlib=/usr --enable-ftp --without-mysql --enable-sigchild --with-magickwand=/usr/local --with-ldap --with-java=/opt/java --enable-ftp --disable-debug --enable-inline-optimization --enable-memory-limit --with-pcre-regex --with-xsl --enable-libxml2 --enable-xml --enable-dom --with-libxml-dir=/usr --with-pear --with-pcre-regexI've removed options, and tried recompiling, and I've noticed the issue seems to be related tothe xml options located at the end of the configure line.If I remove any references to xml, PHP will compile cleanly, and a cli binary file will be built.When I add the xml options, it still builds, but won't build the cli binary.I'm using an RPM of libxml2, and libxml2-devel that I've built from srpms.Any and all help would be appreciated.Thanks,John. Quote Link to comment https://forums.phpfreaks.com/topic/8982-issue-compiling-binary-php-cli-in-php-513-and-512/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.