Errors custom compiling PHP5

software development

#1

When running the PHP5 install script (http://wiki.dreamhost.com/PHP5_installscript), I keep getting this error:

“configure: error: OpenSSL libs and/or directories were not found where specified!”

I’ve successfully done this on other Dreamhost servers in the past. The only difference with this server is that it’s a Private Server account.

I’m compiling a custom version of PHP5 because I need PHP’s SOAP module.

In case it helps, here are some of the last lines leading up to the error:

configure: WARNING: Cannot find libraries for LDAP support: LDAP disabled
checking whether to enable ipv6… yes
checking non-blocking sockets style… O_NONBLOCK
checking if argv can be written to… yes
checking if Kerberos4 support is requested… no
checking if SPNEGO support is requested… no
checking if GSSAPI support is requested… no
checking for gdi32… no
checking for CRYPTO_lock in -lcrypto… yes
checking for SSL_connect in -lssl… no
checking for ssl with RSAglue/rsaref libs in use… checking for SSL_connect in -lssl… (cached) no
no
configure: error: OpenSSL libs and/or directories were not found where specified!

Any idea why I’m getting that error or how to fix it?

Thanks,
Justin


#2

Build OpenSSL 0.9.8j (that’s a J) before cURL 7.19.4

cd $openssl ./config --prefix=$loc \ --openssldir=$loc --shared make make installcd $curl ./configure --with-openssl \ --with-zlib=$loc \ --with-libidn=$loc \ --enable-ipv6 \ --enable-cookies \ --enable-crypto-auth \ --prefix=$loc make make install* Change $openssl, $curl, $loc to the relevant variables you’re using.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

Thanks sXi. I’m now building openssl-0.9.8j before cURL 7.19.4, but now I get this error:

checking run-time libs availability… failed
configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lidn -lssl -lcrypto -lrt -lz

Any ideas?

Thanks again,
Justin


#4

export LIBRARY_PATH=$loc/lib:/usr/local/lib:$LIBRARY_PATH*Again, replacing $loc with your script’s relevant variable.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#5

Thanks sXi.

I am having the exact same problem.

I went through the steps posted here, but am now hitting this error (almost there!):

./install-php5.sh: line 236: --with-zlib=$myinstalldir/php5: No such file or directory


#6

Line 236 is this:

–with-libidn=${INSTALLDIR}

And this is the context:

#cURL
cd ${SRCDIR}/${CURL}
./configure --with-ssl=${INSTALLDIR}
–with-zlib=${INSTALLDIR}
–with-libidn=${INSTALLDIR}
–enable-ipv6
–enable-cookies
–enable-crypto-auth
–prefix=${INSTALLDIR}

make clean

make
make install


#7

Shoot. I am missing some backslashes. I’ll fix that and report back.


#8

When cURL is trying to make, I get this error and the script halts:

In file included from osdep.c:917:
sslstdio.c: In function ‘PBIN’:
sslstdio.c:30: error: ‘SSLSTREAM’ has no member named 'ictr’
sslstdio.c:31: error: ‘SSLSTREAM’ has no member named 'iptr’
sslstdio.c: In function ‘PSIN’:
sslstdio.c:49: error: ‘SSLSTREAM’ has no member named 'ictr’
sslstdio.c:50: error: ‘SSLSTREAM’ has no member named 'ictr’
sslstdio.c:52: error: ‘SSLSTREAM’ has no member named 'iptr’
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory /home/myusername/source/imap-2004g/c-client' make[2]: *** [lnp] Error 2 make[2]: Leaving directory/home/myusername/source/imap-2004g/c-client’
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/home/myusername/source/imap-2004g’
make: *** [ldb] Error 2


#9

That looks like the imap bit rather than a cURL problem.

You can likely leave that c-client section out entirely without problems, or maybe:

cclient="imap-2007b" cd $SRCDIR curl -O $REPOS$cclient.tar.Z uncompress -cd $cclient.tar.Z |tar x cd $SRCDIR/$cclient nice -n 19 make ldb IP6=4 cp -f ./c-client/c-client.a $LIBDIR/libc-client.a cp -f ./c-client/*.h $INCDIR cd $SRCDIR rm -rf i*Build OpenSSL… Build cURL… Build PHP

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#10

sXi: I just wanted to say thanks. With you’re help I finally got things working.

  • Justin

#11

Hello! I’m quite a beginner in this area, but I want to install custom php so i can have SOAP, with that said, I’m following the guide in the dreamhost wiki on how to custom install php5 and I end up with this same error as seen above, but since I’m a beginner, I don’t really know how to grasp the problem solving bit, posted by “sXi”, can someone please help me with this, I use “Main PHP 5 install script” from http://wiki.dreamhost.com/Installing_PHP5 without any changes beside domain name…

Last rows of code with before ending

In file included from osdep.c:917:
sslstdio.c: In function âPBINâ:
sslstdio.c:30: error: âSSLSTREAMâ has no member named âictrâ
sslstdio.c:31: error: âSSLSTREAMâ has no member named âiptrâ
sslstdio.c: In function âPSINâ:
sslstdio.c:49: error: âSSLSTREAMâ has no member named âictrâ
sslstdio.c:50: error: âSSLSTREAMâ has no member named âictrâ
sslstdio.c:52: error: âSSLSTREAMâ has no member named âiptrâ
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory /mnt/local/home/centralen/source/imap-2004g/c-client' make[2]: *** [lnp] Error 2 make[2]: Leaving directory/mnt/local/home/centralen/source/imap-2004g/c-client’
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/mnt/local/home/centralen/source/imap-2004g’
make: *** [ldb] Error 2

Thx,
//Henrik