#14013 closed defect (worksforme)
Unable to install php5
Reported by: | gmccague@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description (last modified by jmpalacios (Juan Manuel Palacios))
I have been trying to install php5 without success. The item exits with the following error:
---> Configuring php5 Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.5" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info --with-config-file-path=/opt/local/etc --enable-calendar --with-iconv=/opt/local --enable-exif --enable-ftp --enable-wddx --with-zlib=/opt/local --with-bz2=/opt/local --without-mysql --without-sqlite --without-pdo-sqlite --with-libxml-dir=/opt/local --with-gettext=/opt/local --with-xml --with-expat-dir=/opt/local --with-xmlrpc --enable-soap --enable-filepro --enable-bcmath --enable-trans-sid --enable-mbstring --enable-dbx --enable-dba --with-openssl=/opt/local --with-mhash=/opt/local --with-mcrypt=/opt/local --with-xsl=/opt/local --with-curl=/opt/local --with-pcre-regex=/opt/local --with-gd --with-jpeg-dir=/opt/local --with-png-dir=/opt/local --enable-gd-native-ttf --without-pear --with-freetype-dir=/opt/local --with-apxs=/usr/sbin/apxs --with-ldap=/usr --with-kerberos=/usr --with-iodbc=/usr " returned error 1 Command output: checking for icc... no checking whether /usr/bin/gcc-4.0 and cc understand -c and -o together... yes checking how to run the C preprocessor... /usr/bin/cpp-4.0 checking for AIX... no checking whether ln -s works... yes checking for system library directory... lib checking whether to enable runpaths... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for re2c... no configure: warning: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for bison... bison -y checking for bison version... 2.3 (ok) checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking for flex version... invalid configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: 2.5.33) checking whether /usr/bin/gcc-4.0 supports -no-cpp-precomp... yes checking whether to force non-PIC code in shared modules... no checking whether /dev/urandom exists... yes checking for pthreads_cflags... checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... configure: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2 Error: Status 1 encountered during processing.
Change History (6)
comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Description: | modified (diff) |
---|---|
Milestone: | → Port Bugs |
comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
comment:3 Changed 17 years ago by gmccague@…
I used the +apache2 switch and it appears to have installed php5 but I get the following error when I try to load Apache:
httpd: Syntax error on line 116 of /private/etc/apache2/httpd.conf: Cannot load /usr/modules/libphp5.so into server: dlopen(/usr/modules/libphp5.so, 10): no suitable image found. Did find:\n\t/usr/modules/libphp5.so: mach-o, but wrong architecture
I have confirmed that the file exists.
comment:4 Changed 17 years ago by gmccague@…
I think I have it fixed. I went into my httpd.conf file and commented out one line and uncommented the other:
LoadModule php5_module libexec/apache2/libphp5.so #LoadModule php5_module modules/libphp5.so
The modules line is the one that is incorrect. I have not tested php yet but I'm sure this is fine. I now have to work on other httpd configuration issues.
comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I'd guess you're running Leopard and are trying to use the +apache variant. If that's correct, then that won't work. You'll have to use the +apache2 variant for now. See also #14001.
If I've guessed wrong, then please tell me your version of Mac OS X, Xcode, MacPorts and what kind of Mac you have.