Closed mattsawyer77 closed 13 years ago
The easiest way to install MySQLdb is through your OS's package manager. On Ubuntu you can do sudo apt-get install python-mysqldb
What OS are you trying to install it on?
I'm on OSX 10.6, using Homebrew for package management. But since Homebrew doesn't have a package for MySQLdb (and the SchemaSync Homebrew package didn't work either), I'm attempting to install both manually. Do I need to set some sort of environment variable so that SchemaSync can see MySQLdb?
Thanks for your help. Matt
I was able to resolve the problem by doing sudo brew install mysql-python sudo brew install schemasync
It seems that the brew file for schemasync simply needs to add mysql-python as a dependency.
OK, great. Let me know if there are any other issues.
I'm on OSX 10.7 and I have the same problem, only I'm not using homebrew. This is what I did:
wget http://downloads.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz tar -xvf MySQL-python-1.2.3.tar.gz cd MySQL-python-1.2.3 python setup.py build sudo python setup.py
wget http://www.schemasync.org/downloads/SchemaSync-0.9.2.tar.gz tar xvzf SchemaSync-0.9.2.tar.gz cd SchemaSync-0.9.2 sudo python setup.py install
schemasync --help
The result: Error: Missing Required Dependency MySQLdb.
Any ideas?
Jeff, do you get an error if you run python -c"import MySQLdb"
?
I do get an error:
File "
Like the original poster, I have no experience with Python, so I don't even understand why it is looking for something in ~/.python-eggs
Anway, the error message made it clear what was wrong, and I fixed it with the following:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
I suppose you could also add the following to your .profile
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH but it wouldn't work for all users
Thanks mmatuson!
I know next-to-nothing about Python (and that's probably the real problem here), but I have tried to install MySQLDb 1.2.3 according to the instructions in its README file. I then installed schemasync and got no error messages. But when I try to run schemasync, I see
Error: Missing Required Dependency MySQLdb.
Any clues on how to correct this?