Errors custom compiling PHP5

Errors custom compiling PHP5

Posted by: theguy
Posted on: 2009-05-13 12:14:00

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:

Re: Errors custom compiling PHP5

Posted by: sXi
Posted on: 2009-05-13 20:44:00

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

cd $openssl
./config --prefix=$loc \
--openssldir=$loc --shared
make
make install

cd $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.




How To Install PHP.INI / ionCube on DreamHost

Re: Errors custom compiling PHP5

Posted by: theguy
Posted on: 2009-05-14 02:27:00

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

Re: Errors custom compiling PHP5

Posted by: sXi
Posted on: 2009-05-14 08:39:00

export LIBRARY_PATH=$loc/lib:/usr/local/lib:$LIBRARY_PATH

*Again, replacing $loc with your script's relevant variable.




How To Install PHP.INI / ionCube on DreamHost

Re: Errors custom compiling PHP5

Posted by: junglemason
Posted on: 2009-05-15 12:25:00

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


Re: Errors custom compiling PHP5

Posted by: junglemason
Posted on: 2009-05-15 12:28:00

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


Re: Errors custom compiling PHP5

Posted by: junglemason
Posted on: 2009-05-15 13:05:00

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

Re: Errors custom compiling PHP5

Posted by: junglemason
Posted on: 2009-05-15 15:33:00

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


Re: Errors custom compiling PHP5

Posted by: sXi
Posted on: 2009-05-16 05:06:00

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




How To Install PHP.INI / ionCube on DreamHost

Re: Errors custom compiling PHP5

Posted by: theguy
Posted on: 2009-05-17 17:29:00

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

- Justin

Re: Errors custom compiling PHP5

Posted by: zapmore
Posted on: 2009-05-28 05:13:00

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

Tags: installscriptserver accountprivate serverphp5libssocketssoaplibrariesservers