Emacs 26.1のインストール(成功編)

tamuraです。

必要なライブラリを入れてやり直してみました。

$ sudo apt install texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk-3-dev
$ ./configure --prefix=$HOME/prog/devtool
...
...
checking whether GTK compiles... yes
configure: WARNING: Your version of Gtk+ will have problems with
       closing open displays.  This is no problem if you just use
       one display, but if you use more than one and close one of them
       Emacs may crash.
       See https://bugzilla.gnome.org/show_bug.cgi?id=85715
...
...
configure: error: The following required libraries were not found:
     gnutls
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-gnutls=no
as options to configure

なんかいろいろ出てる。

configure: WARNING: Your version of Gtk+ will have problems with
       closing open displays.  This is no problem if you just use
       one display, but if you use more than one and close one of them
       Emacs may crash.
       See https://bugzilla.gnome.org/show_bug.cgi?id=85715

この警告はGtk+3を入れたからみたい。2と3があったので3でいいだろう・・と思ったらこれだった。 大きな問題にはならなそうだったのでとりあえず無視してみる。

configure: error: The following required libraries were not found:
     gnutls
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-gnutls=no
as options to configure

これはSSLライブラリのgnutlsがないよ。と。 使わないんだったらオプションをつけろ。と。

package管理にHTTPSを使うんじゃないの?と思ったので追加で入れておく。

$ sudo apt install libgnutls28-dev
$ ./configure --prefix=$HOME/prog/devtool
...
...

Configured for 'x86_64-pc-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -g3 -O2
  Should Emacs use the GNU version of malloc?             no (only before dumping)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK3
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use a png library?                           yes -lpng16
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use cairo?                                   no
  Does Emacs use -llcms2?                                 no
  Does Emacs use imagemagick (version 6)?                 no
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  yes
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               yes
  Does Emacs use a file notification library?             yes -lglibc (inotify)
  Does Emacs use access control lists?                    no
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  no
  Does Emacs use -lfreetype?                              yes
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   yes
  Does Emacs use -lsystemd?                               no
  Does Emacs directly use zlib?                           yes
  Does Emacs have dynamic modules support?                no
  Does Emacs use toolkit scroll bars?                     yes
  Does Emacs support Xwidgets (requires gtk3)?            no
  Does Emacs have threading support in lisp?              yes

noになっているところだけ見ていく。

  • Should Emacs use the GNU version of malloc? no (only before dumping)
    • まあ大丈夫そう
  • Should Emacs use a relocating allocator for buffers? no
    • これも大丈夫
  • Should Emacs use mmap(2) for buffer allocation? no
    • これも大丈夫
  • Does Emacs use -lXaw3d? no
    • Xaw使わないだろ・・・
  • Does Emacs use -lrsvg-2? no
    • SVGはEmacsで直接編集しない(inkscapeとか使う)のでOK
  • Does Emacs use cairo? no
    • 新しい描画ライブラリとのこと。今の所不要。
  • Does Emacs use -llcms2? no
    • Color Management Systemらしい。不明なのでこのまま
  • Does Emacs use imagemagick (version 6)? no
    • 今まで使っていなかったので今の所不要。必要になったら考える
  • Does Emacs use -lgpm? no
    • コンソール環境でマウス使うやつ?不要
  • Does Emacs use -lgconf? no
    • よくわからん
  • Does Emacs use access control lists? no
    • よくわからん
  • Does Emacs use -lselinux? no
    • SELinux?Emacsに?なぜ?
  • Does Emacs use -lxml2? no
    • XMLのパースができない。そのうち有効化するかも
  • Does Emacs use -lm17n-flt? no
    • よくわからないけどフォント関係?問題が出たら作り直す
  • Does Emacs use -lotf? no
    • こちらもよくわからないけどフォント関係?問題が出たら作り直す
  • Does Emacs use -lsystemd? no
    • Emacsでsystemd?不明なのでこのまま
  • Does Emacs have dynamic modules support? no
    • いいと思うのでこのまま
  • Does Emacs support Xwidgets (requires gtk3)? no
    • これもこのままで

そして make && make install すると・・・

ktkr

関連記事

comments powered by Disqus