Thanks to everybody again.
After much pain, I was able to install apache, mysql, and php. php
works with apache but there is a problem. Doesn't matter how I attempt
to add the mysql functionality to php, it never gets added. So, what
would the reasons be for the USE="mysql" flag not be working? When I
call my phpinfo.php, I can see that php was one of the options selected:
'--with-mysql=shared,/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock'
yet, there is no "mysql" section below.
Any ideas?
Thanks again,
RV
Ben Munat wrote:
Hmm, you might try emerging one of these at a time: apache, then
mysql, then php. Note that you can turn off all use flags in a
package.use entry by doing "-*" and then turning on individual flags
after that; something like "=dev-lang/php-4* -* apache2 bcmath
berkdb...".
I'd also carefully consider what you are *really* going to need from
these apps and only enable that. When I first got into gentoo, I kept
saying stuff like "ooh, yeah, I'll probably want to generate flash
with php someday, so I'll enable ming". I'm still undoing all the
stuff I did by taking that approach. I think it's better to enable a
use flag and recompile when you need it.
Otherwise, sorry but I don't know the answer to this particular
failure... you might check bugzilla (http://bugs.gentoo.org... hmm,
although that's weird.... I just tried a bunch of different searches
and couldn't get ANY results!! I think gentoo's bugzilla be broken!)
b
PS: I'd definitely get yourself an emerge log analyzer so you can see
important information in the emerge output. I use portlog-info:
http://gentooexperimental.org/archive/portlog-info/portlog-info
You set your PORT_LOGDIR in make.conf and then run this script and it
spits out the highlights of the emerge log...
Ronald Vazquez wrote:
Thanks everybody for all the suggestions. OK, I tried:
# emerge 'dev-lang/php-4*' mysql apache
whith the following in my /etc/portage/package.use
=dev-lang/php-4* -adabas -apache apache2 bcmath berkdb birdstep bzip2
calendar cdb cgi cjk -cli crypt ctype curl -db2 dba -dbase -dbmaker
-dbx debug discard-path doc empress empress-bcs esoob exif expat
-fastbuild -fdftk filepro firebird flatfile force-cgi-redirect
-frontbase ftp gd -gd-external gdbm gmp hardenedphp -hyperwave-api
iconv imap -informix inifile -interbase odbc ipv6 -java-external
-java-internal kerberos ldap -libedit mcal mcve memlimit mhash ming
-mnogosearch -msql -mssql mysql ncurses nls -oci8
-oci8-instant-client odbc -oracle7 overload -ovrimos pecl pcntl pcre
-pfpro pic posix -postgres readline -recode -sapdb session sharedext
sharedmem snmp sockets solid spell -sqlite ssl -sybase -sybase-ct
sysvipc -threads tiff tokenizer truetype wddx xml xmlrpc xpm xsl yaz
zip zlib
=dev-db/mysql-4* berkdb big-tables cluster debug doc extraengine
geometry perl readline ssl tcpd utf8
=net-www/apache-2.0.5* apache2 debug doc ldap mpm-prefork no-suexec
ssl threads
The compile bombs here:
----------------------------------------------------------------------
/bin/sh /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/libtool
--preserve-dup-deps --mode=compile gcc -I/usr/local/solid/include
-Iext/odbc/ -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/
-DPHP_ATOM_INC -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/main
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1 -I/usr/include/libxml2
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap
-I/usr/interbase/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/mbregex
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl/mbfl
-I/usr/include/mcal -I/usr/include/mysql -I/usr/include/pspell
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/xml/expat
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/TSRM
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/Zend -O2
-march=pentium4 -g -Wall -prefer-pic -c
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c -o
ext/odbc/php_odbc.lo
mkdir ext/odbc/.libs
gcc -I/usr/local/solid/include -Iext/odbc/
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/
-DPHP_ATOM_INC -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/main
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1 -I/usr/include/libxml2
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap
-I/usr/interbase/include
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/mbregex
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl/mbfl
-I/usr/include/mcal -I/usr/include/mysql -I/usr/include/pspell
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/xml/expat
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/TSRM
-I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/Zend -O2
-march=pentium4 -g -Wall -c
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c
-fPIC -DPIC -o ext/odbc/.libs/php_odbc.o
In file included from
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:37:
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc_includes.h:185:21:
WINDOWS.H: No such file or directory
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c: In
function `zif_odbc_execute':
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:977:
warning: dereferencing type-punned pointer will break strict-aliasing
rules
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c: In
function `odbc_do_connect':
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
error: `ODBC_TYPE' undeclared (first use in this function)
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
error: (Each undeclared identifier is reported only once
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2212:
error: for each function it appears in.)
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2226:
warning: dereferencing type-punned pointer will break strict-aliasing
rules
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/odbc/php_odbc.c:2296:
warning: dereferencing type-punned pointer will break strict-aliasing
rules
make: *** [ext/odbc/php_odbc.lo] Error 1
!!! ERROR: dev-lang/php-4.4.1-r3 failed.
!!! Function php4_4-sapi_src_compile, Line 517, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this
status message.
Any thoughts anyone?
Thanks again,
RV
On 09/02/06, LYL <[EMAIL PROTECTED]> wrote:
dev-lang/php is php v5.0 up, while dev-php/php is php4
That's not correct. Just to make it perfectly clear - *anyone* who is
currently using dev-php/{php,mod_php} in any shape or form should
migrate to dev-lang/php as soon as possible The former ebuilds are
emphatically dead and *completely* unsupported and will eventually
disappear from the portage tree! Indeed, other packages marked stable
will assume the usage of dev-lang/php. Almost anything to do with PEAR
uses a revision of the php-pear eclass which depends on dev-lang/php
for example.
However, as Christopher remarked earlier in the thread, it is
necessary to mask out php-5 if you want to stick with php-4 (for the
simple reason that php-5 is marked stable).
Further reading:
http://tinyurl.com/9qwy7
http://www.gentoo.org/proj/en/php/php-upgrading.xml
http://www.gentoo.org/proj/en/php
I'd also suggest reading
http://svn.gnqs.org/projects/gentoo-php-overlay/wiki/CommonQuestions#DoYouRecommendAnyUSEFlags.
Further questions are best directed towards the #gentoo-php channel
on freenode.
Cheers,
--Kerin
--
gentoo-server@gentoo.org mailing list