在安装hue之前你的服务器上要安装如下软件:
python
CentOS JDK Maven Git Hadoop Hive Python
一、下载hue
https://github.com/cloudera/hue
二、编译hue
进入到hue的根目录,执行make apps
三、执行后若是报下面的错,说明你的服务器上没有python-dev,按照下面的步骤安装 mysql
must have python development packages for 2.6 or 2.7. Could not find
解决方法 git
echo "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted" | sudo tee -a /etc/apt/sources.list.d/precise-updates.list sudo apt-get update sudo apt-get install python2.7-dev
四、问题解决后,在hue的根目录下面执行make apps
五、在编译的过程当中又遇到下面的错误 github
src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
解决方法sql
sudo apt-get install libxml2-dev libxslt1-dev
又遇到一个问题shell
sh: mysql_config: not found Traceback (most recent call last): File "setup.py", line 15, in <module> metadata, options = get_config() File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_config not found
解决方法
只要缘由是没有安装:libmysqlclient-devubuntu
sudo apt-get install libmysqlclient-dev
又遇到一个问题服务器
fatal error: gmp.h: No such file or directory
解决方法app
sudo apt-get install libgmp3-dev
又来一个python2.7
fatal error: sqlite3.h: No such file or directory
解决方法
sudo apt-get install sqlite3 sudo apt-get install libsqlite3-dev
还有一个
fatal error: sasl.h: No such file or directory
解决方法
sudo apt-get install libsasl2-dev
按照以上的方法能够顺利编译经过 ,可是在执行supervisor后,仍是有问题
ImportError: Could not import settings 'desktop.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named hadoop.fs
如今一直没有解决,有知道的朋友请指教!