6Apr/101
Install pdo_mysql on CentOS
I tried installing it by runing pecl install pdo_mysql but I got this error:
configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. ERROR: `/root/tmp/pear/temp/PDO_MYSQL/configure' failed
The problem is that the /tmp and /var/tmp directories are noexec, which prevents pecl build scripts from running.
Here is what can be done to resolve the problem (assuming root account)
mkdir /root/tmp.pear
mkdir /root/tmp.pear-build-rootrm -rf /tmp/pear*
ln -s /root/tmp.pear /tmp/pear
ln -s /root/tmp.pear-build-root /tmp/pear-build-root
pecl install pdo_mysql should now work.
April 12th, 2010 - 04:35
nope, still get same error.