求指教:源代码已经configure成功,在make时发生错误,具体问题如下

时间:2022-12-23 12:46:24
root@lulu-virtual-machine:~/gchat/gchat_client# make
make  all-recursive
make[1]: 正在进入目录 `/root/gchat/gchat_client'
Making all in src
make[2]: 正在进入目录 `/root/gchat/gchat_client/src'
source='main.c' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=none /bin/bash ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DORBIT2=1 -pthread -D_REENTRANT -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/libpng12      -g -O2 -c `test -f 'main.c' || echo './'`main.c
../depcomp: line 1: /usr/share/automake-1.6/depcomp: 没有那个文件或目录
make[2]: *** [main.o] 错误 127
make[2]:正在离开目录 `/root/gchat/gchat_client/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/root/gchat/gchat_client'
make: *** [all] 错误 2


希望高人能指教一下,实在找不到解决方法~~万分感激!

8 个解决方案

#1


找不到automake-1.6,我的系统里只有automake-1.11和automake-1.9,能有什么解决方法吗?
本打算在Makefile文件里把
ACLOCAL = aclocal-1.6
AUTOCONF = autoconf
AUTOMAKE = automake-1.6
这几行修改为
ACLOCAL = aclocal-1.11
AUTOCONF = autoconf
AUTOMAKE = automake-1.11
但是在重新进行configure或者重新make之后Makefile文件又重新修改为原来的了。
请教各位高手!!

#2


唉,还是没人帮忙解决呀。。。我把各种文件里的automake版本改为了自己系统里的版本,
然后出现了一个新状况:
/usr/share/automake-1.11/depcomp: No command.  Try `/usr/share/automake-1.11/depcomp --help' for more information.
make[2]: *** [main.o] 错误 1
make[2]:正在离开目录 `/root/gchat/gchat_client/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/root/gchat/gchat_client'
make: *** [all] 错误 2
希望高手看到下指点下!!!谢谢了!!

#3


/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1.11/depcomp的使用方法不对哦  所以让你用/usr/share/automake-1.11/depcomp --help来看帮助文档。

本来人家要求的automake-1.6  可是你手动给改成automake-1.11了   可能1.6和1.11版本的automake的depcomp命令使用方法有些变化。

#4


引用 3 楼 steptodream 的回复:
/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1.11/depcomp的使用方法不对哦 所以让你用/u……


查看了帮助文档了,但里面只有几个命令。
原本的automake-1.6行不通呀,不改动的话在make的时候出现的问题在上面已经提及到。
迫不得已我就改了automake-1.11了,但是make后提示:
depcomp:no command.
请教一下有没有解决办法,我用了它的帮助功能得到的是:
root@lulu-virtual-machine:~/gchat/gchat_client# /usr/share/automake-1.11/depcomp --help
Usage: depcomp [--help] [--version] PROGRAM [ARGS]

Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.

Environment variables:
  depmode     Dependency tracking mode.
  source      Source file read by `PROGRAMS ARGS'.
  object      Object file output by `PROGRAMS ARGS'.
  DEPDIR      directory where to store dependencies.
  depfile     Dependency file to output.
  tmpdepfile  Temporary file to use when outputing dependencies.
  libtool     Whether libtool is used (yes/no).

#5


引用 3 楼 steptodream 的回复:
/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1.11/depcomp的使用方法不对哦  所以让你用……


最好的办法还是把automake升级到1.16

#6


引用 5 楼 wzzww 的回复:
引用 3 楼 steptodream 的回复:

/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1……


不是哦,你可能没看清楚,原来的版本是1.6,不是1.11,我也没法把原来的1.11给降级到1.6去。。。。。

#7


试试 从新制作 configure 

#8


问题同求啊

#1


找不到automake-1.6,我的系统里只有automake-1.11和automake-1.9,能有什么解决方法吗?
本打算在Makefile文件里把
ACLOCAL = aclocal-1.6
AUTOCONF = autoconf
AUTOMAKE = automake-1.6
这几行修改为
ACLOCAL = aclocal-1.11
AUTOCONF = autoconf
AUTOMAKE = automake-1.11
但是在重新进行configure或者重新make之后Makefile文件又重新修改为原来的了。
请教各位高手!!

#2


唉,还是没人帮忙解决呀。。。我把各种文件里的automake版本改为了自己系统里的版本,
然后出现了一个新状况:
/usr/share/automake-1.11/depcomp: No command.  Try `/usr/share/automake-1.11/depcomp --help' for more information.
make[2]: *** [main.o] 错误 1
make[2]:正在离开目录 `/root/gchat/gchat_client/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/root/gchat/gchat_client'
make: *** [all] 错误 2
希望高手看到下指点下!!!谢谢了!!

#3


/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1.11/depcomp的使用方法不对哦  所以让你用/usr/share/automake-1.11/depcomp --help来看帮助文档。

本来人家要求的automake-1.6  可是你手动给改成automake-1.11了   可能1.6和1.11版本的automake的depcomp命令使用方法有些变化。

#4


引用 3 楼 steptodream 的回复:
/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1.11/depcomp的使用方法不对哦 所以让你用/u……


查看了帮助文档了,但里面只有几个命令。
原本的automake-1.6行不通呀,不改动的话在make的时候出现的问题在上面已经提及到。
迫不得已我就改了automake-1.11了,但是make后提示:
depcomp:no command.
请教一下有没有解决办法,我用了它的帮助功能得到的是:
root@lulu-virtual-machine:~/gchat/gchat_client# /usr/share/automake-1.11/depcomp --help
Usage: depcomp [--help] [--version] PROGRAM [ARGS]

Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.

Environment variables:
  depmode     Dependency tracking mode.
  source      Source file read by `PROGRAMS ARGS'.
  object      Object file output by `PROGRAMS ARGS'.
  DEPDIR      directory where to store dependencies.
  depfile     Dependency file to output.
  tmpdepfile  Temporary file to use when outputing dependencies.
  libtool     Whether libtool is used (yes/no).

#5


引用 3 楼 steptodream 的回复:
/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1.11/depcomp的使用方法不对哦  所以让你用……


最好的办法还是把automake升级到1.16

#6


引用 5 楼 wzzww 的回复:
引用 3 楼 steptodream 的回复:

/usr/share/automake-1.11/depcomp: No command. Try `/usr/share/automake-1.11/depcomp --help' for more information.
---------------------
看样子是Makefile里的/usr/share/automake-1……


不是哦,你可能没看清楚,原来的版本是1.6,不是1.11,我也没法把原来的1.11给降级到1.6去。。。。。

#7


试试 从新制作 configure 

#8


问题同求啊