note 62495 added to faq.databases
| From: | jstoner at NOSPAM dot opsource dot net | Date: | Wed, 01 Mar 2006 21:56:13 +0000 |
| Subject: | note 62495 added to faq.databases | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104658@lists.php.net to get a copy of this message | ||
Building in a Redhat 4 64-bit environment:
This assumes you're using Redhat's RPMs (mysql, mysql-devel).
MySQL libraries get installed in /usr/lib64 but PHP only searches /usr/lib. This means your config
will fail. You need to create a fake install of MySQL in another directory to get PHP to build
correctly.
Create another directory, say /usr/local/mysql. Then cd into that directory and create 2 symbolic
links pointing to the appropriate include directory and lib directory:
# mkdir /usr/local/mysql
# cd /usr/local/mysql
# ln -s /usr/include/mysql include
# ln -s /usr/lib64/mysql lib
Now, you should be able to configure PHP with "--with-mysql=/usr/local/mysql" and build
properly.
----
Server IP: 216.194.113.175
Probable Submitter: 68.49.246.40
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/faq.databases.php
Edit -- http://master.php.net/note/edit/62495
Del: integrated -- http://master.php.net/note/delete/62495/integrated
Del: useless -- http://master.php.net/note/delete/62495/useless
Del: bad code -- http://master.php.net/note/delete/62495/bad+code
Del: spam -- http://master.php.net/note/delete/62495/spam
Del: non-english -- http://master.php.net/note/delete/62495/non-english
Del: in docs -- http://master.php.net/note/delete/62495/in+docs
Del: other reasons-- http://master.php.net/note/delete/62495
Reject -- http://master.php.net/note/reject/62495
Search -- http://master.php.net/manage/user-notes.php