RE: [PHP-INSTALL] Make error
| From: | Plantier, Spencer | Date: | Wed, 23 Mar 2005 13:29:17 +0000 |
| Subject: | RE: [PHP-INSTALL] Make error | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-15886@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Michael [mailto:phplist@mew.ssxh.net]
Sent: Tuesday, March 22, 2005 6:39 PM
To: Plantier, Spencer
Cc: php-install@lists.php.net
Subject: Re: [PHP-INSTALL] Make error
Try using the option --with-mysql=/opt/sfw/mysql (remove the end slash).
It looks to me as though the configure script is appending
"/lib/mysql/.libs/libmysqlclient.so" to the end of the mysql path.
Plantier, Spencer wrote:
>I am new to unix and need to get snort running asap. Any help from this
>group would be appreciated.
>
>I was able to run this sucessfully:
>
>./configure \
> --with-apxs2=/usr/local/apache2/bin/apxs \
> --with-mysql=/opt/sfw/mysql/ \
> --with-mysql-sock=/tmp/mysql.sock \
> --with-sqlite \
> --enable-sqlite-utf8 \
> --with-zlib \
> --with-zlib-dir \
> --with-bz2 \
> --with-gd \
> --enable-gd \
> --enable-gd-native-ttf \
> --with-jpeg-dir=/usr/local \
> --with-png-dir=/usr/local \
> --with-ttf \
> --with-iconv=/usr/local \
> --with-curl=/usr/local \
> --enable-track-vars \
> --with-gettext \
> --with-config-file-path=/usr/local/apache2/conf \
> --enable-trans-id \
> --enable-ftp \
> --enable-mbstring \
> --with-openssl=/usr/local
>
>When I do a make I get
>
>ld: fatal: file /opt/sfw/mysql//lib/mysql/.libs/libmysqlclient.so: open
>failed: No such file or directory
>ld: fatal: File processing errors. No output written to
>.libs/libphp5.so
>*** Error code 1
>make: Fatal error: Command failed for target `libphp5.la'
>libmysqlclient.so is located at
>/opt/sfw/mysql/lib/mysql/libmysqlclient.so
>
>Any help would be appreciated with this.
>
>Thanks
>
>Spencer Plantier
>System Network Administrator
>
>301 Gregson Dr
>Cary, NC 27511
>Office 919-379-8513
>Cell 919-272-8833
>spencer.plantier@stratech.com
>
>
>
>
I made the correction. Libmysqlclient.so is in the
/opt/sfw/mysql/lib/mysql not /opt/sfw/mysql/lib/mysql/.libs. I don't
have a .libs directory.
d: fatal: file /opt/sfw/mysql/lib/mysql/.libs/libmysqlclient.so: open
failed: No such file or directory
ld: fatal: File processing errors. No output written to .libs/libphp5.so
*** Error code 1
make: Fatal error: Command failed for target `libphp5.la'
Thanks,
Spencer
>