anebg 2 geek life, brainstorm, computing!

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-root

rm -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.

Filed under: Linux, Server 1 Comment
24Jun/080

Mac OSX wont connect to my domain?

Then it's probably because your domain isn't fully qualified.apple logo
Try adding "local" to Search domains (System Prefs>Network>Ethernet)

23Jun/082

How to set up a web domain (godaddy) to your xserve (mac os server)

If you want to start your own hosting service using osx server, or you just want to point your domain to your local mac machine.. here's how to do it.