Tech Support > Operating Systems > Linux / Variants > Problem compiling PHP+OpenSSL+Oracle
Problem compiling PHP+OpenSSL+Oracle
Posted by Álvaro Palma Aste on January 27th, 2004


I don't know if this is the correct location for this kind of question. If no, please
forgive, and I'll be very thankful if you redirect me in the correct way.

I'm trying to recompile RedHat distributed PHP rpm, adding it support for Oracle
(--with-oci8). To do that, I downloaded latest errata for the PHP source rpm,
and tried to rebuild it with Oracle support using

rpmbuild --rebuild --target=i386 --define 'oracle 1' php-4.1.2-7.2.6.src.rpm

I've previously installed Oracle client of course.

However, if I run the rpmbuild command, I always get the error:

checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!

But I've installed openssl-devel:

[root@ns ~]# rpm -qa | grep openssl
openssl096-0.9.6-23.7
openssl-0.9.6b-35.7
openssl095a-0.9.5a-23.7.3
openssl-devel-0.9.6b-35.7
openssl-perl-0.9.6b-35.7

[root@ns ~]# ldconfig -p | grep libcrypto
libcrypto.so.2 (libc6) => /lib/libcrypto.so.2
libcrypto.so.1 (libc6) => /usr/lib/libcrypto.so.1
libcrypto.so.0 (libc6) => /usr/lib/libcrypto.so.0
libcrypto.so (libc6) => /usr/lib/libcrypto.so

[root@ns /lib]# ls -l | grep libcrypto
-rwxr-xr-x 1 root root 929382 sep 24 14:51 libcrypto.so.0.9.6b
lrwxrwxrwx 1 root root 19 oct 26 2002 libcrypto.so.2 -> libcrypto.so.0.9.6b

[root@ns /usr/lib]# ls -l | grep libcrypto
-rw-r--r-- 1 root root 1440304 sep 24 15:24 libcrypto.a
lrwxrwxrwx 1 root root 29 ene 27 00:09 libcrypto.so -> ../../lib/libcrypto.so.0.9.6b
lrwxrwxrwx 1 root root 19 oct 26 2002 libcrypto.so.0 -> libcrypto.so.0.9.5a
-rwxr-xr-x 1 root root 925022 sep 24 15:21 libcrypto.so.0.9.5a
-rwxr-xr-x 1 root root 882913 sep 24 15:21 libcrypto.so.0.9.6
lrwxrwxrwx 1 root root 18 oct 26 2002 libcrypto.so.1 -> libcrypto.so.0.9.6

What am I doing wrong or forgetting?

RedHat 7.2 updated
Oracle 8.1.7.4

Thanks a lot for your attention and help

--
Atte.
Álvaro Palma Aste
************************************************** ****
It's the only form of protest they're allowed
I've seen their silent faces scream so loud
If they were to speak these words they'd go missing too
Another woman on a torture table what else can they do

Sting - They Dance Alone (Cueca Sola)...

30 años, ni perdón ni olvido, JUSTICIA!


Similar Posts