Error while compiling/installing PHP with FPM for RPM on Centos 5.4 x64

Posted by Raymond on Server Fault See other posts from Server Fault or by Raymond
Published on 2009-12-10T11:31:29Z Indexed on 2010/03/12 17:57 UTC
Read the original article Hit count: 308

Filed under:
|
|
|

Hi,

I'm trying to make an RPM with PHP 5.3.1 and PHP-FPM 0.6 for CentOS 5.4. So far it goes quite well, but when rpmbuild gets to the installation phase it fails with the following error:

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.63379
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD/php-5.3.1/fpm-build/
+ make install
Installing PHP SAPI module:       fpm
Installing PHP CLI binary:        /usr/bin/
cp: cannot create regular file `/usr/bin/#INST@12668#': Permission denied
make: *** [install-cli] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.63379 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.63379 (%install)

I am running rpmbuild as a normal user, so it's understandable that it will fail to install anything into /usr/bin, but it shouldn't try to install anything outside the buildroot in the first place. I have however specified the BuildRoot in the header of the spec file and I can see it is passed correctly to the make install command.

Does anyone have some idea of what is going wrong here?

Thanks a lot!

© Server Fault or respective owner

Related posts about rpm

Related posts about centos