PDA

View Full Version : Installing MySQdb for Python


Sideshow
2-6-06, 09:43 AM
I've used extratools.php to install Python 2.4 full, which works fine. Now i want to install the mySQLdb library for it. In extratools I've installed the mysql-python.cgi script, which, when run, should install the library. However, when I do run it, I get:

running build_ext
building '_mysql' extension
creating build/temp.freebsd-4.11-RELEASE-i386-2.4
cc -fno-strict-aliasing -DNDEBUG -O -pipe -D_THREAD_SAFE -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/mysql -I/www/x/y/zzz.com/py24/include/python2.4 -c _mysql.c -o build/temp.freebsd-4.11-RELEASE-i386-2.4/_mysql.o -I/usr/local/include/mysql -O -pipe -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -fno-omit-frame-pointer
unable to execute cc: Permission denied
error: command 'cc' failed with exit status 1

mitchind
2-6-06, 10:51 AM
Powweb has turned off the compiler permissions - you'll need to compile it yourself - or maybe, if you're lucky, extras will compile a FreeBSD version for you

extras
2-6-06, 12:02 PM
I updated the script so that it downloads and uses pre-compiled library instead of building on the fly.
Please update the script, and try again.

mitchind
2-6-06, 12:29 PM
Now - THAT'S service!

extras
2-6-06, 12:52 PM
But I didn't fully test that method, thinking fellow users can do that part and report problems if any. ;)

Sideshow
2-6-06, 12:59 PM
That *is* servive. It works, thanks loads. You win.