Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In the source directory:

./configure --prefix=/home/ashkan/Development/php/bin/php-5.2  --with-mysql --with-apxs2=/usr/bin/apxs2

make works fine but make install says:

Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/modules/
libtool: install: cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
cp: cannot create regular file `/usr/lib/apache2/modules/libphp5.so': Permission denied
apxs:Error: Command failed with rc=65536

UPDATE: reading man apxs2 it seems apxs compiles and then installs the module into apache module directory. This module directory seems to be fixed!

share|improve this question
add comment

1 Answer

No permission to copy binaries to /usr. Do sudo make install.

share|improve this answer
    
Tnx for your reply but as mentioned in the question, the problem is that --prefix is used with ./configure and the libtools is supposed to copy the module in the proper location and not the /usr/lib/apache2/module –  ashy_32bit Mar 3 '13 at 9:59
    
Try putting --prefix in "" --prefix="/home/ashkan/Development/php/bin/php-5.2" –  j0h Jan 20 at 15:53
    
You could try tooling with the config file. I looked briefly. its not fixed "phplibdir" is it's assignment. you could try adding set -vx into the configure script to see what it is doing with your prefix directive. –  j0h Jan 20 at 16:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.