[MacPorts] #34217: php5-oracle: checking PHP version... Can't locate URI.pm in @INC (was: php5-oracle: shell command failed error)
MacPorts
noreply at macports.org
Wed Apr 25 12:33:13 PDT 2012
#34217: php5-oracle: checking PHP version... Can't locate URI.pm in @INC
----------------------------------+-----------------------------------------
Reporter: jkorchok@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: php5-oracle
----------------------------------+-----------------------------------------
Changes (by ryandesign@…):
* keywords: URI.pm =>
* owner: macports-tickets@… => ryandesign@…
Old description:
> G4 Mac running Leopard 10.5.8, Macports 2.0.4
> I have upgraded PHP5 to 5.3.10. When I try to install the Oracle
> extensions:
> sudo port install php5-oracle
> I get:
>
> ---> Configuring php5-oracle
> Error: Target org.macports.configure returned: configure failure: shell
> command failed (see log for details)
> Log for php5-oracle is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-oracle/php5-oracle/main.log
> Error: Status 1 encountered during processing.
>
> The log reads:
>
> :info:configure checking PHP version... Can't locate URI.pm in @INC (@INC
> contains: /opt/local/lib/perl5/site_perl/5.12.4/darwin-multi-2level
> /opt/local/lib/perl5/site_perl/5.12.4
> /opt/local/lib/perl5/vendor_perl/5.12.4/darwin-multi-2level
> /opt/local/lib/perl5/vendor_perl/5.12.4 /opt/local/lib/perl5/5.12.4
> /darwin-multi-2level /opt/local/lib/perl5/5.12.4
> /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at
> /opt/local/bin/head line 190.
> :info:configure BEGIN failed--compilation aborted at /opt/local/bin/head
> line 190.
> :info:configure configure: error: failed to detect PHP version, please
> report
> :info:configure shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-oracle/php5-oracle/work/php-5.3.10/ext/oci8"
> && ./configure --prefix=/opt/local --with-
> oci8=instantclient,/opt/local/lib/oracle --with-pdo-
> oci=instantclient,/opt/local/lib/oracle,10.1 " returned error 1
> :error:configure Target org.macports.configure returned: configure
> failure: shell command failed (see log for details)
> :debug:configure Backtrace: configure failure: shell command failed (see
> log for details)
> while executing
> "$procedure $targetname"
>
> To me it looks like it's trying to find the PHP version where Perl
> version information is stored, but I have no expertise in this.
New description:
G4 Mac running Leopard 10.5.8, Macports 2.0.4 [[br]]
I have upgraded PHP5 to 5.3.10. When I try to install the Oracle
extensions:
{{{
sudo port install php5-oracle
}}}
I get:
{{{
---> Configuring php5-oracle
Error: Target org.macports.configure returned: configure failure: shell
command failed (see log for details)
Log for php5-oracle is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-oracle/php5-oracle/main.log
Error: Status 1 encountered during processing.
}}}
The log reads:
{{{
:info:configure checking PHP version... Can't locate URI.pm in @INC (@INC
contains: /opt/local/lib/perl5/site_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.4
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.4 /opt/local/lib/perl5/5.12.4
/darwin-multi-2level /opt/local/lib/perl5/5.12.4
/opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at
/opt/local/bin/head line 190.
:info:configure BEGIN failed--compilation aborted at /opt/local/bin/head
line 190.
:info:configure configure: error: failed to detect PHP version, please
report
:info:configure shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-oracle/php5-oracle/work/php-5.3.10/ext/oci8"
&& ./configure --prefix=/opt/local --with-
oci8=instantclient,/opt/local/lib/oracle --with-pdo-
oci=instantclient,/opt/local/lib/oracle,10.1 " returned error 1
:error:configure Target org.macports.configure returned: configure
failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see
log for details)
while executing
"$procedure $targetname"
}}}
To me it looks like it's trying to find the PHP version where Perl version
information is stored, but I have no expertise in this.
--
Comment:
The problem is that the script /opt/local/bin/HEAD exists, and the
solution is to remove it. This file will interfere with the proper
operation of a lot of things, not just php5-oracle. How did that file get
there? It's a part of the [http://search.cpan.org/dist/libwww-perl/
libwww-perl] software, but the MacPorts p5-libwww-perl port doesn't
install it, nor as far as I recall would it get installed by default if
you installed libwww-perl manually, precisely because of this problem: it
interferes with the program called "head" which serves a completely
different purpose, but which OS X sees as the same problem because your
filesystem is case-insensitive. ("head" reads the first lines of a text
file; "HEAD" performs an HTTP request and shows the headers, I believe).
--
Ticket URL: <https://trac.macports.org/ticket/34217#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list