2

I am currently setting up a PHP 5.2 server (yes I know, but it is actually needed in this case) but I keep getting an error:

configure: error: Cannot find libmysqlclient under /usr.

The command that I am running is:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-libdir

I have installed libmysqlclient and when I run

locate libmysqlclient

I get results returned, although none of them are the file libmysqlclient (the closest is libmysqlclient.a)

I would greatly appreciate any help that can be provided.

inimrepus
  • 69
  • 3
  • 8
  • as I recall, the mysql stuff is wonky, and you have to point configure at the parent directory. e.g. if the lib's in /foo/bar/baz/libmysql.so, you have to do `--with-mysql=/foo/bar` instead. – Marc B Sep 09 '14 at 15:44
  • I gave this a shot and no such luck. – inimrepus Sep 09 '14 at 15:47

1 Answers1

4

Try using the DIR directive

--with-mysql --with-libdir=/lib/i386-linux-gnu/

From Cannot find libmysqlclient under /usr. while build PHP 5.2 from source on Ubuntu 12.4

Updated from your comment!

Community
  • 1
  • 1
beiller
  • 3,105
  • 1
  • 11
  • 19