centOS下安装hue

一、下载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执行第二步编译吧。问题会解决的(。・`ω´・)



评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值