Probleme mit easy_install

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
bankkind
User
Beiträge: 106
Registriert: Freitag 14. September 2007, 23:02
Wohnort: Teltow
Kontaktdaten:

Hallo zusammen,

ich habe das Gefuehl mein easy_install arbeitet nicht korrekt. Ich kann irgendwie kein Paket installieren:

Code: Alles auswählen

Searching for mysql-python
Reading http://pypi.python.org/simple/mysql-python/
Reading http://sourceforge.net/projects/mysql-python/
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3
Downloading http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz
Processing MySQL-python-1.2.3.tar.gz
Running MySQL-python-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ybStfC/MySQL-python-1.2.3/egg-dist-tmp-Ffw3ea
sh: mysql_config: command not found
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 1712, in main
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 211, in run
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 476, in install_item
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 655, in install_eggs
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 930, in build_and_install
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py", line 919, in run_setup
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py", line 62, in run_setup
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py", line 105, in run
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py", line 64, in <lambda>
  File "setup.py", line 15, in <module>
  File "/tmp/easy_install-ybStfC/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
  File "/tmp/easy_install-ybStfC/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
EnvironmentError: mysql_config not found
Ich habe es wie folgt installiert. Habe vorher die ez_setup.py via wget heruntergeladen.

Code: Alles auswählen

python ez_setup.py
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
Processing setuptools-0.6c11-py2.5.egg
Copying setuptools-0.6c11-py2.5.egg to /usr/lib/python2.5/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.5 script to /usr/bin

Installed /usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
Ich habe alles als root auf einer Linux kiste ausgefuehrt.

Habe jetz versucht verschiedene Pakete herunterzuladen... nichts hat bisher funktioniert..
BlackJack

@bankkind: Es fehlt laut Fehlermeldung offensichtlich ein Programm mit dem Namen `mysql_config`. Das gehört bei MySQL zum Entwicklerpaket für den MySQL-Client. Zumindest bei Ubuntu.
Antworten