Chinaunix

标题: centos下无法MAKE [打印本页]

作者: tntcheng    时间: 2009-12-15 11:56
标题: centos下无法MAKE
装个软件,结果发现
[cheng@localhost Desktop]$ cd emacs-23.1
[cheng@localhost emacs-23.1]$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether gcc understands -Wno-pointer-sign... yes
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for install-info... no
checking for install-info... no
checking for install-info... /sbin/install-info
checking for gzip... /usr/bin/gzip
checking for makeinfo... /usr/bin/makeinfo
checking for -znocombreloc... yes
configure: checking the machine- and system-dependent files to find out
- which libraries the lib-src programs will want, and
- whether the GNU malloc routines are usable...
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking for _oss_ioctl in -lossaudio... no
checking for pkg-config... /usr/bin/pkg-config
checking for alsa >= 1.0.0... yes
checking ALSA_CFLAGS... -I/usr/include/alsa
checking ALSA_LIBS... -lasound
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking linux/version.h usability... yes
checking linux/version.h presence... yes
checking for linux/version.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for strings.h... (cached) yes
checking coff.h usability... no
checking coff.h presence... no
checking for coff.h... no
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/vlimit.h usability... yes
checking sys/vlimit.h presence... yes
checking for sys/vlimit.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/_mbstate_t.h usability... no
checking sys/_mbstate_t.h presence... no
checking for sys/_mbstate_t.h... no
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking if personality LINUX32 can be set... yes
checking for term.h... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether sys_siglist is declared... no
checking whether __sys_siglist is declared... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for struct utimbuf... yes
checking return type of signal handlers... void
checking for speed_t... yes
checking for struct timeval... yes
checking for struct exception... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for struct tm.tm_gmtoff... yes
checking for struct ifreq.ifr_flags... yes
checking for struct ifreq.ifr_hwaddr... yes
checking for struct ifreq.ifr_netmask... yes
checking for struct ifreq.ifr_broadaddr... yes
checking for struct ifreq.ifr_addr... yes
checking for function prototypes... yes
checking for working volatile... yes
checking for an ANSI C-conforming const... yes
checking for void * support... yes
checking whether make sets $(MAKE)... yes
checking for long file names... yes
checking for X... libraries , headers
checking for malloc_get_state... yes
checking for malloc_set_state... yes
checking whether __after_morecore_hook exists... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for dnet_ntoa in -ldnet... no
checking for main in -lXbsd... no
checking for cma_open in -lpthreads... no
checking whether X on GNU/Linux needs -b to link... no
checking for Xkb... yes
checking for XrmSetDatabase... yes
checking for XScreenResourceString... yes
checking for XScreenNumberOfScreen... yes
checking for XSetWMProtocols... yes
checking X11 version 6... 6 or newer
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for librsvg-2.0 >= 2.11.0... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.6 glib-2.0 >= 2.6... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for dbus-1 >= 1.0... yes
checking DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
checking DBUS_LIBS... -L/lib -ldbus-1
checking for xaw3d... no
checking for libXaw... no; do not use toolkit by default
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for fontconfig >= 2.2.0... yes
checking FONTCONFIG_CFLAGS...
checking FONTCONFIG_LIBS... -lfontconfig
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for xft >= 0.13.0... yes
checking XFT_CFLAGS... -I/usr/include/freetype2
checking XFT_LIBS... -lXft -lXrender -lfontconfig -lfreetype -lX11
checking X11/Xft/Xft.h usability... yes
checking X11/Xft/Xft.h presence... yes
checking for X11/Xft/Xft.h... yes
checking for XftFontOpen in -lXft... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libotf... no
checking X11/xpm.h usability... no
checking X11/xpm.h presence... no
checking for X11/xpm.h... no
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking for jpeg_destroy_compress in -ljpeg... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... no
checking for png_get_channels in -lpng... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFGetVersion in -ltiff... yes
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
configure: error: The following required libraries were not found:
    libXpm libgif/libungif
Maybe some development libraries/packages are missing?
If you don't want to link with them give
    --with-xpm=no --with-gif=no
as options to configure
[cheng@localhost emacs-23.1]$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
[cheng@localhost emacs-23.1]$ makeinstall
bash: makeinstall: command not found
[cheng@localhost emacs-23.1]$  

作者: marsaber    时间: 2009-12-15 12:02
[cheng@localhost emacs-23.1]$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
你找找有Makefile文件吗?

[cheng@localhost emacs-23.1]$ makeinstall
bash: makeinstall: command not found
要分开写的。

最好看看包里的readme或者install说明文件。
作者: cst05001    时间: 2009-12-15 12:04
configure: error: The following required libraries were not found:
    libXpm libgif/libungif
Maybe some development libraries/packages are missing?
If you don't want to link with them give
    --with-xpm=no --with-gif=no
as options to configure
[cheng@localhost emacs-23.1]$ make

====

你configure都没成功,makefile都没有,你make什么啊!



make: *** 没有指明目标并且找不到 makefile。 停止。
[cheng@localhost emacs-23.1]$ makeinstall
bash: makeinstall: command not found
[cheng@localhost emacs-23.1]$  
====
没有makeinstall这条命令,是make install
而且你makefile都没。你怎么继续?
作者: 可可火山    时间: 2009-12-15 13:02
不求最新的话, CentOS 5.4的yum源里有 emacs  21.4-20.el5

要手动编译的话,把需要的头文件装上:
yum -y install libXpm.i386  giflib.i386
然后在configure再make再make install
作者: kns1024wh    时间: 2009-12-15 14:10
标题: 回复 #1 tntcheng 的帖子
使用yum 将make工具安装上
作者: chenyx    时间: 2009-12-15 14:24
缺支持库,configure的时候已经告诉你了
作者: emmoblin    时间: 2009-12-15 15:36
估计是没有安装autoconf
作者: chenyx    时间: 2009-12-15 15:38
标题: 回复 #7 emmoblin 的帖子
肯定不是,有提示的
configure: error: The following required libraries were not found:
    libXpm libgif/libungif
Maybe some development libraries/packages are missing?
If you don't want to link with them give
    --with-xpm=no --with-gif=no
as options to configure

或者楼主按照提示加上 --with-xpm=no --with-gif=no重新configure下

[ 本帖最后由 chenyx 于 2009-12-15 15:39 编辑 ]
作者: to407    时间: 2009-12-15 16:07
标题: 回复 #8 chenyx 的帖子
按提示,装库文件就可以了
作者: uddtm    时间: 2009-12-15 16:14
标题: 你仔细看一下,你在configure的时候就出错了!
configure: error: The following required libraries were not found:
    libXpm libgif/libungif
Maybe some development libraries/packages are missing?
If you don't want to link with them give
    --with-xpm=no --with-gif=no
as options to configure

你仔细看一下,你在configure的时候就出错了!

要么你把依赖库给装上,再configure试试,要么使用--with-xpm=no --with-gif=no,出错信息提示的很清楚呀。
作者: wang509020    时间: 2010-07-28 18:36
我就遇到这个问题,终于找到呀,真开心,我要快点去试一下吧,要不能还不知道呢。,哈全
作者: lieves    时间: 2011-04-07 22:31
学习中……




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2