#23312: Unable to detect PHP version
brad at pixilla.com
Fri Feb 12 17:48:55 PST 2010
Well, I do not have a head program in /opt/local/bin and I do have /
What is the output of:
port provides /opt/local/bin/head
On Feb 12, 2010, at 9:37 AM, John Korchok wrote:
> Hi Brad,
> head -n3 .bash_history
> Unknown option: n
> Unknown option: 3
> In answer to your previous questions:
> which head
> which perl
> which perl5
> no perl5 in /opt/local/bin /opt/local/sbin /bin /sbin /user/bin /
> env perl -e 'print `which head`'
> env perl5 -e 'print `which head`'
> env: perl5: No such file or directory
> John Korchok
> From: Bradley Giesbrecht [mailto:brad at pixilla.com]
> Sent: Monday, February 08, 2010 2:12 AM
> To: John Korchok
> Subject: Re: #23312: Unable to detect PHP version
> Your head program doesn't like -n so something is wrong with that.
> Do this in Terminal:
> head -n3 .bash_history
> Do you get the first 3 lines of you .bash_history file or an error?
> Regardless you may be able to get around your "head" problem by
> altering the portfile and to add the path to php-config which might
> not need the head program to get the php version.
> But I really think you should probably solve the problem because
> head may be used by a lot of other things you may need.
> If you want to try do this in Terminal:
> cd `port dir php5-oracle`
> port extract
> cd ./work/php-5.3.1/ext/oci8/
> ./configure --prefix=/opt/local --with-oci8=instantclient,/opt/local/
> lib/oracle --with-pdo-oci=instantclient,/opt/local/lib/oracle,10.1 --
> If that works and you want to use this instead of fixing head let me
> know and I'll give you the one line to add to your php5-oracle
> Portfile to add the path to php-config.
> // Brad
> On Feb 6, 2010, at 6:04 PM, John Korchok wrote:
>> Hi Bradley,
>> Thank you for taking the time to look into this. I don't have any
>> problem with any other MacPorts installs and I use several. I have
>> successfully installed the same configuration on a couple of Intel
>> machines with no problem, though both those were also running
>> Leopard. I thought I would first restate the error that I am
>> getting. The errors seem to start with line 5 of the listing below,
>> then when the routine for checking the PHP version is called, an
>> unknown flag "n" is used, causing the install to halt:
>> port install -f php5-oracle
>> ---> Computing dependencies for php5-oracle
>> ---> Configuring php5-oracle
>> Error: Target org.macports.configure returned: configure failure:
>> shell command " cd "/opt/local/var/macports/build/
>> 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
>> Command output: checking for re2c... no
>> configure: WARNING: You will need re2c 0.13.4 or later if you want
>> to regenerate PHP parsers.
>> checking for gawk... gawk
>> checking for Oracle (OCI8) support... yes, shared
>> checking PHP version... Unknown option: n
>> Usage: head [-options] <url>...
>> -m <method> use method for the request (default is 'HEAD')
>> -f make request even if head believes method is
>> -b <base> Use the specified URL as base
>> -t <timeout> Set timeout value
>> -i <time> Set the If-Modified-Since header on the request
>> -c <conttype> use this content-type for POST, PUT, CHECKIN
>> -a Use text mode for content I/O
>> -p <proxyurl> use this as a proxy
>> -P don't load proxy settings from environment
>> -H <header> send this HTTP header (you can specify several)
>> -u Display method and URL before any response
>> -U Display request headers (implies -u)
>> -s Display response status code
>> -S Display response status chain
>> -e Display response headers
>> -d Do not display content
>> -o <format> Process HTML content in various ways
>> -v Show program version
>> -h Print this message
>> -x Extra debugging output
>> configure: error: failed to detect PHP version, please report
>> Error: Status 1 encountered during processing.
>> Before reporting a bug, first run the command again with the -d
>> flag to get complete output.
>> ... or am I not reading this correctly?
>> From: Bradley Giesbrecht [mailto:brad at pixilla.com]
>> Sent: Saturday, February 06, 2010 4:24 PM
>> To: John Korchok
>> Subject: Re: #23312: Unable to detect PHP version
>> Hi John,
>> Funny thing about oracle.com. I was able to download from
>> oracle.com using Windows with IE but not on Mac with Safari or
>> Were you able to use Safari or Firefox to download from oracle?
>> So I was able to download instant client basic and the sdk put them
>> in place and my install succeeded without issue.
>> I don't have a g4 up to try the g4 compatible client.
>> What are your env vars?
>> Are your macports paths first?
>> In an effort to find something not right execute the following
>> commands and send me the output.
>> Since I don't have the problem you have I really don't know where
>> to begin short of finding something in your env that does not match
>> which head
>> which perl
>> which perl5
>> env perl -e 'print `which head`'
>> env perl5 -e 'print `which head`'
>> What if any unix software has been added to your system outside
>> // Brad
>> On Feb 5, 2010, at 12:29 PM, John Korchok wrote:
>>> Hi Bradley,
>>> The G4 version of the instant client is on http://bw.office-on-the.net/Pickup/instantclient-basic-macosx-10.1.0.3.zip
>>> The Intel version is on http://bw.office-on-the.net/Pickup/instantclient-basic-10.2.0.4.0-macosx-x86.zip
>>> Thanks for any help.
>>> John Korchok
>>> From: Bradley Giesbrecht [mailto:brad at pixilla.com]
>>> Sent: Thursday, February 04, 2010 5:27 PM
>>> To: John Korchok
>>> Subject: Re: #23312: Unable to detect PHP version
>>> On Feb 4, 2010, at 1:40 PM, John Korchok wrote:
>>>> I originally wrote about not being able to upgrade php5-oracle on
>>>> one server. Now the problem exists on two servers. Ryan gave the
>>>> advice to replace the usr/bin/HEAD with the original /user/bin/
>>>> head. I finally got around to trying this. /usr/bin does not
>>>> contain "HEAD", it contains only "head". This head is dated
>>>> August 22, 2005 like all the other versions of head on all my
>>>> other Macs that have Tiger installed. Running a binary comparison
>>>> to head from a Mac that never had LWP installed shows them to be
>>>> identical files.
>>>> I now get the "Unable to detect PHP version" error on two G4
>>>> servers that have Tiger installed. What else could be causing the
>>> I can't get my oracle login to work to download the instant client
>>> to look into this. If you put the oracle instant client installer
>>> somewhere I can download it from I'll take a look at this.
>>> A couple years ago before using macports I had this php/oic/oracle
>>> hand compiled and working but I currently do not have a need for
>>> I'm to frustrated with oracles login password reset procedure to
>>> pursue that any longer since I don't have a need but like I said
>>> I'm willing to take a look if you can get me the oic installer.
>>> // Brad
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users