Discussion:
[PHP-INSTALL] libphp5.so missing after compile php5.3.8
Smith, Mitchell
2011-09-14 18:27:19 UTC
Permalink
hi,

I am trying to install PHP and Apache2, however when i execute make install
for php, the required libphp.so file does not appear to be compiled/created.

After extracting the PHP 5.3.8 (tar.gz)

# export CFLAGS=-O2
# ./configure --prefix /usr/local/php --with-my-sql -
-with-apxs2=/usr/local/apache2/bin/apxs
# make
# make test
# make install

I can see a file libphp5.module.in (I think thats what it is named, within
the extracted source folder, but have searched for and cannot find the
reuired libphp5.so file.

OS: CentOS 5.5 64bit
Apache2
PHP5.3.8

Is there another configure parameter i need to set, or a way to compile
libphp5.so individually.

I have searched forums for this, and cant seem to find an answer.

Any help would be greatly appreciated

Thanks,
--
*Mitchell Smith
*

The information contained in this email (and any attachments) is confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to monitor all email communications through their networks to
ensure regulatory compliance.

Cable & Wireless Communications Plc is a company registered in England & Wales with number:
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
Sharl.Jimh.Tsin
2011-09-15 09:04:17 UTC
Permalink
在 2011-09-14三的 19:27 +0100,Smith, Mitchell写道:
Post by Smith, Mitchell
hi,
I am trying to install PHP and Apache2, however when i execute make
install for php, the required libphp.so file does not appear to be
compiled/created.
After extracting the PHP 5.3.8 (tar.gz)
# export CFLAGS=-O2
# ./configure --prefix /usr/local/php --with-my-sql
--with-apxs2=/usr/local/apache2/bin/apxs
# make
# make test
# make install
I can see a file libphp5.module.in (I think thats what it is named,
within the extracted source folder, but have searched for and cannot
find the reuired libphp5.so file..
OS: CentOS 5.5 64bit
Apache2
PHP5.3.8
Is there another configure parameter i need to set, or a way to
compile libphp5.so individually.
I have searched forums for this, and cant seem to find an answer.
Any help would be greatly appreciated
Thanks,
--
Mitchell Smith
The information contained in this email (and any attachments) is confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to monitor all email communications through their networks to
ensure regulatory compliance.
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
cd php-x.x.x,try find . -name "libphp*.so"
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)

Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.
Smith, Mitchell
2011-09-15 09:23:10 UTC
Permalink
Hi,

that returns no files, i have tried in the src folder, the installed dir,
and for the full system directory structure.
[***@CWICISRH014 php]# find . -name "libphp*.so"
[***@CWICISRH014 php]# cd /usr/local/src/php-5.3.8/
[***@CWICISRH014 php-5.3.8]# find . -name "libphp*.so"
[***@CWICISRH014 php-5.3.8]# cd /
[***@CWICISRH014 /]# find . -name "libphp*.so"
[***@CWICISRH014 /]#

If i execute find . -name "libphp*" i see the following 2 files.

[***@CWICISRH014 /]# find . -name "libphp*"
./usr/local/src/php-5.3.8/sapi/apache/libphp5.module.in
./usr/local/src/php-5.3.8/sapi/apache_hooks/libphp5.module.in
[***@CWICISRH014 /]#

I am wondering if the make/make install commands do not compile the
libphp5.so

Thanks,

Mitchell
圚 2011-09-14侉的 19:27 +0100Smith, Mitchell写道
Post by Smith, Mitchell
hi,
I am trying to install PHP and Apache2, however when i execute make
install for php, the required libphp.so file does not appear to be
compiled/created.
After extracting the PHP 5.3.8 (tar.gz)
# export CFLAGS=-O2
# ./configure --prefix /usr/local/php --with-my-sql
--with-apxs2=/usr/local/apache2/bin/apxs
# make
# make test
# make install
I can see a file libphp5.module.in (I think thats what it is named,
within the extracted source folder, but have searched for and cannot
find the reuired libphp5.so file..
OS: CentOS 5.5 64bit
Apache2
PHP5.3.8
Is there another configure parameter i need to set, or a way to
compile libphp5.so individually.
I have searched forums for this, and cant seem to find an answer.
Any help would be greatly appreciated
Thanks,
--
Mitchell Smith
The information contained in this email (and any attachments) is
confidential and may be privileged. If you are not the intended recipient
Post by Smith, Mitchell
and have received this email in error, please notify the sender
immediately by reply email and delete the message and any attachments.
Post by Smith, Mitchell
If you are not the named addressee, you must not copy, disclose, forward
or otherwise use the information contained in this email.
Post by Smith, Mitchell
Cable & Wireless Communications Plc and its affiliates reserve the right
to monitor all email communications through their networks to
Post by Smith, Mitchell
ensure regulatory compliance.
Cable & Wireless Communications Plc is a company registered in England &
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London
WC1R 4HQ
cd php-x.x.x,try find . -name "libphp*.so"
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)
http://www.fsf.org/campaigns/jstrap/gmail?10073.
--
*Mitchell Smith
*
Junior Developer
*Cable & Wireless Communications*
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com

The information contained in this email (and any attachments) is confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to monitor all email communications through their networks to
ensure regulatory compliance.

Cable & Wireless Communications Plc is a company registered in England & Wales with number:
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
Sharl.Jimh.Tsin
2011-09-15 10:39:12 UTC
Permalink
在 2011-09-15四的 10:23 +0100,Smith, Mitchell写道:
Post by Smith, Mitchell
Hi,
that returns no files, i have tried in the src folder, the installed
dir, and for the full system directory structure.
If i execute find . -name "libphp*" i see the following 2 files.
./usr/local/src/php-5.3.8/sapi/apache/libphp5.module.in
./usr/local/src/php-5.3.8/sapi/apache_hooks/libphp5.module.in
I am wondering if the make/make install commands do not compile the
libphp5.so
Thanks,
Mitchell
在 2011-09-14三的 19:27 +0100,Smith, Mitchell写道:
Post by Smith, Mitchell
hi,
I am trying to install PHP and Apache2, however when i
execute make
Post by Smith, Mitchell
install for php, the required libphp.so file does not appear
to be
Post by Smith, Mitchell
compiled/created.
After extracting the PHP 5.3.8 (tar.gz)
# export CFLAGS=-O2
# ./configure --prefix /usr/local/php --with-my-sql
--with-apxs2=/usr/local/apache2/bin/apxs
# make
# make test
# make install
I can see a file libphp5.module.in (I think thats what it is
named,
Post by Smith, Mitchell
within the extracted source folder, but have searched for
and cannot
Post by Smith, Mitchell
find the reuired libphp5.so file..
OS: CentOS 5.5 64bit
Apache2
PHP5.3.8
Is there another configure parameter i need to set, or a way
to
Post by Smith, Mitchell
compile libphp5.so individually.
I have searched forums for this, and cant seem to find an
answer.
Post by Smith, Mitchell
Any help would be greatly appreciated
Thanks,
--
Mitchell Smith
The information contained in this email (and any
attachments) is confidential and may be privileged. If you are
not the intended recipient
Post by Smith, Mitchell
and have received this email in error, please notify the
sender immediately by reply email and delete the message and
any attachments.
Post by Smith, Mitchell
If you are not the named addressee, you must not copy,
disclose, forward or otherwise use the information contained
in this email.
Post by Smith, Mitchell
Cable & Wireless Communications Plc and its affiliates
reserve the right to monitor all email communications through
their networks to
Post by Smith, Mitchell
ensure regulatory compliance.
Cable & Wireless Communications Plc is a company registered
07130199 and offices located at 3rd Floor, 26 Red Lion
Square, London WC1R 4HQ
cd php-x.x.x,try find . -name "libphp*.so"
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)
http://www.fsf.org/campaigns/jstrap/gmail?10073.
--
Mitchell Smith
Junior Developer
Cable & Wireless Communications
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com
The information contained in this email (and any attachments) is confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to monitor all email communications through their networks to
ensure regulatory compliance.
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
no idea,could you paste the configure output log here?
BTW,is the apxs(/usr/local/apache2/bin/apxs) exist?
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)

Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.
Sharl.Jimh.Tsin
2011-09-15 11:17:30 UTC
Permalink
在 2011-09-15四的 11:53 +0100,Smith, Mitchell写道:
H,
yes, apxs does exist in this location.
below is the output of ./configure --prefix /usr/local/php
--with-my-sql --with-apxs2=/usr/local/apache2/bin/apxs
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output...
(cached) /bin/sed
checking host system type... x86_64-unknown-linux-gnu
checking target system type...
x86_64-unknown-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc
-E
checking for icc... no
checking for suncc... no
checking whether gcc and cc understand -c and -o
together... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking whether ln -s works... (cached) yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached)
yes
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking for bison version... (cached) 2.3 (ok)
checking for re2c... no
checking whether to enable computed goto gcc extension
with re2c... no
checking whether to force non-PIC code in shared
modules... no
checking whether /dev/urandom exists... yes
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)
ESC[1mConfiguring SAPI modulesESC[m
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility
option... no
checking for Apache 2.0 filter-module support via DSO through
APXS... no
checking for Apache 2.0 handler-module support via DSO through
APXS... yes
checking for Apache 1.x (hooks) module support via DSO through
APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility
option... no
checking for Caudium support... no
checking for CLI build... yes
checking for Continuity support... no
checking for embedded SAPI library support... no
checking for FPM build... no
checking for Zeus ISAPI support... no
checking for LiteSpeed support... no
checking for Milter support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web support... no
checking whether Roxen module is build using ZTS... no
checking for Roxen/Pike support...
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for chosen SAPI module... apache2handler
ESC[1mRunning system checksESC[m
checking for sendmail... (cached) /usr/sbin/sendmail
checking whether system uses EBCDIC... (cached) no
checking whether byte ordering is bigendian... (cached) no
checking whether writing to stdout works... (cached) yes
checking for socket... yes
checking for socketpair... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... no
checking for __yp_get_default_domain... no
checking for yp_get_default_domain in -lnsl... yes
checking for dlopen... no
checking for __dlopen... no
checking for dlopen in -ldl... yes
checking for sin in -lm... (cached) yes
checking for inet_aton... yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for dirent.h... (cached) yes
checking for ApplicationServices/ApplicationServices.h...
(cached) no
checking for sys/param.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for alloca.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for arpa/nameser.h... (cached) yes
checking for assert.h... (cached) yes
checking for crypt.h... (cached) yes
checking for dns.h... (cached) no
checking for fcntl.h... (cached) yes
checking for grp.h... (cached) yes
checking for ieeefp.h... (cached) no
checking for langinfo.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for monetary.h... (cached) yes
checking for netdb.h... (cached) yes
checking for pwd.h... (cached) yes
checking for resolv.h... (cached) yes
checking for signal.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... (cached) yes
checking for sysexits.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/statfs.h... (cached) yes
checking for sys/statvfs.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for sys/sysexits.h... (cached) no
checking for sys/varargs.h... (cached) no
checking for sys/wait.h... (cached) yes
checking for sys/loadavg.h... (cached) no
checking for termios.h... (cached) yes
checking for unistd.h... (cached) yes
checking for unix.h... (cached) no
checking for utime.h... (cached) yes
checking for sys/utsname.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for assert.h... (cached) yes
checking for fopencookie... (cached) yes
checking for broken getcwd... no
checking for broken libc stdio... (cached) yes
checking whether struct tm is in sys/time.h or
time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) yes
checking for missing declarations of reentrant
functions... done
checking for fclose declaration... ok
checking for tm_gmtoff in struct tm... (cached) yes
checking for struct flock... (cached) yes
checking for socklen_t... (cached) yes
checking size of size_t... (cached) 8
checking size of long long... (cached) 8
checking size of long long int... (cached) 8
checking size of long... (cached) 8
checking size of int... (cached) 4
checking size of intmax_t... (cached) 8
checking size of ssize_t... (cached) 8
checking size of ptrdiff_t... (cached) 8
checking for st_blksize in struct stat... (cached) yes
checking for st_blocks in struct stat... (cached) yes
checking for st_rdev in struct stat... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for struct sockaddr_storage... (cached) yes
checking for field sa_len in struct sockaddr...
(cached) no
checking for IPv6 support... (cached) yes
checking for vprintf... (cached) yes
checking for alphasort... (cached) yes
checking for asctime_r... (cached) yes
checking for chroot... (cached) yes
checking for ctime_r... (cached) yes
checking for cuserid... (cached) yes
checking for crypt... (cached) no
checking for flock... (cached) yes
checking for ftok... (cached) yes
checking for funopen... (cached) no
checking for gai_strerror... (cached) yes
checking for gcvt... (cached) yes
checking for getloadavg... (cached) yes
checking for getlogin... (cached) yes
checking for getprotobyname... (cached) yes
checking for getprotobynumber... (cached) yes
checking for getservbyname... (cached) yes
checking for getservbyport... (cached) yes
checking for gethostname... (cached) yes
checking for getrusage... (cached) yes
checking for gettimeofday... (cached) yes
checking for gmtime_r... (cached) yes
checking for getpwnam_r... (cached) yes
checking for getgrnam_r... (cached) yes
checking for getpwuid_r... (cached) yes
checking for grantpt... (cached) yes
checking for inet_ntoa... (cached) yes
checking for inet_ntop... (cached) yes
checking for inet_pton... (cached) yes
checking for isascii... (cached) yes
checking for link... (cached) yes
checking for localtime_r... (cached) yes
checking for lockf... (cached) yes
checking for lchown... (cached) yes
checking for lrand48... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mkstemp... (cached) yes
checking for mmap... (cached) yes
checking for nl_langinfo... (cached) yes
checking for perror... (cached) yes
checking for poll... (cached) yes
checking for ptsname... (cached) yes
checking for putenv... (cached) yes
checking for realpath... (cached) yes
checking for random... (cached) yes
checking for rand_r... (cached) yes
checking for scandir... (cached) yes
checking for setitimer... (cached) yes
checking for setlocale... (cached) yes
checking for localeconv... (cached) yes
checking for setenv... (cached) yes
checking for setpgid... (cached) yes
checking for setsockopt... (cached) yes
checking for setvbuf... (cached) yes
checking for shutdown... (cached) yes
checking for sin... (cached) yes
checking for snprintf... (cached) yes
checking for srand48... (cached) yes
checking for srandom... (cached) yes
checking for statfs... (cached) yes
checking for statvfs... (cached) yes
checking for std_syslog... (cached) no
checking for strcasecmp... (cached) yes
checking for strcoll... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for strftime... (cached) yes
checking for strnlen... (cached) yes
checking for strptime... (cached) yes
checking for strstr... (cached) yes
checking for strtok_r... (cached) yes
checking for symlink... (cached) yes
checking for tempnam... (cached) yes
checking for tzset... (cached) yes
checking for unlockpt... (cached) yes
checking for unsetenv... (cached) yes
checking for usleep... (cached) yes
checking for utime... (cached) yes
checking for vsnprintf... (cached) yes
checking for vasprintf... (cached) yes
checking for asprintf... (cached) yes
checking for nanosleep in -lrt... yes
checking for getaddrinfo... (cached) yes
checking for strlcat... (cached) no
checking for strlcpy... (cached) no
checking for getopt... (cached) yes
checking whether utime accepts a null argument... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for declared timezone... (cached) yes
checking for type of reentrant time-related functions...
(cached) POSIX
checking for readdir_r... (cached) yes
checking for type of readdir_r... (cached) POSIX
checking for in_addr_t... (cached) yes
checking for crypt_r... (cached) no
ESC[1mGeneral settingsESC[m
checking whether to include gcov symbols... no
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... DEFAULT
checking where to scan for configuration files...
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to enable magic quotes by default... no
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking whether to enable IPv6 support... yes
checking how big to make fd sets... using system default
ESC[1mConfiguring extensionsESC[m
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... (cached) yes
checking for uint32_t... (cached) yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... (cached) yes
checking for atoll... (cached) yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for OpenSSL support... no
checking for Kerberos support... no
checking for PCRE library to use... bundled
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... no
checking if the location of ZLIB install directory is
defined... no
checking whether to enable bc style precision math
functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... no
checking if we should use cURL for url streams... no
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for ENCHANT support... no
checking whether to enable EXIF (metadata from images)
support... no
checking for fileinfo support... yes
checking for utimes... (cached) yes
checking for strndup... (cached) yes
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... no
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... no
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD...
no
checking whether to enable JIS-mapped Japanese font support in
GD... no
checking for GNU gettext support... no
checking for GNU MP support... no
checking for mhash support... no
checking whether to enable hash support... yes
checking whether byte ordering is bigendian... (cached) no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking for iconv support... yes
checking for iconv... (cached) yes
checking if iconv is glibc's... yes
checking if iconv supports errno... yes
checking if your cpp allows macro usage in include lines...
yes
checking for IMAP support... no
checking for IMAP Kerberos support... no
checking for IMAP SSL support... no
checking for InterBase support... no
checking whether to enable internationalization support... no
checking whether to enable JavaScript Object Serialization
support... yes
checking for ANSI C header files... (cached) yes
checking for LDAP support... no
checking for LDAP Cyrus SASL support... no
checking whether to enable multibyte string support... no
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... no
checking for mcrypt support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
在 2011-09-15四的 10:23 +0100,Smith, Mitchell写道:
Post by Smith, Mitchell
Hi,
that returns no files, i have tried in the src folder, the
installed
Post by Smith, Mitchell
dir, and for the full system directory structure.
If i execute find . -name "libphp*" i see the following 2
files.
Post by Smith, Mitchell
./usr/local/src/php-5.3.8/sapi/apache/libphp5.module.in
./usr/local/src/php-5.3.8/sapi/apache_hooks/libphp5.module.in
I am wondering if the make/make install commands do not
compile the
Post by Smith, Mitchell
libphp5.so
Thanks,
Mitchell
On 15 September 2011 10:04, Sharl.Jimh.Tsin
在 2011-09-14三的 19:27 +0100,Smith, Mitchell写道:
Post by Smith, Mitchell
hi,
I am trying to install PHP and Apache2, however
when i
Post by Smith, Mitchell
execute make
Post by Smith, Mitchell
install for php, the required libphp.so file does
not appear
Post by Smith, Mitchell
to be
Post by Smith, Mitchell
compiled/created.
After extracting the PHP 5.3.8 (tar.gz)
# export CFLAGS=-O2
# ./configure --prefix /usr/local/php
--with-my-sql
Post by Smith, Mitchell
Post by Smith, Mitchell
--with-apxs2=/usr/local/apache2/bin/apxs
# make
# make test
# make install
I can see a file libphp5.module.in (I think thats
what it is
Post by Smith, Mitchell
named,
Post by Smith, Mitchell
within the extracted source folder, but have
searched for
Post by Smith, Mitchell
and cannot
Post by Smith, Mitchell
find the reuired libphp5.so file..
OS: CentOS 5.5 64bit
Apache2
PHP5.3.8
Is there another configure parameter i need to
set, or a way
Post by Smith, Mitchell
to
Post by Smith, Mitchell
compile libphp5.so individually.
I have searched forums for this, and cant seem to
find an
Post by Smith, Mitchell
answer.
Post by Smith, Mitchell
Any help would be greatly appreciated
Thanks,
--
Mitchell Smith
The information contained in this email (and any
attachments) is confidential and may be privileged.
If you are
Post by Smith, Mitchell
not the intended recipient
Post by Smith, Mitchell
and have received this email in error, please
notify the
Post by Smith, Mitchell
sender immediately by reply email and delete the
message and
Post by Smith, Mitchell
any attachments.
Post by Smith, Mitchell
If you are not the named addressee, you must not
copy,
Post by Smith, Mitchell
disclose, forward or otherwise use the information
contained
Post by Smith, Mitchell
in this email.
Post by Smith, Mitchell
Cable & Wireless Communications Plc and its
affiliates
Post by Smith, Mitchell
reserve the right to monitor all email
communications through
Post by Smith, Mitchell
their networks to
Post by Smith, Mitchell
ensure regulatory compliance.
Cable & Wireless Communications Plc is a company
registered
Post by Smith, Mitchell
Post by Smith, Mitchell
07130199 and offices located at 3rd Floor, 26 Red
Lion
Post by Smith, Mitchell
Square, London WC1R 4HQ
cd php-x.x.x,try find . -name "libphp*.so"
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan
INCLUDED**)
Post by Smith, Mitchell
http://www.fsf.org/campaigns/jstrap/gmail?10073.
--
Mitchell Smith
Junior Developer
Cable & Wireless Communications
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com
The information contained in this email (and any
attachments) is confidential and may be privileged. If you are
not the intended recipient
Post by Smith, Mitchell
and have received this email in error, please notify the
sender immediately by reply email and delete the message and
any attachments.
Post by Smith, Mitchell
If you are not the named addressee, you must not copy,
disclose, forward or otherwise use the information contained
in this email.
Post by Smith, Mitchell
Cable & Wireless Communications Plc and its affiliates
reserve the right to monitor all email communications through
their networks to
Post by Smith, Mitchell
ensure regulatory compliance.
Cable & Wireless Communications Plc is a company registered
07130199 and offices located at 3rd Floor, 26 Red Lion
Square, London WC1R 4HQ
no idea,could you paste the configure output log here?
BTW,is the apxs(/usr/local/apache2/bin/apxs) exist?
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)
http://www.fsf.org/campaigns/jstrap/gmail?10073.
--
Mitchell Smith
Junior Developer
Cable & Wireless Communications
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com
The information contained in this email (and any attachments) is confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to monitor all email communications through their networks to
ensure regulatory compliance.
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
well,according to the output log,configure failed duo to your BAD mysql
location.
Post by Smith, Mitchell
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
you should fix it at first,and then compile it right.

it is not matter of PHP or Apache httpd.i test it OK with Apache httpd
2.2.21 & php 5.3.8.

**************
Build complete.
Don't forget to run 'make test'.

***@sharl-desktop:~/下载/download/php-5.3.8$ find . -name "libphp*.so"
./libs/libphp5.so
./.libs/libphp5.so
***@sharl-desktop:~/下载/download/php-5.3.8$ ls /opt/apache2/bin/apxs
/opt/apache2/bin/apxs
***@sharl-desktop:~/下载/download/php-5.3.8$ history
1 exit
2 exit
3 ./configure --help
4 ls /opt/apache2/bin/apxs
5 ./configure --prefix=/opt/php --with-apxs2=/opt/apache2/bin/apxs
6 make
7 find . -name "libphp*.so"
8 history
****************
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)

Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.
Ferenc Kovacs
2011-09-15 11:25:30 UTC
Permalink
Post by Sharl.Jimh.Tsin
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
you should fix it at first,and then compile it right.
I'm surprised that it even tries to build mysql when --with-my-sql is
passed to configure instead of --with-mysql
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
Smith, Mitchell
2011-09-15 12:53:45 UTC
Permalink
hi,

the with-my-sql was a typo in the email.

I have corrected the path to mysql.... then saw an error relating to mysql
needing the zlib library.... so my ./configure now is:

./configure --with-mysql=/usr/bin/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php
--with-zlib-dir=/usr/local/zlib
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes

checking for specified location of the MySQL UNIX socket... no

checking for mysql_close in -lmysqlclient_r... no

checking for mysql_error in -lmysqlclient_r... no

configure: error: mysql configure failed. Please check config.log for more
information
collect2: ld returned 1 exit status
#line 60050 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:60284: checking for mysql_error in -lmysqlclient_r
configure:60303: gcc -o conftest -I/usr/include -O2 -fvisibility=hidden
-pthread -D_REENTRANT -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql
-Wl,-rpath,/usr/local/zlib/lib -L/usr/local/zlib/lib -L/usr/lib
-Wl,-rpath,/usr/local/zlib/lib -L/usr/local/zlib/lib
-Wl,-rpath,/usr/local/zlib -L/usr/local/zlib conftest.c -lmysqlclient_r -lz
-lz -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.so when
searching for -lmysqlclient_r
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.a when
searching for -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
#line 60292 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
int main() {
mysql_error()
; return 0; }
Any ideas?

Thanks

Mitchell
Post by Sharl.Jimh.Tsin
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
you should fix it at first,and then compile it right.
I'm surprised that it even tries to build mysql when --with-my-sql is
passed to configure instead of --with-mysql
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
--
*Mitchell Smith
*
Junior Developer
*Cable & Wireless Communications*
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com

The information contained in this email (and any attachments) is confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to monitor all email communications through their networks to
ensure regulatory compliance.

Cable & Wireless Communications Plc is a company registered in England & Wales with number:
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
Ferenc Kovacs
2011-09-15 13:06:06 UTC
Permalink
the relevant part is: /usr/bin/ld: cannot find -lmysqlclient_r

you could try with --with-mysql=mysqlnd
or install the libmysql development files from your distributor
(libmysqlclient-dev package on debian/ubuntu)
Post by Smith, Mitchell
hi,
the with-my-sql was a typo in the email.
I have corrected the path to mysql.... then saw an error relating to mysql
Post by Smith, Mitchell
./configure --with-mysql=/usr/bin/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php
--with-zlib-dir=/usr/local/zlib
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for mysql_close in -lmysqlclient_r... no
checking for mysql_error in -lmysqlclient_r... no
configure: error: mysql configure failed. Please check config.log for more
information
collect2: ld returned 1 exit status
#line 60050 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:60284: checking for mysql_error in -lmysqlclient_r
configure:60303: gcc -o conftest -I/usr/include -O2 -fvisibility=hidden
-pthread  -D_REENTRANT -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql
-Wl,-rpath,/usr/local/zlib/lib -L/usr/local/zlib/lib -L/usr/lib
 -Wl,-rpath,/usr/local/zlib/lib -L/usr/local/zlib/lib
-Wl,-rpath,/usr/local/zlib -L/usr/local/zlib conftest.c -lmysqlclient_r  -lz
-lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.so when
searching for -lmysqlclient_r
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.a when
searching for -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
#line 60292 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();
int main() {
mysql_error()
; return 0; }
Any ideas?
Thanks
Mitchell
Post by Smith, Mitchell
Post by Sharl.Jimh.Tsin
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
you should fix it at first,and then compile it right.
I'm surprised that it even tries to build mysql when --with-my-sql is
passed to configure instead of --with-mysql
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
--
Mitchell Smith
Junior Developer
Cable & Wireless Communications
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com
The information contained in this email (and any attachments) is
confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately
by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or
otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to
monitor all email communications through their networks to
ensure regulatory compliance.
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
Ferenc Kovacs
2011-09-15 13:56:59 UTC
Permalink
CCing the list

---------- Forwarded message ----------
From: Ferenc Kovacs <***@gmail.com>
Date: Thu, Sep 15, 2011 at 3:56 PM
Subject: Re: [PHP-INSTALL] libphp5.so missing after compile php5.3.8
To: "Smith, Mitchell" <***@cwc.com>


http://www.php.net/manual/en/mysqlnd.overview.php
mysqlnd is a replacement for libmysql.
for building mysql support, you can either use libmysql or mysqlnd.
for 5.3, the default is libmysql, so if you don't pass mysqlnd for the
--with-mysql argument, then the mysql support will be built on top of
libmysql, hence you will need the mysql client libs present in your
environment.
if you specify mysqlnd, it will build the mysql extensions with
mysqlnd, which obviously don't need libmysql.

for the record: version 5.4 changes this behaviour, and mysqlnd will
be the default, so if no value is passed to --with-mysql mysqlnd will
be choosen.
Hi,
That worked fine thanks, could you explain to me why --with-mysql=mysqlnd
fixed the issues.
Thanks
Post by Ferenc Kovacs
the relevant part is: /usr/bin/ld: cannot find -lmysqlclient_r
you could try with --with-mysql=mysqlnd
or install the libmysql development files from your distributor
(libmysqlclient-dev package on debian/ubuntu)
Post by Smith, Mitchell
hi,
the with-my-sql was a typo in the email.
I have corrected the path to mysql.... then saw an error relating to mysql
Post by Smith, Mitchell
./configure --with-mysql=/usr/bin/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php
--with-zlib-dir=/usr/local/zlib
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for mysql_close in -lmysqlclient_r... no
checking for mysql_error in -lmysqlclient_r... no
configure: error: mysql configure failed. Please check config.log for more
information
collect2: ld returned 1 exit status
#line 60050 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:60284: checking for mysql_error in -lmysqlclient_r
configure:60303: gcc -o conftest -I/usr/include -O2 -fvisibility=hidden
-pthread  -D_REENTRANT -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql
-Wl,-rpath,/usr/local/zlib/lib -L/usr/local/zlib/lib -L/usr/lib
 -Wl,-rpath,/usr/local/zlib/lib -L/usr/local/zlib/lib
-Wl,-rpath,/usr/local/zlib -L/usr/local/zlib conftest.c -lmysqlclient_r  -lz
-lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.so when
searching for -lmysqlclient_r
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.a when
searching for -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
#line 60292 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();
int main() {
mysql_error()
; return 0; }
Any ideas?
Thanks
Mitchell
Post by Smith, Mitchell
Post by Sharl.Jimh.Tsin
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
you should fix it at first,and then compile it right.
I'm surprised that it even tries to build mysql when --with-my-sql is
passed to configure instead of --with-mysql
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
--
Mitchell Smith
Junior Developer
Cable & Wireless Communications
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com
The information contained in this email (and any attachments) is
confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately
by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or
otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to
monitor all email communications through their networks to
ensure regulatory compliance.
Cable & Wireless Communications Plc is a company registered in England &
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London
WC1R
4HQ
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
--
Mitchell Smith
Junior Developer
Cable & Wireless Communications
Tel: +44 (0) 20 7315 4454
Mobile: +44 (0) 7921619263
www.cwc.com
The information contained in this email (and any attachments) is
confidential and may be privileged. If you are not the intended recipient
and have received this email in error, please notify the sender immediately
by reply email and delete the message and any attachments.
If you are not the named addressee, you must not copy, disclose, forward or
otherwise use the information contained in this email.
Cable & Wireless Communications Plc and its affiliates reserve the right to
monitor all email communications through their networks to
ensure regulatory compliance.
07130199 and offices located at 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
Rasmus Lerdorf
2011-09-15 17:29:47 UTC
Permalink
Post by Smith, Mitchell
hi,
the with-my-sql was a typo in the email.
I have corrected the path to mysql.... then saw an error relating to
./configure --with-mysql=/usr/bin/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php
--with-zlib-dir=/usr/local/zlib
Note that --with-mysql=/usr/bin/mysql is obviously wrong. /usr/bin/mysql
is the command-line MySQL client. --with-mysql takes the top-level
directory below which the lib and header files can be found, so in your
case you want --with-mysql=/usr

A typical set of flags for building against libmysqlclient would be:

--with-mysql=/usr
--with-pdo-mysql=/usr
--with-mysqli=/usr/bin/mysql_config

Or as Ferenc suggested, use mysqlnd

eg.

--with-mysql=mysqlnd
--with-pdo-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-mysql-sock=/var/run/mysqld/mysqld.sock

-Rasmus

Loading...