By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,931 Members | 1,976 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,931 IT Pros & Developers. It's quick & easy.

How to connect python and Mysql?

P: n/a

Dear All,

I am using python2.4 and Mysql 4.0.20. Now I am
want to connect python and mysql. I have problem to
install Mysql-python-1.2.0 interface into my machine.
When I try to install this interface the following
error restrict to install fully.

/System/Links/Executables/ld: cannot find
-lmysqlclient_r
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

So If anybody knows regarding this kindly mail me
regards
PRabahar


__________________________________________________ ________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
praba kar wrote:
Dear All,

I am using python2.4 and Mysql 4.0.20. Now I am
want to connect python and mysql. I have problem to
install Mysql-python-1.2.0 interface into my machine.
When I try to install this interface the following
error restrict to install fully.

/System/Links/Executables/ld: cannot find
-lmysqlclient_r
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
This is not a Python problem, but what...

Your linker doesn't find the librairy libmysqlclient_r.so. Check if this
lib is installed on your system, and if yes if it's located somewhere
where your linker can find it.
So If anybody knows regarding this kindly mail me

post on usenet, get the answer on usenet !-)

HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.