MySQL 是构建 HUE 的先决条件吗?
我正在尝试构建色调,但到目前为止还没有取得太大成功。我是 收到以下错误消息:
--- 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 是预- 要求。但是,我没有看到任何这方面的文档。 任何信息将不胜感激。 谢谢
I'm trying to build hue and not having much success so far. I'm
getting the following error message :
--- 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
I'm interpreting this to mean that MySQL or MySQL python is a pre-
req. However, I don't see any documentation to that effect.
Any information would be appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Hue 在 README 上有构建它所需的软件包列表,
您将需要 MySql 开发软件包,例如 Ubuntu 的“libmysqlclient-dev”。
Hue has the list of required packages for building it on the README
You will need the MySql dev packages, e.g. 'libmysqlclient-dev' with Ubuntu.
Hue 默认使用 SQLite,但可以配置为使用 MySql
请参阅安装文档
Hue uses SQLite by default but can be configured to use MySql
see the installation doc
你需要 mysql_config 在你的 linux 发行版上执行以下操作,在 centos 上执行以下操作:
yum install mariadb-devel
for 7.x,对于其他版本,请使用 apt 和适当的软件包。
一旦完成,你应该没问题,它将继续构建。
you need mysql_config do the following on your linux distribution, on centos the following will do:
yum install mariadb-devel
for 7.x, for others use apt with proper package.
once this is done you should be ok and it will continue building.