歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

CentOS下安裝hue

CentOS下安裝hue


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/READMEfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/Index.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/armscii8.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/ascii.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/cp1250.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/cp1251.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/cp1256.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/cp1257.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686
  • file/usr/share/mysql/charsets/cp850.xmlfrominstallofMySQL-server-community-5.1.58-1.rhel5.i386conflictswithfilefrompackagemysql-libs-5.1.52-1.el6_0.1.i686 ......

    包括MySQL-libs、 devel、 client的錯誤不一一列舉

    mysql各種模塊之間的沖突。先全部卸載,再安裝hue需要的全部組件。(前面忘了說Hadoop,下面一起安裝)

    [html]view plaincopy
    1. yumremovemysql-server
    [html]view plaincopy
    1. yumremovemysql-devel//等等,報錯什麼你就卸載什麼比如還有client和lib這裡不一一列舉

    全部卸載干淨後,安裝這些依賴軟件:

    [html]view plaincopy
    1. sudoyuminstallkrb5-develcyrus-sasl-gssapicyrus-sasl-develibxml2-devellibxslt-develmysql
    [html]view plaincopy
    1. mysql-developenldap-develpython-develpython-simplejsonsqlite-devel

    安裝成功後,OK執行第二步編譯吧。問題會解決的(。・`ω´・)

http://xxxxxx/Linuxjc/1156052.html TechArticle

Copyright © Linux教程網 All Rights Reserved