bugGNU Source Installer - Bugs: bug #17190, [Mac OS X Panther; sourceinstall...


bug #17190: [Mac OS X Panther; sourceinstall 2.1] PHP 5.1.4 fails to install

Submitter:  None
Submitted:  Mon 24 Jul 2006 02:42:54 AM UTC
Category:  External software Severity:  2 - Minor
Status:  Confirmed Assigned to:  sick_soul
Originator Email:  * -email is unavailable- Open/Closed:  Open
Additional Notes: 

* Mandatory Fields

Add a New Comment Rich Markup

Wed 26 Jul 2006 05:34:04 PM UTC, comment #1: 

The problem happenes then the apxs tool (of the apache package) is called.
The apxs tool is responsible for the installation and activation of  httpd modules; while installation can be relocated correctly, activation is implemented by direct editing of the configuration file (httpd.conf).

If not considered, this causes an issue when relocating the installation using INSTALL_ROOT (input is not found, and there is no way to specify an alternative output channel).

I'll work on a fix to submit to the PHP project.
If you want a workaround Right Now (TM), you can remove the "-a" option during configuration using the attached patch, to be applied from the top source directory of PHP, using:

patch < filename.diff

Note that this means that you should enable the installed php module in httpd.conf yourself!

Claudio Fontana <sick_soul>
Group administrator
Mon 24 Jul 2006 02:42:54 AM UTC, original submission:  

I am using Mac OS X 10.3.9 and I'm trying to install PHP 5.1.4 in /usr. The flags I passed to sourceinstall were:

Dans-Mac:/Volumes/dod/dan/Downloads/php-5.1.4 ness$ sudo sourceinstall -Q -a  ./ -p /usr -C --with-apxs2=/usr/sbin/apxs -C --with-mysql -C --with-libxml-dir=/sw
spawn: /bin/cp -R /Volumes/dod/dan/Downloads/php-5.1.4 /Users/ness/.sourceinstall/build
spawn: ./configure --with-apxs2=/usr/sbin/apxs --with-mysql --with-libxml-dir=/sw --prefix=/usr

At the end of the install I got these error messages:

spawn: /usr/bin/make -f makefile install INSTALL_ROOT=/Users/ness/.sourceinstall/install-destdir
/usr/bin/make: Installing PHP SAPI module:       apache2handler
/usr/bin/make: /usr/share/httpd/build/instdso.sh SH_LIBTOOL='/usr/share/httpd/build/libtool' libs/libphp5.so /Users/ness/.sourceinstall/install-destdir/usr/libexec/apache2
/usr/bin/make: /usr/share/httpd/build/libtool --mode=install cp libs/libphp5.so /Users/ness/.sourceinstall/install-destdir/usr/libexec/apache2/

>>  /usr/bin/make: cp libs/libphp5.so /Users/ness/.sourceinstall/install-destdir/usr/libexec/apache2/libphp5.so
>>  /usr/bin/make: Warning!  dlname not found in /Users/ness/.sourceinstall/install-destdir/usr/libexec/apache2/libphp5.so.
>>  /usr/bin/make: chmod 755 /Users/ness/.sourceinstall/install-destdir/usr/libexec/apache2/libphp5.so
>>  /usr/bin/make: apxs:Error: Config file /Users/ness/.sourceinstall/install-destdir/etc/apache2/httpd.conf not found.

/usr/bin/make: Assuming installing a .so rather than a libtool archive.
/usr/bin/make: make: * [install-sapi] Error 1
sourceinstall: warning [add_package]: test installation reports a fatal error
spawn: /bin/rm -fr /Users/ness/.sourceinstall/build
spawn: /bin/rm -fr /Users/ness/.sourceinstall/install-destdir
sourceinstall: error [main]: action failed

A normal ./configure && make && make install works successfully.




(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #10429:  php_apxs_issue.workaround.diff added by sick_soul (2KiB - text/x-diff - workaround to install PHP (apsx -a issue))


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.


Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-07-26 sick_soul CategoryUser Interface External software
    Severity3 - Normal 2 - Minor
    StatusNone Confirmed
    Assigned toNone sick_soul
    Attached File- Added php_apxs_issue.workaround.diff, #10429

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code