在安裝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
如今一直沒有解決,有知道的朋友請指教!