#15220 closed defect (duplicate)
PHP 5.2.6 won't install on Leopard, expecting APXS2
Reported by: | coolfactor@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | php5 | Cc: | jyrkiwahlstedt |
Port: |
Description
---> 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.6" && ./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 --enable-zip --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 whether gcc and cc understand -c and -o together... (cached) yes checking how to run the C preprocessor... /usr/bin/cpp-4.0 checking for AIX... no checking whether ln -s works... (cached) yes checking for system library directory... lib checking whether to enable runpaths... yes checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for re2c... re2c checking for re2c version... 0.13.1 (ok) checking for gawk... (cached) awk checking if awk is broken... no checking for bison... (cached) bison -y checking for bison version... (cached) 2.3 (ok) checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking lex output file root... (cached) lex.yy checking whether yytext is a pointer... (cached) yes checking for working const... (cached) yes checking for flex version... (cached) invalid configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: ) checking whether gcc supports -no-cpp-precomp... (cached) yes checking whether to force non-PIC code in shared modules... no checking whether /dev/urandom exists... yes checking for pthreads_cflags... (cached) checking for pthreads_lib... (cached) 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.
Changing the --configure command to include --with-apxs2=/usr/sbin/apxs allows it to proceed, but I was unable to figure out how to get it to install completely.
Change History (7)
comment:1 Changed 17 years ago by jmroot (Joshua Root)
Cc: | jwa@… added |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
comment:2 follow-up: 3 Changed 17 years ago by jmroot (Joshua Root)
Shouldn't you actually just need to use the apache2 variant?
comment:3 Changed 17 years ago by coolfactor@…
Replying to jmr@macports.org:
Shouldn't you actually just need to use the apache2 variant?
Ryan suggested this as a solution in an email response. I'm just about finished doing this. For the reference of others, the following command is what Ryan suggested using:
port install php5 +apache2
That installs MacPort's Apache 2 (separate from Apple's version).
While it hasn't gone entirely smoothly, I'm confident this will solve the problem.
comment:4 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #14001.
comment:5 Changed 16 years ago by rene@…
What about setting the apache2 variant as default on Leopard? This will avoid errors when building php5 as a dependency.
Assigning to maintainers.