Seite 1 von 1

Python MySQL1.2.2 installation auf OSX

Verfasst: Mittwoch 16. Mai 2007, 13:29
von de_master
Hallo @ all,
ich versuche gerade MySQL Python zu installieren.
Zuerst habe ich Python 2.5 installiert. Nun habe ich mir die Datei MySQL-python-1.2.2.tar.gz heruntergeladen und entpackt.

So wie es in der Readme steht habe ich die Datei entpackt, in das Verzeichnis gewechselt und die site.cfg editiert. Nun habe ich python setup.py build eingegeben und erhalte folgende Fehlermeldung (siehe unten).

Hab ich da was falsch gemacht? Habe leider keinen direkten install gefunden. Gibt es sowas?

Vielen Dank.

Gruss Michael
computer:~/MySQL-python-1.2.2$ python setup.py build

---------------------------------------------------------------------------
This script requires setuptools version 0.6c5 to run (even to display
help). I will attempt to download it for you (from
http://cheeseshop.python.org/packages/2.5/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.

(Note: if this machine does not have network access, please obtain the file

http://cheeseshop.python.org/packages/2 ... -py2.5.egg

and place it in this directory before rerunning this script.)
---------------------------------------------------------------------------
Downloading http://cheeseshop.python.org/packages/2 ... -py2.5.egg
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 "/Users/michael/MySQL-python-1.2.2/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/Users/michael/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
computer:~/MySQL-python-1.2.2 $

Verfasst: Mittwoch 16. Mai 2007, 15:57
von BlackJack
Das Programm `mysql_config` wird nicht gefunden. Ich denke mal Dir fehlen die Entwicklerpakete von MySQL. Je nach Distribution heissen die `mysql-dev`, `mysql-devel` oder so ähnlich.

Verfasst: Mittwoch 16. Mai 2007, 18:24
von de_master
BlackJack hat geschrieben:Das Programm `mysql_config` wird nicht gefunden. Ich denke mal Dir fehlen die Entwicklerpakete von MySQL. Je nach Distribution heissen die `mysql-dev`, `mysql-devel` oder so ähnlich.
Ich verwende OSX 10.4.9. Kann ich da auch einzelne Pakete installieren?

Gruss Michael