Emacs才是世界上最強的IDE - CEDET的安裝

來源:互聯網
上載者:User

在準備寫Emacs才是世界上最強大的IDE系列文章時,由於以前用的是cedet1.0pre6版本,速度比較慢,而且精確度也不高,所以就沒有打算寫它,昨天晚上在水木群裡聽一位網友介紹說cedet的cvs版本速度很快,而且精確度不錯,所以晚上就down下cvs的版本試了一把,越試越感覺不錯,就有了寫cedet的想法。從頭開始,先說安裝吧。

cedet的安裝挺簡單,只要仔細看好cedet的說明就可以了,不過我昨天晚上沒仔細看好說明,安裝的時候碰到一個問題,所以我還是準備寫一下安裝過程。(如果你用apt-get, 或者emerge安裝,首先要看下它們的版本,1.0pre6和其之前的版本都不要安裝,文法分析會很慢的。)

首先下載cedet的cvs版本:

?View Code
BASH
12
cvs -d:pserver:anonymous@cedet.cvs.sourceforge.net:/cvsroot/cedet logincvs -z3 -d:pserver:anonymous@cedet.cvs.sourceforge.net:/cvsroot/cedet co -P cedet

然後編譯:

  • linux下:

    ?View Code
    BASH
    12345678910111213
    cd cedettouch `find . -name Makefile` (非cvs版本不需要這個)a) make或b) make EMACS=<your favorite emacs>或c) make MAKEINFO=/usr/local/bin/makeinfo或d) make MAKEINFO=echo如果編譯過程中發生類似找不到loaddef檔案,custom-autoload以及其他奇怪的錯誤,執行:a) make clean-autoloadsb) make clean-all然後再重新編譯。編譯錯誤還有可能是make版本引起的,請使用GNU make,或者使用windows下的安裝方法。
  • windows下(當然linux下這樣也可以):?View Code
    BASH
    123456
    emacs -q --no-site-file -l cedet-build.el -f cedet-build或在emacs中開啟cedet-build.el檔案,然後M-x eval-bufferM-x cedet-build-in-default-emacs編譯過程中如果發生超過emacs堆棧大小的錯誤,退出emacs再重新編譯即可。

說完安裝,再說一下簡單的使用,把下面的代碼貼到你的.emacs裡面:

?View Code
LISP
123456789101112
(add-to-list 'load-path "path-of-cedet/common")(require 'cedet)(require 'semantic-ia) ;; Enable EDE (Project Management) features(global-ede-mode 1) (semantic-load-enable-excessive-code-helpers)(semantic-load-enable-semantic-debugging-helpers) ;; Enable SRecode (Template management) minor-mode.(global-srecode-minor-mode 1)

現在開始享受cedet吧。

關於cedet的進一步使用,我會再寫專門的文章介紹,敬請期待,:)。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.