Opened 19 years ago

Closed 19 years ago

#8290 closed defect (wontfix)

php5 +apache2 build ends up with cruft in install before activation

Reported by: blair (Blair Zajac) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

Doing a build today got this error:

---> Archive php5-5.1.2_1+apache2+darwin_7+macosx+mysql4.powerpc.tgz packaged ---> Archive for php5 5.1.2_1+apache2+darwin_7+macosx+mysql4 packaged ---> Installing php5 5.1.2_1+apache2+darwin_7+macosx+mysql4

If this is your first install, you might want cd /opt/local/apache2/modules /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so

  • copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini
  • copy /opt/local/etc/pear.conf.sample to /opt/local/etc/pear.conf

---> Activating php5 5.1.2_1+apache2+darwin_7+macosx+mysql4 Error: Target com.apple.activate returned: Image error: /opt/local/lib/php/.channels/.alias/pear.txt already exists and does not belong to a registered port. Unable to activate port php5. Warning: the following items did not execute (for php5): com.apple.activate

I ended up finding these files in the directory:

$ cd /opt/local/lib/php $ find . -type f ./.channels/.alias/pear.txt ./.channels/.alias/pecl.txt ./.channels/uri.reg ./.channels/pear.php.net.reg ./.channels/pecl.php.net.reg ./.depdb ./.depdblock ./.filemap ./.lock

I'm thinking that this directory shouldn't even exist at that location until activation.

Regards, Blair

Change History (2)

comment:1 Changed 19 years ago by blair (Blair Zajac)

op_sys: Mac OS X 10.2Mac OS X 10.3

Bump to 10.3.

comment:2 Changed 19 years ago by opendarwin-2006@…

Resolution: wontfix
Status: newclosed

As far as I know, this was recently "fixed" by modifying the php5 port to no longer install PEAR at all, since it was causing so many problems.

Note: See TracTickets for help on using tickets.