<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Well, I do not have a head program in /opt/local/bin and I do have /opt/local/bin/perl5.</div><div><br></div><div>What is the output of:</div><div>port provides /opt/local/bin/head</div><div><br></div><div><br></div><div>// Brad</div><div><br></div><div><br></div><div><div>On Feb 12, 2010, at 9:37 AM, John Korchok wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">Hi Brad,</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">head -n3 .bash_history</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">returns</font></span></div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">Unknown option: n</font></span></div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">Unknown option: 3</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">In answer to your previous questions:</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">which head</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">returns</font></span></div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">/opt/local/bin/head</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">which perl</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">returns</font></span></div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">/opt/local/bin/perl</font></span></div></font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">which perl5</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">returns</font></span></div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">no perl5 in /opt/local/bin /opt/local/sbin /bin /sbin /user/bin /user/sbin </font></span></div></font></span></div></font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2"> <div><span class="027262217-12022010"><font color="#000080" size="2">env perl -e 'print `which head`'</font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">returns</font></span></div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">/opt/local/bin/head</font></span></div></font></span></div></font></span></div> <div><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="027262217-12022010"> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2"> <div><span class="027262217-12022010"><font color="#000080" size="2">env perl5 -e 'print `which head`'</font></span></div></font></span><span class="027262217-12022010"><font face="Verdana" color="#000080" size="2">returns</font></span></div> <div><span class="027262217-12022010"><font face="Courier New" color="#000080" size="2">env: perl5: No such file or directory</font></span></div></span></div> <div> </div> <div><font face="Verdana" color="#000080" size="2"><span class="027262217-12022010">John Korchok</span></font></div> <div><font face="Verdana" color="#000080" size="2"></font> </div> <div><font face="Courier New" color="#000080" size="2"></font> </div> <div><br></div> <blockquote dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px"> <div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> Bradley Giesbrecht [<a href="mailto:brad@pixilla.com">mailto:brad@pixilla.com</a>] <br><b>Sent:</b> Monday, February 08, 2010 2:12 AM<br><b>To:</b> John Korchok<br><b>Subject:</b> Re: #23312: Unable to detect PHP version<br></font><br></div> <div></div>Your head program doesn't like -n so something is wrong with that. <div><br></div> <div>Do this in Terminal:</div> <div>cd</div> <div>head -n3 .bash_history</div> <div><br></div> <div>Do you get the first 3 lines of you .bash_history file or an error?</div> <div><br></div> <div>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.</div> <div><br></div> <div>But I really think you should probably solve the problem because head may be used by a lot of other things you may need.</div> <div><br></div> <div>If you want to try do this in Terminal:</div> <div><br></div> <div> <div>cd `port dir php5-oracle`</div> <div>port extract</div> <div> <div>cd ./work/php-5.3.1/ext/oci8/</div> <div>phpize</div> <div>./configure --prefix=/opt/local --with-oci8=instantclient,/opt/local/lib/oracle --with-pdo-oci=instantclient,/opt/local/lib/oracle,10.1 --with-php-config=/opt/local/bin/php-config</div></div></div> <div><br></div> <div>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.</div> <div><br></div> <div><br></div> <div>// Brad</div> <div><br> <div> <div>On Feb 6, 2010, at 6:04 PM, John Korchok wrote:</div><br class="Apple-interchange-newline"> <blockquote type="cite"> <div style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2">Hi Bradley,</font></span></div> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2">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:</font></span></div> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="608555501-07022010"><font face="Verdana" size="2"><font face="Courier New">port install -f php5-oracle<br>Password:<br>---> Computing dependencies for php5-oracle<br>---> Configuring php5-oracle<br>Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-oracle/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 " returned error 1<br>Command output: checking for re2c... no<br>configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.<br>checking for gawk... gawk<br>checking for Oracle (OCI8) support... yes, shared<br>checking PHP version... Unknown option: n<br>Usage: head [-options] <url>...<br> -m <method> use method for the request (default is 'HEAD')<br> -f make request even if head believes method is illegal<br> -b <base> Use the specified URL as base<br> -t <timeout> Set timeout value<br> -i <time> Set the If-Modified-Since header on the request<br> -c <conttype> use this content-type for POST, PUT, CHECKIN<br> -a Use text mode for content I/O<br> -p <proxyurl> use this as a proxy<br> -P don't load proxy settings from environment<br> -H <header> send this HTTP header (you can specify several)</font></font></span></div> <div> </div> <div><span class="608555501-07022010"><font face="Verdana" size="2"><font face="Courier New"> -u Display method and URL before any response<br> -U Display request headers (implies -u)<br> -s Display response status code<br> -S Display response status chain<br> -e Display response headers<br> -d Do not display content<br> -o <format> Process HTML content in various ways</font></font></span></div> <div> </div> <div><span class="608555501-07022010"><font face="Verdana" size="2"><font face="Courier New"> -v Show program version<br> -h Print this message</font></font></span></div> <div> </div> <div><span class="608555501-07022010"><font face="Verdana" size="2"><font face="Courier New"> -x Extra debugging output<br>configure: error: failed to detect PHP version, please report</font></font></span></div> <div> </div> <div><span class="608555501-07022010"><font face="Verdana" size="2"><font face="Courier New">Error: Status 1 encountered during processing.<br>Before reporting a bug, first run the command again with the -d flag to get complete output.</font></font></span><font face="Verdana" size="2"></font></div><font face="Verdana" size="2"></font> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2">... or am I not reading this correctly?</font></span></div> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="608555501-07022010"><font face="Verdana" color="#000080" size="2">John</font></span></div><br> <blockquote dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px"> <div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> Bradley Giesbrecht [<a href="mailto:brad@pixilla.com">mailto:brad@pixilla.com</a>] <br><b>Sent:</b> Saturday, February 06, 2010 4:24 PM<br><b>To:</b> John Korchok<br><b>Subject:</b> Re: #23312: Unable to detect PHP version<br></font><br></div> <div></div>Hi John, <div><br></div> <div>Funny thing about oracle.com. I was able to download from oracle.com using Windows with IE but not on Mac with Safari or Firefox.</div> <div>Were you able to use Safari or Firefox to download from oracle?</div> <div><br></div> <div>So I was able to download instant client basic and the sdk put them in place and my install succeeded without issue.</div> <div><br></div> <div>I don't have a g4 up to try the g4 compatible client.</div> <div><br></div> <div>What are your env vars?</div> <div>Are your macports paths first?</div> <div><br></div> <div>In an effort to find something not right execute the following commands and send me the output.</div> <div>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 mine.</div> <div>env</div> <div> <div>which head</div> <div> <div>which perl</div> <div> <div>which perl5</div> <div>env perl -e 'print `which head`'</div></div></div></div> <div>env perl5 -e 'print `which head`'</div> <div><br></div> <div><br></div> <div>What if any unix software has been added to your system outside macports?</div> <div><br></div> <div><br></div> <div>// Brad</div> <div><br></div> <div> <div> <div>On Feb 5, 2010, at 12:29 PM, John Korchok wrote:</div><br class="Apple-interchange-newline"> <blockquote type="cite"> <div style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2">Hi Bradley,</font></span></div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2">The G4 version of the instant client is on <a href="http://bw.office-on-the.net/Pickup/instantclient-basic-macosx-10.1.0.3.zip">http://bw.office-on-the.net/Pickup/instantclient-basic-macosx-10.1.0.3.zip</a>.</font></span></div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2">The Intel version is on <a href="http://bw.office-on-the.net/Pickup/instantclient-basic-10.2.0.4.0-macosx-x86.zip">http://bw.office-on-the.net/Pickup/instantclient-basic-10.2.0.4.0-macosx-x86.zip</a></font></span></div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2">Thanks for any help.</font></span></div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2"></font></span> </div> <div><span class="452022720-05022010"><font face="Verdana" color="#000080" size="2">John Korchok</font></span></div><br> <blockquote dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px"> <div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> Bradley Giesbrecht [<a href="mailto:brad@pixilla.com">mailto:brad@pixilla.com</a>] <br><b>Sent:</b> Thursday, February 04, 2010 5:27 PM<br><b>To:</b> John Korchok<br><b>Subject:</b> Re: #23312: Unable to detect PHP version<br></font><br></div> <div></div><br> <div> <div>On Feb 4, 2010, at 1:40 PM, John Korchok wrote:</div><br class="Apple-interchange-newline"> <blockquote type="cite"> <div style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"> <div><span class="599163621-04022010"><font face="Verdana" color="#000080" size="2">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. <span lang="EN">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. </span></font></span></div> <div><span class="599163621-04022010"><font face="Verdana" color="#000080" size="2"><span lang="EN"></span></font></span> </div> <div><span class="599163621-04022010"><font face="Verdana" color="#000080" size="2"><span lang="EN">I now get the "Unable to detect PHP version" error on two G4 servers that have Tiger installed. What else could be causing the error?</span></font></span></div></div></blockquote><br></div> <div>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.</div> <div><br></div> <div>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 oracle.</div> <div><br></div> <div>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.</div> <div><br></div> <div>// Brad</div></blockquote></div></blockquote></div><br></div></blockquote></div></blockquote></div><br></div></blockquote></div></blockquote></div><br></body></html>