php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7109 make install fails in pear subdirectory
Submitted: 2000-10-10 01:42 UTC Modified: 2000-10-12 10:01 UTC
From: tilmann at cs dot dartmouth dot edu Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.2 OS: Mac OS X Server 1.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tilmann at cs dot dartmouth dot edu
New email:
PHP Version: OS:

 

 [2000-10-10 01:42 UTC] tilmann at cs dot dartmouth dot edu
Setup: installing PHP 4.0.2 as a DSO for Apache 1.3.12 under Mac OS X Server 1.2 via the quick install.

Apache 1.3.12 is under /usr/local/src/apache_1.3.12/; PHP 4.0.2 under /usr/local/src/php-4.0.2/ .

Configure: ./configure --mysql=/usr/local --with-apxs=/usr/local/sbin/apxs

Problem: "make install" (the last step in the quick install) fails in the pear subdirectory -- $$i gets the entire path, which causes $(peardir)/$$dir to be the wrong path.

Solution: when "make install" breaks with the error, cd into the pear subdirectory, 'vi -c ":57" Makefile' and change the line as shown below:

55: for i in PEAR.php; do \
56:    dir=`echo $$i|sed 's%[^/][^/]*$$%%'`; \
57:    $(INSTALL_DATA) $$i $(peardir); \
58: done; \ 

(ie, take out "$(builddir)/" and "/$$dir")

Save and quit, and run "make install" from within the pear directory.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-11 11:45 UTC] chagenbu@php.net
This fixes a problem that I was having with install-local-data. I'd like to commit the fix. Could someone verify that this is correct in the general case?
 [2000-10-12 10:01 UTC] chagenbu@php.net
Fixed in cvs.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 02:01:32 2025 UTC