Opened 13 years ago

Closed 13 years ago

#31961 closed defect (fixed)

php5-pear: build/libexec/php/bin/pear: No such file or directory

Reported by: polkehn@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: php5-pear

Description

trying 'sudo port install php5-pear' I get:

--->  Computing dependencies for php5-pear
--->  Fetching archive for php5-pear
--->  Attempting to fetch php5-pear-20110901_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/php5-pear
--->  Fetching php5-pear
--->  Verifying checksum(s) for php5-pear
--->  Extracting php5-pear
--->  Configuring php5-pear
--->  Building php5-pear
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for php5-pear is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attached you find the main.log file

Attachments (2)

main.log (34.0 KB) - added by polkehn@… 13 years ago.
main.log
main_new.log (33.4 KB) - added by polkehn@… 13 years ago.

Download all attachments as: .zip

Change History (15)

Changed 13 years ago by polkehn@…

Attachment: main.log added

main.log

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Keywords: php5 pear removed
Owner: changed from macports-tickets@… to pixilla@…

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Shell command fails when install php5-pearphp5-pear: build/libexec/php/bin/pear: No such file or directory

What is the situation with this warning in your log:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll, 9): image not found in Unknown on line 0

MacPorts doesn't install any files with the extension .dll in that directory. (It installs files with the extension .so.) Have you edited your php.ini to load this nonexistent file? What other changes have you made?

comment:3 Changed 13 years ago by polkehn@…

Hello,

Thanks for the feedback so far. The dll thing indeed was a mistake of mine it seems. I commented the line in the php.ini. I did a "sudo port clean php5-pear" and tried to reinstall it. The openssl warning is now gone in the log, however it still does not seem to work.:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/work/php5-pear-20110901/build/libexec/php/bin/pear: No such file or directory
:info:build shell command "PHP_PEAR_INSTALL_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/work/php5-pear-20110901/build/libexec/php/pear PHP_PEAR_SYSCONF_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/work/php5-pear-20110901/build/libexec/php/etc  PHP_PEAR_BIN_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/work/php5-pear-20110901/build/libexec/php/bin /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/work/php5-pear-20110901/build/libexec/php/bin/pear -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/work/php5-pear-20110901/build/libexec/php/etc/pear.conf  -C /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/work/php5-pear-20110901/build/libexec/php/etc/pear.conf config-show" returned error 127
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:build Warning: the following items did not execute (for php5-pear): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for php5-pear is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-pear/php5-pear/main.log

As far as I can remember the openssl thing was the only change i made.

Thx a lot!

comment:4 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Cc: ryandesign@… added

Please clean php5-pear, try a new install and upload a new log file if the install fails.

$ sudo port clean php5-pear
$ sudo port install php5-pear
$ open $(dirname $(port logfile php5-pear))

There is also this ticket #31590. Looks like polkehn is also on 10.7 Lion.

Changed 13 years ago by polkehn@…

Attachment: main_new.log added

comment:5 Changed 13 years ago by polkehn@…

Hello again,

Yes I do use 10.7.2. I followed the recommended steps above, unfortunately it didn't work. The new log file (main_new.log) is attached to this ticket. Thanks!

comment:6 Changed 13 years ago by pixilla (Bradley Giesbrecht)

My laptop is still at Mac OS X 10.7.1 and installing php5-pear and some pear-* ports without issue.
I'm updating to Mac OS X 10.7.2 to see if that makes a difference.

$ machine
i486
$ arch
i386
$ file /opt/local/bin/php
/opt/local/bin/php: Mach-O 64-bit executable x86_64
$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.7.1
BuildVersion:	11B26
$ port version
Version: 2.0.99
$ port installed active and \( name:^php5$ or name:^php5-pear$ or name:^pear- \)
The following ports are currently installed:
  pear-Archive_Tar @1.3.7_0 (active)
  pear-AWSSDKforPHP @1.4.6.1_0 (active)
  pear-Console_Getopt @1.3.1_0 (active)
  pear-PEAR @1.9.4_0 (active)
  pear-Structures_Graph @1.0.4_0 (active)
  pear-XML_Util @1.2.1_0 (active)
  php5 @5.3.8_1+apache2 (active)
  php5-pear @20110901_0 (active)
$ which php
/opt/local/bin/php
$ php -v
PHP 5.3.8 (cli) (built: Nov  9 2011 12:28:55) 

polkehn: On your system, where does which say your php command is located?

$ which php

comment:7 Changed 13 years ago by pixilla (Bradley Giesbrecht)

I haven't used Lion enough to know if Xcode versions are important to MacPorts so here is my Xcode info:

$ xcode-select -print-path
/Developer
$ which xcodebuild
/usr/bin/xcodebuild
$ xcodebuild -version
Xcode 4.1
Build version 4B110

comment:8 Changed 13 years ago by polkehn@…

Hi,

which php 

-> /opt/local/bin/php

xcode-select -print-path

-> /Developer

which xcodebuild

-> /usr/bin/xcodebuild

xcodebuild -version

-> Xcode 4.1 Build version 4B110

port version

-> Version: 2.0.3

comment:9 Changed 13 years ago by pixilla (Bradley Giesbrecht)

I am now testing changes to the php5pear PortGroup and the php5pear port that should fix this.
I will probably have an update later today.

comment:10 Changed 13 years ago by pixilla (Bradley Giesbrecht)

I updated the php5pear PortGroup. Please clean and retry:

$ sudo port clean php5-pear
$ sudo port install php5-pear
$ open $(dirname $(port logfile php5-pear))

comment:11 Changed 13 years ago by polkehn@…

Ok, thanks a lot!.

  1. Installation went smoothly this time without any errors
  2. Where can I find the binary? The "pear" command on the shell does not work. Where is it located, so I can add it to the PATH variable?

Other than that the ticket can be closed!

Thanks!

comment:12 in reply to:  11 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Replying to polkehn@…:

  1. Installation went smoothly this time without any errors

Great. Thanks for reporting.

  1. Where can I find the binary? The "pear" command on the shell does not work. Where is it located, so I can add it to the PATH variable?

You will use the MacPorts port command to install pear packages. There is a MacPorts port every pear package available at pear.php.net.

$ port echo name:^pear-

The php5-pear ports primary purpose is to add the pear lib path to php's include_path:

$ port contents php5-pear
Port php5-pear contains:
  /opt/local/lib/php/pear/install-pear-nozlib.phar
  /opt/local/lib/php/pear/pear-ini.php
  /opt/local/var/db/php5/pear.ini
$ cat /opt/local/var/db/php5/pear.ini
; Do not edit this file; it is automatically generated by MacPorts.
; Any changes you make will be lost if you upgrade or uninstall php5-pear.
; To configure PHP, edit /opt/local/etc/php5/php.ini.
auto_prepend_file = '/opt/local/lib/php/pear/pear-ini.php'
$ cat /opt/local/lib/php/pear/pear-ini.php
<?php
# Automatically add the PEAR repository path to PHP's include_path.
set_include_path ( get_include_path (  ) . PATH_SEPARATOR . '/opt/local/lib/php/pear' ) ;

comment:13 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.