[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-install
Subject:    Re: [PHP-INSTALL] error instant client PHP configure script
From:       Angel Motta <angelmotta () gmail ! com>
Date:       2010-03-08 23:55:49
Message-ID: 1c1b5a0f1003081555g299c2654h532b2989b08ee3d7 () mail ! gmail ! com
[Download RAW message or body]

Hi again
One Question i downloaded again the file zip and now I can run the configure
without errors. =)

But when I run "make test" I receive this error

make test
+-----------------------------------------------------------+
|                       ! ERROR !                           |
| The test-suite requires that proc_open() is available.    |
| Please check if you disabled it in php.ini.               |
+-----------------------------------------------------------+

I the first time the I install php in this server, and I dont have the
php.ini in the /usr/local/php/etc/
Is this normal? I think this is ok, I never will can, do this test because
this condition.

Then "I did make install"
Please confirm this error, if is normal.

Thanks
--
Angel

2010/3/8 Angel Motta <angelmotta@gmail.com>

> Ohhh Christopher
> I think you have the reason. When I was trying to unzipping again I see
> this:
> [root@zimbra instantclient]# unzip
> instantclient-basic-linux32-11.2.0.1.zip
> Archive:  instantclient-basic-linux32-11.2.0.1.zip
>   inflating: instantclient_11_2/adrci
>   inflating: instantclient_11_2/BASIC_README
>   inflating: instantclient_11_2/genezi
> *  inflating: instantclient_11_2/libclntsh.so.11.1   bad CRC 05bc2fea
> (should be 1621b100)*
>   inflating: instantclient_11_2/libnnz11.so
>   inflating: instantclient_11_2/libocci.so.11.1
>   inflating: instantclient_11_2/libociei.so
>   inflating: instantclient_11_2/libocijdbc11.so
>   inflating: instantclient_11_2/ojdbc5.jar
>   inflating: instantclient_11_2/ojdbc6.jar
>   inflating: instantclient_11_2/xstreams.jar
>
> I think the zip file is corrupted. I am downloading this file again.
> I will post the results of this.
>
> --
> Angel
>
> 2010/3/8 Christopher Jones <christopher.jones@oracle.com>
>
>>
>> The error "/opt/instantclient/libclntsh.so: file not recognized: File
>> format not recognized" still makes me think there is an installation
>> issue.
>>
>> Make the libclntsh symbolic link points to the right file. See
>> http://www.oracle.com/technology/pub/notes/technote_php_instant.html
>> And/or try unzipping the 32 bit package again
>>
>> I just built PHP 5.2.13 on Oracle EL 5.4 using effectively the same
>> options as you.  It built OK.  My configure line was:
>>
>> ./configure --prefix=$HOME/phptmp --with-xmlrpc
>> --with-apxs2=$HOME/apache22/bin/apxs  --with-gd=/usr/ --with-jpeg-dir=/usr
>> --with-png-dir=/usr --with-freetype-dir=/usr --with-xpm-dir=/usr
>> --with-zlib=/usr --with-oci8=instantclient,$HOME/instantclient_11_2
>> --with-pdo-oci=instantclient,$HOME/instantclient_11_2,11.2 --with-snmp=/usr/
>> --with-openssl-dir=/usr --with-iconv --with-curl=/usr --with-curlwrappers
>> --with-libxml-dir=/usr --with-gettext=/usr --enable-sigchild --enable-libxml
>> --enable-soap
>>
>> Chris
>>
>>
>> Angel Motta wrote:
>> > Sorry for send twice.
>> > I forgot php version and apache
>> > php-5.2.8
>> > apache: httpd-2.2.12
>> >
>> > 2010/3/8 Angel Motta <angelmotta@gmail.com <mailto:angelmotta@gmail.com
>> >>
>>
>> >
>> >     Hi Christopher and Thanks for your assistance
>> >
>> >     I am using:
>> >     RHEL 5.3 - 32bit platform
>> >     instantclient-basic-linux32-11.2.0.1.zip
>> >     instantclient-sdk-linux32-11.2.0.1.zip
>> >
>> >     I want to install oci8 support with snmp. When I enable snmp-support
>> >     (that is my objective) in the configure I get this error:
>> >
>> >     ./configure --prefix=/usr/local/php --with-xmlrpc
>> >     --with-apxs2=/usr/local/apache2/bin/apxs
>> >     --with-config-file-path=/usr/local/php/etc --with-gd=/usr/
>> >     --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
>> >     --with-xpm-dir=/usr --with-zlib=/usr
>> >     --with-oci8=instantclient,/opt/instantclient
>> >     --with-pdo-oci=instantclient,/opt/instantclient,11.1
>> >     --with-snmp=/usr/ --with-openssl-dir=/usr
>> >     --with-iconv=/usr/local/lib --with-curl=/usr --with-curlwrappers
>> >     --with-libxml-dir=/usr --with-gettext=/usr --enable-sigchild
>> >     --enable-libxml --enable-soap
>> >
>> >     checking for SNMP support... yes
>> >     checking OpenSSL dir for SNMP... /usr
>> >     checking whether to enable UCD SNMP hack... yes
>> >     checking for snmp_parse_oid in -lnetsnmp... no
>> >     checking for init_snmp in -lnetsnmp... no
>> >     configure: error: SNMP sanity check failed. Please check config.log
>> >     for more information.
>> >
>> >     #> vi config.log
>> >     Start with some like:
>> >     configure:2165: error: '__CYGWIN32__' undeclared (first use in this
>> >     function)
>> >     configure:2194: error: '__MINGW32__' undeclared (first use in this
>> >     function)
>> >
>> >     End with some of this:
>> >
>> >     /opt/instantclient/libclntsh.so: file not recognized: File format
>> >     not recognized
>> >     2017 collect2: ld returned 1 exit status
>> >     2018 configure: failed program was:
>> >     2019 #line 88940 "configure"
>> >     2020 #include "confdefs.h"
>> >     2021 /* Override any gcc2 internal prototype to avoid an error.  */
>> >     2022 /* We use char because int might match the return type of a
>> gcc2
>> >     2023     builtin and then its argument prototype would still apply.
>>  */
>> >     2024 char init_snmp();
>> >
>> >
>> >     Thanks
>> >     --
>> >     Angel
>> >
>> >     2010/3/8 Christopher Jones <christopher.jones@oracle.com
>> >     <mailto:christopher.jones@oracle.com>>
>>
>> >
>> >
>> >         What platform? What PHP version?
>> >         Are you doing something like using 32 bit instantclient on a 64
>> >         bit machine?
>> >
>> >         Chris
>> >
>> >
>> >         Angel Motta wrote:
>> >
>> >             Hi List
>> >             Is my first time that I write to this list.
>> >             I am having problems to compile php with oci support.
>> >
>> >             I run this:
>> >             ./configure --prefix=/usr/local/php --with-xmlrpc
>> >             --with-apxs2=/usr/local/apache2/bin/apxs
>> >             --with-config-file-path=/usr/local/php/etc --with-gd=/usr/
>> >             --with-jpeg-dir=/usr --with-png-dir=/usr
>> >             --with-freetype-dir=/usr --with-xpm-dir=/usr
>> >             --with-zlib=/usr
>> >             --with-oci8=instantclient,/opt/instantclient
>> >             --with-pdo-oci=instantclient,/opt/instantclient,11.1
>> >             --with-openssl-dir=/usr --with-iconv=/usr/local
>> >             --with-curl=/usr --with-curlwrappers --with-libxml-dir=/usr
>> >             --with-gettext=/usr --enable-sigchild --enable-libxml
>> >             --enable-soap
>> >
>> >             And I receive alert at finish of ./configure and I see the
>> >             debug.log with this at the end:
>> >             conftest.c: In function 'main':
>> >             conftest.c:3: warning: incompatible implicit declaration of
>> >             built-in function 'exit'
>> >             /opt/instantclient/libclntsh.so: file not recognized: File
>> >             format not recognized
>> >             collect2: ld returned 1 exit status
>> >
>> >
>> >             Thanks for your assistance
>> >             --
>> >             Angel
>> >
>> >
>> >         --
>> >         Email: christopher.jones@oracle.com
>> >         <mailto:christopher.jones@oracle.com>    Tel:  +1 650 506 8630
>>
>> >         Blog:  http://blogs.oracle.com/opal/   Free PHP Book:
>> >         http://tinyurl.com/UGPOM
>> >
>> >
>> >
>> >
>> >     --
>> >     Atte
>> >     Angel Motta Paz
>> >
>> >
>> >
>> >
>> > --
>> > Atte
>> > Angel Motta Paz
>>
>> --
>> Email: christopher.jones@oracle.com    Tel:  +1 650 506 8630
>> Blog:  http://blogs.oracle.com/opal/   Free PHP Book:
>> http://tinyurl.com/UGPOM
>>
>
>
>
> --
> Atte
> Angel Motta Paz
>



