CentOS 6.5中安裝emacs軟體

來源:互聯網
上載者:User

標籤:yum   emacs   

    在安裝emacs軟體前,需要先安裝一些依賴包,然後在下載emacs的軟體包解壓,再安裝即可,具體步驟如下:

    1、需要下載的依賴包如下: 

         
          yum -y groupinstall "Development Tools"          
          yum -y install gtk+-devel gtk2-devel 
          yum -y install libXpm-devel 
          yum -y install libpng-devel 
          yum -y install giflib-devel 
          yum -y install libtiff-devel libjpeg-devel 
          yum -y install ncurses-devel   www.2cto.com  
          yum -y install gpm-devel dbus-devel dbus-glib-devel dbus-python 
          yum -y install GConf2-devel pkgconfig 
          yum -y install libXft-devel

        2、到如下連結下載emacs的安裝包並解壓

          http://ftp.gnu.org/pub/gnu/emacs/

          #解壓檔案
          tar xvf emacs-24.2.tar.gz 
         3、安裝emacs
          cd emacs-24.2           ./configure --prefix=/usr/local --with-x-toolkit=gtk 

          make && make install




在安裝過程中遇到如下錯誤:

xsettings.o: In function `something_changed_gsettingsCB‘:
/root/Downloads/emacs-24.2/src/xsettings.c:216: undefined reference to `g_settings_get_value‘
/root/Downloads/emacs-24.2/src/xsettings.c:231: undefined reference to `g_settings_get_value‘
/root/Downloads/emacs-24.2/src/xsettings.c:245: undefined reference to `g_settings_get_value‘
xsettings.o: In function `init_gsettings‘:
/root/Downloads/emacs-24.2/src/xsettings.c:815: undefined reference to `g_settings_list_schemas‘
/root/Downloads/emacs-24.2/src/xsettings.c:821: undefined reference to `g_settings_new‘
/root/Downloads/emacs-24.2/src/xsettings.c:827: undefined reference to `g_settings_get_value‘
/root/Downloads/emacs-24.2/src/xsettings.c:838: undefined reference to `g_settings_get_value‘
/root/Downloads/emacs-24.2/src/xsettings.c:847: undefined reference to `g_settings_get_value‘
collect2: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/root/Downloads/emacs-24.2/src‘
make: *** [src] Error 2


解決辦法如下:

make distclean

./configure --without-gsettings 

make &&  make install



安裝成功後出現如下提示:

make[1]: Leaving directory `/root/Downloads/emacs-24.2/leim‘
cd lib-src; make maybe-blessmail  \
      MAKE=‘make‘ archlibdir=‘/usr/local/libexec/emacs/24.2/i686-pc-linux-gnu‘
make[1]: Entering directory `/root/Downloads/emacs-24.2/lib-src‘
make[1]: Nothing to be done for `maybe-blessmail‘.
make[1]: Leaving directory `/root/Downloads/emacs-24.2/lib-src‘


在終端中輸入emacs,即可開啟軟體












       





CentOS 6.5中安裝emacs軟體

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.