编译emacs时出现的错误信息,求帮助

lavenus 2012-07-13 08:35:03
在CentOS6.2里,顺利通过./configure,libtiff库都已经安装了,但到make出现下面的错误信息
//下面是编译时make出现的错误

make[2]: Entering directory `/home/jason/emacs-24.1/lisp'
cd /home/jason/emacs-24.1/lisp; subdirs=`(find . -type d -print)`; for file in $subdirs; do case $file in */.* | */.*/* | */=* | */cedet* ) ;; *) wins="$wins $file" ;; esac; done; \
for file in $wins; do \
/home/jason/emacs-24.1/update-subdirs $file; \
done;
make[2]: Leaving directory `/home/jason/emacs-24.1/lisp'
if test "no" = "yes"; then \
ln -f temacs bootstrap-emacs; \
else \
`/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \
mv -f emacs bootstrap-emacs; \
fi
/home/jason/emacs-24.1/src/temacs: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory
make[1]: *** [bootstrap-emacs] 错误 1
make[1]: Leaving directory `/home/jason/emacs-24.1/src'
make: *** [src] 错误 2
[root@Jason emacs-24.1]#
...全文
240 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
lavenus 2012-07-16
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]
请检查你装的libtiff是否在系统的标准位置
还有你生成Makefile的时候,没有选择支持libtiff
./config --help|grep libtiff
看有什么选项,请加上
[/Quote]


谢谢你的提醒,emacs安装成功了。原来libtiff 的./configure 默认的安装位置在/usr/local/lib 下,emacs指定libtiffr的路径又不会寻找,要在libtiff的配置指定路径,libtiff指定的路径下会自动寻找lib目录。libtiff配置指定路径要写成./configure --prefix=/usr ,这样才会安装在/usr/lib下,之前我就是用./configure --prefix=/usr/lib,所以写错了路径。
lavenus 2012-07-14
  • 打赏
  • 举报
回复
请问有哪些出了问题呢
lavenus 2012-07-14
  • 打赏
  • 举报
回复
[root@Jason libtiff]# ./configure //安装在/usr/local/lib

[root@Jason emacs-24.1]# ./configure --prefix=/usr/local/emacs --with-libtiff=/usr/local/lib


sed in arbitrary expressions... yes
checking whether symlink handles trailing slash correctly... yes
checking for nlink_t... yes
checking whether localtime_r is compatible with its POSIX signature... yes

Configured for `i686-pc-linux-gnu'.

Where should the build process find the source code? /home/jason/DownLoad/emacs-24.1
What operating system and machine description files should Emacs use?
`s/gnu-linux.h'
What compiler should emacs be built with? gcc -std=gnu99 -g -O2
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
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? GTK
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 -lpng? yes
Does Emacs use -lrsvg-2? yes
Does Emacs use imagemagick? no
Does Emacs use -lgpm? no
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? yes
Does Emacs use GSettings? no
Does Emacs use -lselinux? yes
Does Emacs use -lgnutls? yes
Does Emacs use -lxml2? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? no
Does Emacs use -lotf? no
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? yes


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/jason/DownLoad/emacs-24.1/src/config.in" ] || ( cd /home/jason/DownLoad/emacs-24.1 && autoheader )
config.status: executing gdbinit commands
[root@Jason emacs-24.1]#







make[2]: Entering directory `/home/jason/emacs-24.1/lisp'
cd /home/jason/emacs-24.1/lisp; subdirs=`(find . -type d -print)`; for file in $subdirs; do case $file in */.* | */.*/* | */=* | */cedet* ) ;; *) wins="$wins $file" ;; esac; done; \
for file in $wins; do \
/home/jason/emacs-24.1/update-subdirs $file; \
done;
make[2]: Leaving directory `/home/jason/emacs-24.1/lisp'
if test "no" = "yes"; then \
ln -f temacs bootstrap-emacs; \
else \
`/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \
mv -f emacs bootstrap-emacs; \
fi
/home/jason/emacs-24.1/src/temacs: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory
make[1]: *** [bootstrap-emacs] 错误 1
make[1]: Leaving directory `/home/jason/emacs-24.1/src'
make: *** [src] 错误 2
[root@Jason emacs-24.1]#
ww2000e 2012-07-13
  • 打赏
  • 举报
回复
装libtiff,具体包名自己搜
sdqd2012 2012-07-13
  • 打赏
  • 举报
回复
请检查你装的libtiff是否在系统的标准位置
还有你生成Makefile的时候,没有选择支持libtiff
./config --help|grep libtiff
看有什么选项,请加上
lavenus 2012-07-13
  • 打赏
  • 举报
回复
我已经安装了是libtiff 4.0版的

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