• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: MySQLdb on Sheeva  (Read 1192 times)
rsalin
Newbie
*

Karma: 0
Posts: 15


View Profile
« on: May 13, 2010, 04:24:33 PM »

Hello
I'm trying to install the MySQLdb module but have run into problems.
So far I've installed the following packages:

apt-get install apache2
apt-get install php5-cli
apt-get install php5-mysql
apt-get install phpunit
apt-get install libapache2-mod-php5
apt-get install mysql-server-5.0

I'm now trying to get the MySQL-python-1.2.3c1 package working, and have for that
purpose also installed the setuptools, but is I try to build it I get a error saying:

EnviromentError: /usr/local/mysql/bin/mysql_config not found

I guess this path is specified in the setup_posix.py file, but I can manage to find the correct
path. I don't know where the mysql_config is actually located. Please adviced...

Thank you
- Richard

Logged

rsalin
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #1 on: May 13, 2010, 05:14:45 PM »

I manage to get the mysql_config by installing libmysqlclent15-dev and now it start
building the module, but still, it fails. I get a load of _mysql.c errors which end with

error:command 'gcc' failed with exit status 1

any suggestions? Help is greatly appreciated!
- Richard
Logged

rsalin
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #2 on: May 13, 2010, 05:25:29 PM »

sorry for the spam but just one small update. These are the first lines after running "build" after them there's a lot of errors:

running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-armv5tel-2.6/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'gamma',1) -D__version__=1.2.3c1 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-armv5tel-2.6/_mysql.o -DBIG_JOINS=1 -fPIC -fno-strict-aliasing
In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
Logged

Pages: [1]
Print
Jump to: