Edit report at https://bugs.php.net/bug.php?id=61345&edit=1

 ID:                 61345
 Comment by:         kuteninja at gmail dot com
 Reported by:        sites at evoluons dot net
 Summary:            CGI mode - make install don't work
 Status:             Assigned
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Fedora 16 x86_64
 PHP Version:        5.4.0
 Block user comment: N
 Private report:     N

 New Comment:

I have this same issue, creating php/bin directory make install works, without 
it it doesn't work.

I'm running CentOS 6 x86_64 (so it should be equal in RHEL6 too)

This is my configure:

./configure  --prefix=/usr/local/php --with-layout=GNU --with-config-file-
path=/usr/local/php --disable-all --enable-libxml --with-libxml-dir=/usr/local -
-with-regex=php --enable-cgi --disable-cli --enable-inline-optimization --with-
pcre-regex --enable-json


Only by making the /usr/local/php/bin directory manually I'm able to "make 
install" it.


Previous Comments:
------------------------------------------------------------------------
[2012-03-23 06:32:08] sites at evoluons dot net

I apologize : it's with another computer it was OK.

I updated mine too, and it keep same error.

I tried today with a new ./configure command :

./configure --with-apxs2=/usr/local/apache/bin/apxs 
--with-config-file-path=/usr/local/apache/conf --with-gd --with-zlib --with-bz2 
--enable-ftp --enable-sockets --with-curl --with-mysql=/usr/local/mysql 
--with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-imap --enable-mbstring 
--enable-exif --without-pear --enable-zip --prefix=/usr/local/php --with-mcrypt 
--with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf 
--with-kerberos --with-imap-ssl

Same problem :
make install
Installing PHP CGI binary:        /usr/local/phpcgi/bin/
cp: cannot create regular file `/usr/local/phpcgi/bin/#INST@1706#': No such 
file or directory

And if I create folders myself :
mkdir /usr/local/phpcgi
mkdir /usr/local/phpcgi/bin

It's ok :
make install
Installing PHP CGI binary:        /usr/local/phpcgi/bin/
Installing build environment:     /usr/local/phpcgi/lib/php/build/
Installing header files:          /usr/local/phpcgi/include/php/
Installing helper programs:       /usr/local/phpcgi/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/phpcgi/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PDO headers:          /usr/local/phpcgi/include/php/ext/pdo/

------------------------------------------------------------------------
[2012-03-22 08:30:35] sites at evoluons dot net

I updated my Fedora 16 x86_64 and now it works directly, without any workaround.

So, I close the bug.

------------------------------------------------------------------------
[2012-03-10 20:40:18] sites at evoluons dot net

Description:
------------
Hi,

With a Fedora 16 x86_64 I compiled PHP in Apache module mode, no problem.

But, to use also CGI mode, compilation is OK, but "make install" not.

My ./configure :

./configure --with-gd --with-zlib --enable-ftp --enable-sockets --with-curl 
--enable-mbstring --enable-exif --enable-zip --prefix=/usr/local/phpcgi 
--disable-cli --with-mysql=/usr/local/mysql --with-jpeg-dir --with-png-dir 
--with-freetype-dir --enable-gd-native-ttf --with-mcrypt

make install
Installing PHP CGI binary:        /usr/local/phpcgi/bin/
cp: cannot create regular file `/usr/local/phpcgi/bin/#INST@1199#': No such 
file or directory

Expected result:
----------------
Installing PHP CGI binary:        /usr/local/phpcgi/bin/
Installing build environment:     /usr/local/phpcgi/lib/php/build/
Installing header files:          /usr/local/phpcgi/include/php/
Installing helper programs:       /usr/local/phpcgi/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/phpcgi/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PDO headers:          /usr/local/phpcgi/include/php/ext/pdo/

Actual result:
--------------
If I manually create /usr/local/phpcgi and /usr/local/phpcgi/bin folders, "make 
install" work :

mkdir /usr/local/phpcgi
mkdir /usr/local/phpcgi/bin


Thank you for your help ;)


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61345&edit=1

Reply via email to