> Hi, I've been trying to get these 2 compiled together for a while, and > have had no luck. > > WHere my problem lies, I think, is that I'm not sure what directory > should be specified on the --with-mysql part > > ./configure --with-apxs2=/usr/local/apache/bin/apxs > --with-mysql=/usr/include/mysql/ --with-mysqli=/usr/bin/mysql_config > > I have my own compiled Apache (It is Apache 2) , and MySQL 4.1.9 > installed (the packages off mysql.com). The PHP documentation jsut says > point it to the install dir. I'm nto sure what counts as the install dir > for the MySQL packages. > > Any advice would be appreciated.
Both MySQL and MySQL libs can be compiled into PHP. Try --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config H > > Below is a snippet of some of the error I'm getting I'm actually getting > ALOT more, they all seem to be "First defined here" errors. > > Thanks, > Chris > > /usr/lib/mysql/libmysqlclient.a(vio.o)(.text+0x40): first defined here > /usr/lib/mysql/libmysqlclient.a(vio.o)(.text+0xc0): In function > `vio_delete': > : multiple definition of `vio_delete' > /usr/lib/mysql/libmysqlclient.a(vio.o)(.text+0xc0): first defined here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x0): In function > `vio_errno': > : multiple definition of `vio_errno' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x0): first defined here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x20): In function > `vio_read': > : multiple definition of `vio_read' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x20): first defined here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x60): In function > `vio_write': > : multiple definition of `vio_write' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x60): first defined here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x80): In function > `vio_blocking': > : multiple definition of `vio_blocking' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x80): first defined here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0xe0): In function > `vio_is_blocking': > : multiple definition of `vio_is_blocking' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0xe0): first defined here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x100): In function > `vio_fastsend': > : multiple definition of `vio_fastsend' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x100): first defined > here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x160): In function > `vio_keepalive': > : multiple definition of `vio_keepalive' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x160): first defined > here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x1a0): In function > `vio_should_retry': > : multiple definition of `vio_should_retry' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x1a0): first defined > here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x1d0): In function > `vio_close': > : multiple definition of `vio_close' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x1d0): first defined > here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x230): In function > `vio_description': > : multiple definition of `vio_description' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x230): first defined > here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x240): In function > `vio_type': > : multiple definition of `vio_type' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x240): first defined > here > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x250): In function > `vio_fd': > : multiple definition of `vio_fd' > /usr/lib/mysql/libmysqlclient.a(viosocket.o)(.text+0x250): first defined > here > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php