php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20627 make install of pear failing on bin directory
Submitted: 2002-11-25 12:54 UTC Modified: 2002-11-26 22:18 UTC
From: russosm at xyos dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.3 OS: Solaris 8
Private report: No CVE-ID: None
 [2002-11-25 12:54 UTC] russosm at xyos dot 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




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-25 12:55 UTC] tal@php.net
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
 [2002-11-26 22:18 UTC] russosm at xyos dot net
This was not a bug.  It was my typo.
M
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC