我正在努力建立色调,到目前为止还没有取得多大成功。我 收到以下错误消息:
--- Building egg for MySQL-python-1.2.3c1
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in
run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105,
in run
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in
<lambda>
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "/Users/kramachandran/Sandbox/hue/hue/desktop/core/ext-py/MySQL-
python-1.2.3c1/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/Users/kramachandran/Sandbox/hue/hue/desktop/core/ext-py/MySQL-
python-1.2.3c1/setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
make[2]: *** [/Users/kramachandran/Sandbox/hue/hue/desktop/core/build/
MySQL-python-1.2.3c1/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2
我正在解释这意味着MySQL或MySQL python是一个预先 REQ。但是,我没有看到任何相关的文档。 任何信息,将不胜感激。 感谢
答案 0 :(得分:4)
Hue拥有在README
上构建它所需的软件包列表您将需要MySql开发包,例如'libmysqlclient-dev'和Ubuntu。
答案 1 :(得分:0)
Hue默认使用SQLite,但可以配置为使用MySql 见the installation doc
答案 2 :(得分:0)
你需要mysql_config在linux发行版上执行以下操作,在以下几个方面会做: yum install mariadb-devel
表示7.x,其他人使用apt和正确的包。 一旦完成,你应该没问题,它将继续建设。