Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge php = error [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
aenima-aenema
n00b
n00b


Joined: 01 May 2006
Posts: 10
Location: Málaga

PostPosted: Sat Jul 01, 2006 9:19 pm    Post subject: emerge php = error [SOLVED] Reply with quote

version: php-5.1.4
use: -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 +calendar -cdb -cgi -cjk +cli +crypt -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp -hardenedphp -hash -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc +ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming +msql +mssql +mysql -mysqli +ncurses +nls -oci8 -oci8-instant-client -odbc -pcntl +pcre -pdo -pdo-external -pic -posix -postgres -qdbm +readline -recode +reflection -sapdb -sasl +session -sharedext -sharedmem -simplexml -snmp -soap +sockets -solid +spell +spl -sqlite +ssl -sybase -sybase-ct -sysvipc +threads -tidy -tokenizer +truetype -unicode -vm-goto -vm-switch -wddx +xml +xmlreader -xmlrpc +xmlwriter -xpm -xsl -yaz +zip +zlib

Error:
Code:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... /var/run/mysqld/mysqld.sock
checking for MySQL UNIX socket location... /var/run/mysqld/mysqld.sock
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

!!! ERROR: dev-lang/php-5.1.4 failed.
!!! Function php5_1-sapi_src_compile, Line 573, Exitcode 1
!!! configure failed
!!! If you need support, post the topmost build error, NOT this status message.


What's the problem?

Regards :).
_________________
Have you mooed today?


Last edited by aenima-aenema on Mon Jul 03, 2006 11:45 am; edited 1 time in total
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Sun Jul 02, 2006 9:25 am    Post subject: Reply with quote

Do you have MySQL installed? If so, please post the complete contents of config.log.
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
phorn
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2006
Posts: 109

PostPosted: Sun Jul 02, 2006 9:33 am    Post subject: Reply with quote

Look in your config.log. It will still be in your /var/tmp/portage/php-5.1.4/work/php-5.1.4/

Look for a C++ file with a bunch of "|" before it, starting at the end of the file, and going up (You can also search around where it says "checking for mysql_error". Above the C++ source file, you will see a comment "configure: failed program was:

If you look at the 30 or so lines above that, they may give you a clue about the problem, for example:
Quote:
configure:1925: result: yes
configure:1967: g++ -c conftest.cc >&5
configure:1973: $? = 0
configure:1976: test -z || test ! -s conftest.err
configure:1979: $? = 0
configure:1982: test -s conftest.o
configure:1985: $? = 0
configure:2011: g++ -c conftest.cc >&5
/usr/bin/ld: cannot find -lmysql
collect2: ld returned 1 exit status
configure:2017: $? = 1
configure: failed program was:
| #include <stdio.h>
| more C code -- probably doesn't matter.


If you are not sure, post the whole region around the "mysql_error in -lmysqlclient" error.

Most likely, you are missing a libmysqlclient.so. You may need to re-emerge the mysql. But that is possibly actually your problem. Configure can't always tell the exact error involved. It may be a different library that is missing, or it may be a missing header.
Back to top
View user's profile Send private message
aenima-aenema
n00b
n00b


Joined: 01 May 2006
Posts: 10
Location: Málaga

PostPosted: Mon Jul 03, 2006 11:45 am    Post subject: Reply with quote

The USE: +msql was the problem...

Regards :).
_________________
Have you mooed today?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum