依存問題およびソリューションへのemacsのインストール

3079 ワード

ubuntuソフトウェアセンターemacsのバージョンは23で、自分はネット上で最新版24.3をダウンロードして、コンパイルインストールを通じてその時に多くの依存問題に出会って、以下はこれらの問題を整理しました:
1.実行./configureコマンドで次のエラーが発生しました.
configure: error: You seem to be running X, but no X development libraries were found.  You should install the relevant development files for X and for the toolkit you want, such as Gtk+, Lesstif or Motif.  Also make sure you have development files for image handling, i.e. tiff, gif, jpeg, png and xpm. If you are sure you want Emacs compiled without X window support, pass   --without-x to configure. ヒントによると、X windowsシステムの開発ライブラリが欠けています.グラフィックインタフェースでEmacsを使用したくない場合は、--without-xオプションを使用してコンパイルできます(くだらない話)、GTK+をインストールしてからconfigureを通過することができます.
sudo apt-get install libgtk2.0-dev

2.configureでコンパイルオプションを追加し、./configure--with-x-toolkit=gtk 3、今回の構成では上記のエラーは提示されていませんが、次のエラーが発生しました.
The following required libraries were not found:     libXpm libjpeg libgif/libungif libtiff Maybe some development libraries/packages are missing? If you don't want to link with them give--with-xpm=no--with-jpeg=no--with-gif=no--with-tiff=no as options to configureヒントlibXpm libjpeg libgif/libungif libtiff
いくつかの画像開発ライブラリもインストールします
sudo apt-get install libxpm-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff4-dev

3.apt-get installを使用して、上記の欠落したパッケージとその開発パッケージをインストールした後、./configure、エラーもあります.
configure: error: The required function `tputs' was not found in any library. These libraries were tried: libncurses, libterminfo, libtermcap, libcurses. Please try installing whichever of these libraries is most appropriate for your system, together with its header files. For example, a libncurses-dev(el) or similar package. ヒント必須の関数'tputs'が欠けています.libncurses-devで、このパッケージをインストールしてみて、configureをインストールします.
4.前にコンパイルしたので、make clean&&make distcleanを実行してクリーンアップ
5.再通過configure、端末には次のようなヒントがあります.
configure: creating ./config.status config.status: creating Makefile config.status: creating lib/Makefile config.status: creating lib-src/Makefile config.status: creating oldXMenu/Makefile config.status: creating doc/emacs/Makefile config.status: creating doc/misc/Makefile config.status: creating doc/lispintro/Makefile config.status: creating doc/lispref/Makefile config.status: creating src/Makefile config.status: creating lwlib/Makefile config.status: creating lisp/Makefile config.status: creating leim/Makefile config.status: creating src/config.h config.status: executing depfiles commands config.status: executing mkdirs commands config.status: executing epaths commands creating src/epaths.h [ -r "/home/wkd/src/emacs-24.2/src/config.in"] || ( cd/home/wkd/src/emacs-24.2 && autoheader ) config.status: executing gdbinit commands 6.sudo make、sudo make installのインストールはコンパイルプロセス全体に成功し、主にconfigureの出力をよく見て、どのライブラリが不足しているかを見て、不足しているライブラリをインストールすれば、configureが成功することができます.これが鍵です.