-- 
Atte
Angel Motta Paz

[Attachment #3 (text/html)]

Hi again<br>One Question i downloaded again the file zip and now I can run the \
configure without errors. =)<br><br>But when I run &quot;make test&quot; I receive \
this error<br> <br>
make test<br>
+-----------------------------------------------------------+<br>
> ! ERROR !                           |<br>
> The test-suite requires that proc_open() is available.    |<br>
> Please check if you disabled it in php.ini.               |<br>
+-----------------------------------------------------------+<br>
<br>
I the first time the I install php in this server, and I dont have the php.ini in the \
/usr/local/php/etc/<br> Is this normal? I think this is ok, I never will can, do this \
test because this condition.<br><br>Then &quot;I did make install&quot;<br>

Please confirm this error, if is normal.<br>
<br>Thanks<br>--<br>Angel<br><br><div class="gmail_quote">2010/3/8 Angel Motta <span \
dir="ltr">&lt;<a href="mailto:angelmotta@gmail.com">angelmotta@gmail.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> Ohhh Christopher<br>I think you have the reason. When \
I was trying to unzipping again I see this:<br>[root@zimbra instantclient]# unzip \
instantclient-basic-linux32-11.2.0.1.zip<br>Archive:  \
instantclient-basic-linux32-11.2.0.1.zip<br>

  inflating: instantclient_11_2/adrci<br>  inflating: \
