[BioPython] Error for installation of MySALdb on Mac OS X
Y Tu
ytu888 at hotmail.com
Wed Oct 3 12:44:32 UTC 2007
Here is the copy of the output in the Terminal. Please help me to find out what's wrong. Thanks.
Last login: Wed Oct 3 08:28:38 on ttyp4
Welcome to Darwin!
LeesComputer:~ Lee$ echo
$PATH
/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:.:/usr/local/mysql:/bin:/sbin:/usr/bin:/usr/sbin
LeesComputer:~ Lee$ cd
/applications/python_bio/MySQL-python-1.2.2
LeesComputer:/applications/python_bio/MySQL-python-1.2.2
Lee$ python setup.py build
sh: line 1: mysql_config:
command not found
Traceback (most recent call
last):
File "setup.py", line 16, in
<module>
metadata, options = get_config()
File
"/Applications/Python_Bio/MySQL-python-1.2.2/setup_posix.py", line
43, in get_config
libs = mysql_config("libs_r")
File
"/Applications/Python_Bio/MySQL-python-1.2.2/setup_posix.py", line
24, in mysql_config
raise EnvironmentError, "%s not
found" % mysql_config.path
EnvironmentError:
mysql_config not found
LeesComputer:/applications/python_bio/MySQL-python-1.2.2
Lee$ cd /usr/local
LeesComputer:/usr/local Lee$
ls -al
total 8
drwxr-xr-x 8 root
wheel 272 Oct 1 13:02 .
drwxr-xr-x 10 root
wheel 340 Sep 26 11:30 ..
drwxr-xr-x 8 root
admin 272 Aug 6 04:00 ActivePerl-5.8
drwxr-xr-x 15 root
wheel 510 Oct 2 03:52 bin
drwxr-xr-x 6 root
wheel 204 Sep 27 05:22 include
drwxr-xr-x 12 root
wheel 408 Sep 27 05:21 lib
lrwxr-xr-x 1 root
wheel 25 Oct 1 13:02 mysql -> mysql-5.0.45-osx10.4-i686
drwxr-xr-x 19 root
wheel 646 Jul 4 13:54 mysql-5.0.45-osx10.4-i686
> CC: biopython at lists.open-bio.org
> From: lists.steve at arachnedesign.net
> Subject: Re: [BioPython] Error for installation of MySALdb on Mac OS X
> Date: Mon, 1 Oct 2007 16:18:04 -0400
> To: ytu888 at hotmail.com
>
> > I downloaded mysql-5.0.45-osx10.4-i686.dmg from mysql web and
> > installed it. Then I tried to install MySQL-python-1.2.2 but got
> > the following error. How to create the mysql_config.path file?
> > Thank you very much.
> >
> > leesComputer:/applications/Python_Bio/MySQL-python-1.2.2 lee$
> > python setup.py build
> > sh: line 1: mysql_config: command not found
>
> It seems as if you need to have the `mysql_config` command in your
> PATH variable and it's not there.
>
> Look for where mysql was installed (maybe /usr/local/mysql/...) and
> add its bin directory to your PATH environment variable. Or maybe it
> installed some binaries/symlinks into your /usr/local/bin directory?
>
> I think that'll do it for you.
>
> -steve
>
_________________________________________________________________
Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
More information about the Biopython
mailing list