在CentOS6下安装hue-3.12.0

前端之家收集整理的这篇文章主要介绍了在CentOS6下安装hue-3.12.0前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

hue是大数据分析相关的一个开源管理网站,本篇文章记录本人安装的过程,以便以后查看,同时分享给需要的朋友。Github地址:https://github.com/cloudera/hue

yum安装必须的包

# yum install cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain gcc gcc-c++ krb5-devel libffi-devel libxml2-devel libxslt-devel make mvn (from apache-maven package or maven3 tarball) MysqL MysqL-devel openldap-devel python-devel sqlite-devel openssl-devel gmp-devel

下载openssl-1.0.2.tar.gz
# tar -xzvf openssl-1.0.2.tar.gz
# cd openssl-1.0.2
# ./config --prefix=/usr/local/openssl && make && make install

源码安装python2.7

下载Python-2.7.10.tgz
# tar -xzvf Python-2.7.10.tgz
# cd Python-2.7.10
# vi Modules/Setup.dist
如下修改

# Socket module helper for socket(2)
_socket socketmodule.c timemodule.c
# Socket module helper for SSL support; you must comment out the other
# socket line above,and possibly edit the SSL variable:
SSL=/usr/local/openssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto

# ./configure --prefix=/usr/local/ --enable-shared && make && make install

安装完python2.7之后,安装pip
使用pip安装virtualenv,openssl,django1.6等包

编译运行hue

下载hue安装包hue-release-3.12.0.tar.gz
# tar -xzvf hue-release-3.12.0.tar.gz
# cd hue-release-3.12.0
# make apps
# build/env/bin/hue runserver
运行起来了!!!

猜你在找的CentOS相关文章