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

Submitted by:  None
Submitted on:  Mon 24 Jul 2006 02:42:54 AM UTC  
 
Category: External softwareSeverity: 2 - Minor
Status: ConfirmedAssigned to: Claudio Fontana <sick_soul>
Originator Email: -unavailable-Open/Closed: Open
Additional Notes: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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.

Thanks,
--ness

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #10429:  php_apxs_issue.workaround.diff added by sick_soul (2kB - 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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 26 Jul 2006 05:34:04 PM UTCsick_soulCategoryUser 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.1-cleanup