天天看點

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執行第二步編譯吧。問題會解決的(。・`ω´・)

繼續閱讀