Technology related solutions, tips, tricks, and other interesting topics
In: General IT Info
17 Mar 2008Library files in CentOS 64 bit are stored in the directory /usr/lib64. But in normal 32 bit CentOS, library files are stored in /usr/lib so this causes a problem when trying to compile source code that looks for library files in /usr/lib. When using the default configure options for compiling PHP, the directory /usr/lib is searched for library files so if you have any 64 bit applications installed, their associated library files will not be found. For example, trying to compile PHP with the configure option:
--with-mysql=/usr
will result in the error:
/usr/bin/ld: cannot find -lmysqlclient
You can fix this MySQL error and other configure errors relating to library files not being found by adding the following option to the configure line:
--with-libdir=lib64

This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.