instantclient_11_2/BASIC_README<br>  inflating: instantclient_11_2/genezi<br><u><b>  \
inflating: instantclient_11_2/libclntsh.so.11.1   bad CRC 05bc2fea  (should be \
1621b100)</b></u><br>

  inflating: instantclient_11_2/libnnz11.so<br>  inflating: \
instantclient_11_2/libocci.so.11.1<br>  inflating: instantclient_11_2/libociei.so<br> \
inflating: instantclient_11_2/libocijdbc11.so<br>  inflating: \
instantclient_11_2/ojdbc5.jar<br>

  inflating: instantclient_11_2/ojdbc6.jar<br>  inflating: \
instantclient_11_2/xstreams.jar<br><br>I think the zip file is corrupted. I am \
downloading this file again.<br>I will post the results of this.<div><div></div><div \
class="h5"> <br>--<br>Angel<br>
<br><div class="gmail_quote">2010/3/8 Christopher Jones <span dir="ltr">&lt;<a \
href="mailto:christopher.jones@oracle.com" \
target="_blank">christopher.jones@oracle.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">

<br>
The error &quot;/opt/instantclient/libclntsh.so: file not recognized: File<br>
format not recognized&quot; still makes me think there is an installation<br>
issue.<br>
<br>
Make the libclntsh symbolic link points to the right file. See<br>
<a href="http://www.oracle.com/technology/pub/notes/technote_php_instant.html" \
target="_blank">http://www.oracle.com/technology/pub/notes/technote_php_instant.html</a><br>
 And/or try unzipping the 32 bit package again<br>
<br>
I just built PHP 5.2.13 on Oracle EL 5.4 using effectively the same<br>
options as you.  It built OK.  My configure line was:<br>
<br>
./configure --prefix=$HOME/phptmp --with-xmlrpc --with-apxs2=$HOME/apache22/bin/apxs  \
--with-gd=/usr/ --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr \
--with-xpm-dir=/usr --with-zlib=/usr \
--with-oci8=instantclient,$HOME/instantclient_11_2 \
--with-pdo-oci=instantclient,$HOME/instantclient_11_2,11.2 --with-snmp=/usr/ \
--with-openssl-dir=/usr --with-iconv --with-curl=/usr --with-curlwrappers \
--with-libxml-dir=/usr --with-gettext=/usr --enable-sigchild --enable-libxml \
--enable-soap<br>


