您的位置:首页 > 运维架构 > Linux

centOS下安装hue

2016-07-21 16:16 381 查看
一、下载hue
https://github.com/cloudera/hue
二、编译

进入目录下make apps进行编译 

出现如下错误:



在包含自 _mysql.c:36 的文件中:/usr/include/mysql/my_config.h:1062:1: 警告:“HAVE_WCSCOLL”重定义在包含自 /usr/local/include/python2.7/Python.h:8 的文件中,从 pymemcompat.h:10,从 _mysql.c:29:/usr/local/include/python2.7/pyconfig.h:887:1:
警告:这是先前定义的位置gcc -pthread -shared build/temp.linux-x86_64-2.7/_mysql.o -L/usr/lib64/mysql -L/usr/lib64 -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -o build/lib.linux-x86_64-2.7/_mysql.so/usr/bin/ld: cannot find -lmysqlclient_rcollect2:
ld 返回 1
error: command 'gcc' failed with exit status 1

完美解决:

yum install mysql-devel


三、可能出现的附加错误


yum install mysql-devel安装时会报如下错误:

 file /usr/share/mysql/charsets/README from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686    file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-community-5.1.58-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.i686  ......

包括mysql-libs、 devel、 client的错误不一一列举



 mysql各种模块之间的冲突。先全部卸载,再安装hue需要的全部组件。(前面忘了说Hadoop,下面一起安装)

yum remove mysql-server
yum remove mysql-devel //等等,报错什么你就卸载什么比如还有client和lib  这里不一一列举


全部卸载干净后,安装这些依赖软件:

sudo yum install krb5-devel cyrus-sasl-gssapi cyrus-sasl-deve libxml2-devel libxslt-devel mysql
mysql-devel openldap-devel python-devel python-simplejson sqlite-devel


安装成功后,OK执行第二步编译吧。问题会解决的(。・`ω´・)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  centos hue Hadoop