#20627 [Opn->Fbk]: make install of pear failing on bin directory

From: Date: Mon, 25 Nov 2002 18:55:44 +0000
Subject: #20627 [Opn->Fbk]: make install of pear failing on bin directory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25806@lists.php.net to get a copy of this message
ID: 20627 Updated by: tal@php.net Reported By: russosm@xyos.net -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: Solaris 8 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-11-25 12:54:33] russosm@xyos.net Make install was failing in the pear directory with build 4.2.3 and a snap from Nov 21st on Solaris 8. The Makefile was trying to put files in /bin/. It was ignoring the prefix variable and giving me a permission denied error. I had to alter the Makefile.in file in the pear directory to properly set the install bin directory. I added: bindir=$(prefix)/bin This may not be the proper thing to do; I didn't check if bindir is used earlier at all. This change affected the code below: pear/Makefile.in: bin_SCRIPTS = phpize php-config pear pearize phptar install-build: @echo "Installing build environment" @$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \ (cd $(top_srcdir) && cp $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir)) install-programs: @for prog in $(bin_SCRIPTS); do \ echo "Installing program: $$prog"; \ $(INSTALL) -m 755 scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \ done; \ rm -f $(INSTALL_ROOT)$(bindir)/pear-get; \ for prog in phpextdist; do \ echo "Installing program: $$prog"; \ $(INSTALL) -m 755 $(srcdir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$ prog; \ done ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20627&edit=1

« previous php.bugs (#25806) next »