[求助] 求个懂编译的大神看下 ubuntu18.04编译emacs27.1报错

./configure --prefix=/usr/local --with-x-toolkit=no --with-jpeg=ifavailable --with-tiff=ifavailable --with-gnutls=ifavailable

make 报错:

  CC       textprop.o
  CC       composite.o
  CC       xml.o
  CC       lcms.o
  CC       inotify.o
  CC       profiler.o
  CC       decompress.o
  CC       thread.o
  CC       systhread.o
  CC       xfont.o
  CC       fontset.o
  CC       fringe.o
  CC       image.o
  CC       terminfo.o
  CC       lastfile.o
  CCLD     temacs
/bin/mkdir -p ../etc
make -C ../lisp update-subdirs
make[2]: 进入目录“/home/wangkun/downloads/emacs-27.1/lisp”
make[2]: 离开目录“/home/wangkun/downloads/emacs-27.1/lisp”
cp -f temacs bootstrap-emacs
rm -f bootstrap-emacs.pdmp
./temacs --batch  -l loadup --temacs=pbootstrap
./temacs: error while loading shared libraries: libtinfow.so.6: cannot open shared object file: No such file or directory
Makefile:816: recipe for target 'bootstrap-emacs.pdmp' failed
make[1]: *** [bootstrap-emacs.pdmp] Error 127
make[1]: 离开目录“/home/wangkun/downloads/emacs-27.1/src”
Makefile:424: recipe for target 'src' failed
make: *** [src] Error 2

sudo apt install libtinfo5

sudo apt install libjpeg8 libtiff-dev
./configure --prefix=/usr/local --with-x-toolkit=no
make -j6
make[2]: 对“charscript.el”无需做任何事。
make[2]: 离开目录“/home/wangkun/downloads/emacs-27.1/admin/unidata”
rm -f bootstrap-emacs.pdmp
./temacs --batch  -l loadup --temacs=pbootstrap
./temacs: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory
Makefile:816: recipe for target 'bootstrap-emacs.pdmp' failed
make[1]: *** [bootstrap-emacs.pdmp] Error 127
make[1]: 离开目录“/home/wangkun/downloads/emacs-27.1/src”
Makefile:424: recipe for target 'src' failed
make: *** [src] Error 2
sudo apt-get install build-essential automake texinfo libjpeg-dev libncurses5-dev
sudo apt-get install libtiff5-dev libgif-dev libpng-dev libxpm-dev libgtk-3-dev libgnutls28-dev 
cd emacs/
# read INSTALL.REPO
./autogen.sh 
# configure recommended I add --with-mailutils
./configure --with-mailutils --prefix="${HOME}/local"
make
# check it's working
src/emacs --version
> GNU Emacs 27.0.50
# run it
src/emacs &
# install it globally
sudo make install

网上找的别人的安装步骤,照着做编译通过了,不知道是缺了哪个依赖。。

你的问题不是编译过不过。 而是你根本不看出错信息。

教你两招绝活😄

1 个赞

我看了吧,这个出错心里里没看出来缺少什么依赖啊

应该是这里提示缺依赖: 一开始是提示缺这个libtinfow

安装了libtinfow提示缺libjpeg.so

1 个赞