Mysql-python installation problems....

G

google account

*sigh*

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 ->
build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/CR.py ->
build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py ->
build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/ER.py ->
build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/FLAG.py ->
build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py ->
build/lib.linux-i686-2.2/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py ->
build/lib.linux-i686-2.2/MySQLdb/constants
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....
 
J

Jarek Zgoda

google account said:
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

It is client library from MySQL 3.23. I had no success in compiling
MySQLdb from sources either.
 
J

Jarek Zgoda

google account said:
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

It is client library from MySQL 3.23. I had no success in compiling
MySQLdb from sources to have MySQL 4 support either.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top