<br>
Chris<div><br>
<br>
Angel Motta wrote:<br>
&gt; Sorry for send twice.<br>
&gt; I forgot php version and apache<br>
&gt; php-5.2.8<br>
&gt; apache: httpd-2.2.12<br>
&gt;<br></div>
&gt; 2010/3/8 Angel Motta &lt;<a href="mailto:angelmotta@gmail.com" \
target="_blank">angelmotta@gmail.com</a> &lt;mailto:<a \
href="mailto:angelmotta@gmail.com" \
target="_blank">angelmotta@gmail.com</a>&gt;&gt;<div><div></div>

<div><br>
&gt;<br>
&gt;     Hi Christopher and Thanks for your assistance<br>
&gt;<br>
&gt;     I am using:<br>
&gt;     RHEL 5.3 - 32bit platform<br>
&gt;     instantclient-basic-linux32-11.2.0.1.zip<br>
&gt;     instantclient-sdk-linux32-11.2.0.1.zip<br>
&gt;<br>
&gt;     I want to install oci8 support with snmp. When I enable snmp-support<br>
&gt;     (that is my objective) in the configure I get this error:<br>
&gt;<br>
&gt;     ./configure --prefix=/usr/local/php --with-xmlrpc<br>
&gt;     --with-apxs2=/usr/local/apache2/bin/apxs<br>
&gt;     --with-config-file-path=/usr/local/php/etc --with-gd=/usr/<br>
&gt;     --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr<br>
&gt;     --with-xpm-dir=/usr --with-zlib=/usr<br>
&gt;     --with-oci8=instantclient,/opt/instantclient<br>
&gt;     --with-pdo-oci=instantclient,/opt/instantclient,11.1<br>
&gt;     --with-snmp=/usr/ --with-openssl-dir=/usr<br>
&gt;     --with-iconv=/usr/local/lib --with-curl=/usr --with-curlwrappers<br>
&gt;     --with-libxml-dir=/usr --with-gettext=/usr --enable-sigchild<br>
&gt;     --enable-libxml --enable-soap<br>
&gt;<br>
&gt;     checking for SNMP support... yes<br>
&gt;     checking OpenSSL dir for SNMP... /usr<br>
&gt;     checking whether to enable UCD SNMP hack... yes<br>
&gt;     checking for snmp_parse_oid in -lnetsnmp... no<br>
&gt;     checking for init_snmp in -lnetsnmp... no<br>
&gt;     configure: error: SNMP sanity check failed. Please check config.log<br>
&gt;     for more information.<br>
&gt;<br>
&gt;     #&gt; vi config.log<br>
&gt;     Start with some like:<br>
&gt;     configure:2165: error: &#39;__CYGWIN32__&#39; undeclared (first use in \
this<br> &gt;     function)<br>
&gt;     configure:2194: error: &#39;__MINGW32__&#39; undeclared (first use in \
this<br> &gt;     function)<br>
&gt;<br>
&gt;     End with some of this:<br>
&gt;<br>
&gt;     /opt/instantclient/libclntsh.so: file not recognized: File format<br>
&gt;     not recognized<br>
&gt;     2017 collect2: ld returned 1 exit status<br>
&gt;     2018 configure: failed program was:<br>
&gt;     2019 #line 88940 &quot;configure&quot;<br>
&gt;     2020 #include &quot;confdefs.h&quot;<br>
&gt;     2021 /* Override any gcc2 internal prototype to avoid an error.  */<br>
&gt;     2022 /* We use char because int might match the return type of a gcc2<br>
&gt;     2023     builtin and then its argument prototype would still apply.  */<br>
&gt;     2024 char init_snmp();<br>
&gt;<br>
&gt;<br>
&gt;     Thanks<br>
&gt;     --<br>
&gt;     Angel<br>
&gt;<br>
&gt;     2010/3/8 Christopher Jones &lt;<a href="mailto:christopher.jones@oracle.com" \
target="_blank">christopher.jones@oracle.com</a><br></div></div> &gt;     \
&lt;mailto:<a href="mailto:christopher.jones@oracle.com" \
target="_blank">christopher.jones@oracle.com</a>&gt;&gt;<div><div></div><div><br> \
&gt;<br> &gt;<br>
&gt;         What platform? What PHP version?<br>
&gt;         Are you doing something like using 32 bit instantclient on a 64<br>
&gt;         bit machine?<br>
&gt;<br>
&gt;         Chris<br>
&gt;<br>
&gt;<br>
&gt;         Angel Motta wrote:<br>
&gt;<br>
&gt;             Hi List<br>
&gt;             Is my first time that I write to this list.<br>
&gt;             I am having problems to compile php with oci support.<br>
&gt;<br>
&gt;             I run this:<br>
&gt;             ./configure --prefix=/usr/local/php --with-xmlrpc<br>
&gt;             --with-apxs2=/usr/local/apache2/bin/apxs<br>
&gt;             --with-config-file-path=/usr/local/php/etc --with-gd=/usr/<br>
&gt;             --with-jpeg-dir=/usr --with-png-dir=/usr<br>
&gt;             --with-freetype-dir=/usr --with-xpm-dir=/usr<br>
&gt;             --with-zlib=/usr<br>
&gt;             --with-oci8=instantclient,/opt/instantclient<br>
&gt;             --with-pdo-oci=instantclient,/opt/instantclient,11.1<br>
&gt;             --with-openssl-dir=/usr --with-iconv=/usr/local<br>
&gt;             --with-curl=/usr --with-curlwrappers --with-libxml-dir=/usr<br>
&gt;             --with-gettext=/usr --enable-sigchild --enable-libxml<br>
&gt;             --enable-soap<br>
&gt;<br>
&gt;             And I receive alert at finish of ./configure and I see the<br>
&gt;             debug.log with this at the end:<br>
&gt;             conftest.c: In function &#39;main&#39;:<br>
&gt;             conftest.c:3: warning: incompatible implicit declaration of<br>
&gt;             built-in function &#39;exit&#39;<br>
&gt;             /opt/instantclient/libclntsh.so: file not recognized: File<br>
&gt;             format not recognized<br>
&gt;             collect2: ld returned 1 exit status<br>
&gt;<br>
&gt;<br>
&gt;             Thanks for your assistance<br>
&gt;             --<br>
&gt;             Angel<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         Email: <a href="mailto:christopher.jones@oracle.com" \
target="_blank">christopher.jones@oracle.com</a><br></div></div> &gt;         \
&lt;mailto:<a href="mailto:christopher.jones@oracle.com" \
target="_blank">christopher.jones@oracle.com</a>&gt;    Tel:  +1 650 506 \
8630<div><div></div><div><br> &gt;         Blog:  <a \
href="http://blogs.oracle.com/opal/" \
target="_blank">http://blogs.oracle.com/opal/</a>   Free PHP Book:<br> &gt;         \
<a href="http://tinyurl.com/UGPOM" target="_blank">http://tinyurl.com/UGPOM</a><br> \
&gt;<br> &gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Atte<br>
&gt;     Angel Motta Paz<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Atte<br>
&gt; Angel Motta Paz<br>
<br>
-- <br>
Email: <a href="mailto:christopher.jones@oracle.com" \
                target="_blank">christopher.jones@oracle.com</a>    Tel:  +1 650 506 \
                8630<br>
Blog:  <a href="http://blogs.oracle.com/opal/" \
target="_blank">http://blogs.oracle.com/opal/</a>   Free PHP Book: <a \
href="http://tinyurl.com/UGPOM" target="_blank">http://tinyurl.com/UGPOM</a><br> \
</div></div></blockquote></div><br><br clear="all"><br></div></div><font \
color="#888888">-- <br>Atte<br>Angel Motta Paz<br> </font></blockquote></div><br><br \
clear="all"><br>-- <br>Atte<br>Angel Motta Paz<br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic