求助:ubuntu5。04下安装emacs问题。

Vim、Emacs配置和使用
回复
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

求助:ubuntu5。04下安装emacs问题。

#1

帖子 tonyqing2004 » 2005-10-11 22:00

运行 ~/download/emacs-21.4/configure后
显示如下:
loading cache ./config.cache
configure: warning: The directory tree `/home/tony/download/emacs-21.4' is being used
as a build directory right now; it has been configured in its own
right. To configure in another directory as well, you MUST
use GNU make. If you do not have GNU make, then you must
now do `make distclean' in /home/tony/download/emacs-21.4,
and then run /home/tony/download/emacs-21.4/configure again.
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether ln -s works... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for bison... no
checking for byacc... no
checking for ranlib... (cached) ranlib
checking for AIX... no
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... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) 64
checking for _LARGE_FILES value needed for large files... (cached) no
checking for machine/soundcard.h... (cached) no
checking for sys/soundcard.h... (cached) yes
checking for soundcard.h... (cached) no
checking for _oss_ioctl in -lossaudio... (cached) no
checking for sys/select.h... (cached) yes
checking for sys/timeb.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for utime.h... (cached) yes
checking for linux/version.h... (cached) yes
checking for sys/systeminfo.h... (cached) no
checking for termios.h... (cached) yes
checking for limits.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for termcap.h... (cached) no
checking for stdio_ext.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for term.h... (cached) no
checking for strings.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for sys_siglist declaration in signal.h or unistd.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for struct utimbuf... (cached) yes
checking return type of signal handlers... (cached) void
checking for speed_t... (cached) yes
checking for struct timeval... (cached) yes
checking for struct exception... (cached) no
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) yes
checking for tm_gmtoff in struct tm... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for function prototypes... yes
checking for working volatile... (cached) yes
checking for working const... (cached) yes
checking for void * support... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for long file names... (cached) yes
checking for X... (cached) no
checking for malloc_get_state... (cached) yes
checking for malloc_set_state... (cached) yes
checking whether __after_morecore_hook exists... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for dnet_ntoa in -ldnet... (cached) no
checking for main in -lXbsd... (cached) no
checking for cma_open in -lpthreads... (cached) no
checking for XFree86 in /usr/X386... no
checking whether netdb declares h_errno... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for sqrt in -lm... (cached) yes
checking for maillock in -lmail... (cached) no
checking for maillock in -llockfile... (cached) no
checking for liblockfile.so... (cached) no
checking for touchlock... (cached) no
checking for maillock.h... (cached) no
checking for gethostname... (cached) yes
checking for getdomainname... (cached) yes
checking for dup2... (cached) yes
checking for rename... (cached) yes
checking for closedir... (cached) yes
checking for mkdir... (cached) yes
checking for rmdir... (cached) yes
checking for sysinfo... (cached) yes
checking for random... (cached) yes
checking for lrand48... (cached) yes
checking for bcopy... (cached) yes
checking for bcmp... (cached) yes
checking for logb... (cached) yes
checking for frexp... (cached) yes
checking for fmod... (cached) yes
checking for rint... (cached) yes
checking for cbrt... (cached) yes
checking for ftime... (cached) yes
checking for res_init... (cached) no
checking for setsid... (cached) yes
checking for strerror... (cached) yes
checking for fpathconf... (cached) yes
checking for select... (cached) yes
checking for mktime... (cached) yes
checking for euidaccess... (cached) yes
checking for getpagesize... (cached) yes
checking for tzset... (cached) yes
checking for setlocale... (cached) yes
checking for utimes... (cached) yes
checking for setrlimit... (cached) yes
checking for setpgid... (cached) yes
checking for getcwd... (cached) yes
checking for getwd... (cached) yes
checking for shutdown... (cached) yes
checking for strftime... (cached) yes
checking for getaddrinfo... (cached) yes
checking for __fpending... (cached) yes
checking for mblen... (cached) yes
checking for mbrlen... (cached) yes
checking for strsignal... (cached) yes
checking for setitimer... (cached) yes
checking for ualarm... (cached) yes
checking for index... (cached) yes
checking for rindex... (cached) yes
checking for gai_strerror... (cached) yes
checking for mkstemp... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... (cached) yes
checking for working mktime... (cached) yes
checking for getloadavg... (cached) yes
checking for getloadavg... (cached) yes
checking whether getloadavg requires setgid... (cached) no
checking for _LARGEFILE_SOURCE value needed for large files... (cached) 1
checking for fseeko... (cached) yes
checking for grantpt... (cached) yes
checking for getpt... (cached) yes
checking for tparm in -lncurses... (cached) no
checking for dgettext in -lintl... (cached) no
checking whether localtime caches TZ... (cached) no
checking for gettimeofday... (cached) yes
checking whether gettimeofday can accept two arguments... (cached) yes
checking for struct timezone... (cached) yes
checking for socket... (cached) yes
checking for netinet/in.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking whether system supports dynamic ptys... yes
checking for pid_t... (cached) yes
checking for vfork.h... (cached) no
checking for working vfork... (cached) yes
checking for size_t... (cached) yes

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

Where should the build process find the source code? /home/tony/download/em acs-21.4
What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/intel386.h'
What compiler should emacs be built with? gcc -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? yes
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? none
What toolkit should Emacs use? none
Where do we find X Windows header files? NONE
Where do we find X Windows libraries? NONE
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? no
Does Emacs use -ljpeg? no
Does Emacs use -ltiff? no
Does Emacs use -lungif? no
Does Emacs use -lpng? no
Does Emacs use X toolkit scroll bars? no

creating ./config.status
creating Makefile
creating lib-src/Makefile.c
creating oldXMenu/Makefile
creating man/Makefile
creating lwlib/Makefile
creating src/Makefile.c
creating lisp/Makefile
creating leim/Makefile
creating src/config.h
src/config.h is unchanged
creating src/epaths.h
make: *** No rule to make target `aclocal.m4', needed by `/home/tony/download/em acs-21.4/configure'. Stop.
creating lib-src/Makefile
creating src/Makefile

关键是红色那句,请问是什么意思?如何解决?
我是新人,请大家帮忙。
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#2

帖子 leal » 2005-10-11 22:09

安装m4?
用心×恒 | 豆瓣 | 门户 | Blog
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

#3

帖子 tonyqing2004 » 2005-10-11 22:15

m4是什么?
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#4

帖子 leal » 2005-10-11 22:20

http://www.gnu.org/software/m4/

GNU m4 is an implementation of the traditional Unix macro processor. It is mostly SVR4 compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). GNU m4 also has built-in functions for including files, running shell commands, doing arithmetic, etc.

GNU m4 is a macro processor in the sense that it copies its input to the output expanding macros as it goes. Macros are either builtin or user-defined and can take any number of arguments. Besides just doing macro expansion m4 has builtin functions for including named files, running UNIX commands, doing integer arithmetic, manipulating text in various ways, recursion etc... m4 can be used either as a front-end to a compiler or as a macro processor in its own right.

The latest stable version is 1.4.3

GNU m4 is being actively developed, and version 2.0 will have many new features, such as better input control, multiple precision arithmetic and loadable modules. Information about the future of GNU m4 is at http://savannah.gnu.org/projects/m4/.

GNU m4 is maintained by Gary V. Vaughan. Report bugs to bug-m4@gnu.org.

Online Manual is available at http://www.gnu.org/software/m4/manual/index.html
用心×恒 | 豆瓣 | 门户 | Blog
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

#5

帖子 tonyqing2004 » 2005-10-11 22:28

let me try it...
thank you.
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

#6

帖子 tonyqing2004 » 2005-10-11 22:33

leal 写了:http://www.gnu.org/software/m4/

GNU m4 is an implementation of the traditional Unix macro processor. It is mostly SVR4 compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). GNU m4 also has built-in functions for including files, running shell commands, doing arithmetic, etc.

GNU m4 is a macro processor in the sense that it copies its input to the output expanding macros as it goes. Macros are either builtin or user-defined and can take any number of arguments. Besides just doing macro expansion m4 has builtin functions for including named files, running UNIX commands, doing integer arithmetic, manipulating text in various ways, recursion etc... m4 can be used either as a front-end to a compiler or as a macro processor in its own right.

The latest stable version is 1.4.3

GNU m4 is being actively developed, and version 2.0 will have many new features, such as better input control, multiple precision arithmetic and loadable modules. Information about the future of GNU m4 is at http://savannah.gnu.org/projects/m4/.

GNU m4 is maintained by Gary V. Vaughan. Report bugs to bug-m4@gnu.org.

Online Manual is available at http://www.gnu.org/software/m4/manual/index.html

不是你说的这个。这个我已经装了。请问aclocal.m4是什么?
头像
yonsan
帖子: 887
注册时间: 2005-07-01 18:56
来自: 广州市

#7

帖子 yonsan » 2005-10-11 23:46

try this:

代码: 全选

sudo apt-get install automake
I will be back!
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

#8

帖子 tonyqing2004 » 2005-10-12 16:15

yonsan 写了:try this:

代码: 全选

sudo apt-get install automake
照你说的做了,还是老问题。。。

make: *** No rule to make target `aclocal.m4', needed by `/home/tony/download/emacs-21.4/configure'. Stop.
creating lib-src/Makefile
creating src/Makefile
tony@HelloTony:~/software/emacs$ make
make: *** 没有规则可以创建“/home/tony/download/emacs-21.4/configure”需要的目标“aclocal.m4”。 停止。


郁闷的。。
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

#9

帖子 tonyqing2004 » 2005-10-12 19:04

有没有高手帮帮忙阿?
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#10

帖子 leal » 2005-10-12 19:27

试着执行aclocal一下 或者直接google
No rule to make target `aclocal.m4' 看有否相关信息
用心×恒 | 豆瓣 | 门户 | Blog
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

#11

帖子 tonyqing2004 » 2005-10-12 21:09

leal 写了:试着执行aclocal一下 或者直接google
No rule to make target `aclocal.m4' 看有否相关信息
执行aclocal:
~$ aclocal
aclocal: `configure.ac' or `configure.in' is required

google上我昨天就找过了。。没有好的介绍。而且全英文,有的看不懂。

苦闷阿。。
要不等明天breezy正式版出来重装下系统?
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#12

帖子 leal » 2005-10-12 21:28

重装系统也不是彻底的解决方法,也太被动。

干脆先装个安装包好了,不用编译安装。
用心×恒 | 豆瓣 | 门户 | Blog
tonyqing2004
帖子: 11
注册时间: 2005-07-23 22:37

#13

帖子 tonyqing2004 » 2005-10-12 22:48

leal 写了:重装系统也不是彻底的解决方法,也太被动。

干脆先装个安装包好了,不用编译安装。
有安装包吗?rpm的?
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#14

帖子 leal » 2005-10-12 23:26

rpm? 不知道,反正apt-get 肯定能安装到。

rpm的去emacs主页搜搜吧,肯定会有
用心×恒 | 豆瓣 | 门户 | Blog
头像
paul
帖子: 510
注册时间: 2005-09-01 20:48

#15

帖子 paul » 2005-10-13 5:10

leal 写了:试着执行aclocal一下 或者直接google
No rule to make target `aclocal.m4' 看有否相关信息
我昨天也是这么查的,结果没查到。
回复