469,329 Members | 1,326 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,329 developers. It's quick & easy.

Mysql-python installation problems....


I have done all that I know how....

I am using fedora core1, I believe. I have updated the MySQL version
to 4.0.17-0.

I am trying this:

rpm -i MySQL-python2.1-0.9.2-1.i386.rpm
warning: MySQL-python2.1-0.9.2-1.i386.rpm: V3 DSA signature: NOKEY,
key ID 930b8ab6
error: Failed dependencies:
libmysqlclient_r.so.10 is needed by MySQL-python2.1-0.9.2-1

I have created symlinks to this file in /usr/lib and also in
/usr/local/bin, in the hopes that it would make a difference. I
even paid enough attention to detail to notice that the file in
question was itself a symlink and created symlinks directly to the
root file. still the same error.

Unfortunately, I notice my python version is 2.2.3. So I try to
install from the tarball....
I get the following errors:

python setup.py build
running build
running build_py
creating build
creating build/lib.linux-i686-2.2
copying CompatMysqldb.py -> build/lib.linux-i686-2.2
copying _mysql_exceptions.py -> build/lib.linux-i686-2.2
creating build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/__init__.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/sets.py -> build/lib.linux-i686-2.2/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-i686-2.2/MySQLdb
creating build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/__init__.py ->
copying MySQLdb/constants/CR.py ->
copying MySQLdb/constants/FIELD_TYPE.py ->
copying MySQLdb/constants/ER.py ->
copying MySQLdb/constants/FLAG.py ->
copying MySQLdb/constants/REFRESH.py ->
copying MySQLdb/constants/CLIENT.py ->
running build_ext
building '_mysql' extension
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC
-fPIC -I/usr/include/mysql -I/usr/local/include/mysql
-I/usr/local/mysql/include/mysql -I/usr/include/python2.2 -c _mysql.c
-o build/temp.linux-i686-2.2/_mysql.o
_mysql.c:41:19: mysql.h: No such file or directory
_mysql.c:42:26: mysqld_error.h: No such file or directory
_mysql.c:43:20: errmsg.h: No such file or directory
_mysql.c:73: error: syntax error before "MYSQL"
_mysql.c:73: warning: no semicolon at end of struct or union
_mysql.c:76: error: syntax error before '}' token
_mysql.c:76: warning: data definition has no type or storage class....
This is only the beginning, it seems to find hundreds of syntax
errors along the way.
I have no coder skill at all, and only a moderate level of admin
skill. The box itself I have built, it is not yet in production and
I can do *anything* to it.

I am hoping for suggestions....
Jul 19 '05 #1
0 1569

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Miguel Perez | last post: by
reply views Thread by Donald Tyler | last post: by
reply views Thread by Bill Hernandez | last post: by
reply views Thread by John R | last post: by
reply views Thread by Yun Guan | last post: by
reply views Thread by Mike Chirico | last post: by
2 posts views Thread by trihanhcie | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.