» 您尚未 登录   注册 | 银行 | 首页调用管理 | 博客 | 帮助 | 社区 | 无图版
华镭社区论坛 -> 应用程序 -> 编译源码的问题,make无法进行。
 XML   RSS 2.0   WAP 

--> 本页主题: 编译源码的问题,make无法进行。 加入收藏 | 收藏主题 | 上一主题 | 下一主题
easyhappy




该用户目前不在线
级别: 新手上路
精华: 0
发帖: 35
威望: 1 点
镭: 0 L
贡献值: 0 点
在线时间:0(小时)
注册时间:2004-11-29
最后登录:1970-01-01
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子

编译源码的问题,make无法进行。

我下了gaim的源码,开始编译:

wuliu08:/linux/gaim-1.1.0# ls
ABOUT-NLS configure gaim.spec.in NEWS
acinclude.m4 configure.ac HACKING pixmaps
aclocal.m4 COPYING INSTALL plugins
AUTHORS COPYRIGHT install-sh po
ChangeLog depcomp intl PROGRAMMING_NOTES
ChangeLog.win32 doc libtool README
compile Doxyfile.in licq2gaim.pl README.mingw
config.guess gaim2blt.pl ltmain.sh setup-gettext
config.h gaim.apspec.in Makefile.am sounds
config.h.in gaim.desktop Makefile.in src
config.h.mingw gaim-installer.nsi Makefile.mingw VERSION
config.log gaim.pc.in missing VERSION.in
config.sub gaim.spec mkinstalldirs
wuliu08:/linux/gaim-1.1.0# sh configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for sed... /bin/sed
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... expr: syntax error

checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag \"CXX\" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag \"F77\" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ranlib... (cached) ranlib
checking for library containing strerror... none required
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/sh: ./config.rpath: No such file or directory
done
checking for ptrdiff_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether getc_unlocked is declared... yes
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 1.875, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.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 for locale.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for strftime... yes
checking for strdup... (cached) yes
checking for strstr... yes
checking for atexit... yes
checking for getopt_long... yes
checking for inet_aton... yes
checking for gethostent in -lnsl... yes
checking for socket... yes
checking for getaddrinfo... yes
checking for socklen_t... yes
checking for pkg-config... /usr/bin/pkg-config
checking for silc... Package silc was not found in the pkg-config search path.
Perhaps you should add the directory containing `silc.pc\'
to the PKG_CONFIG_PATH environment variable
No package \'silc\' found
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for uname... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.4.2)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.
wuliu08:/linux/gaim-1.1.0# make
make: *** 没有指明目标并且找不到 makefile。 停止。
wuliu08:/linux/gaim-1.1.0#

结束。
我编译MPLAYER的时候也是这样,./configure可以运行,但是接着make就不行了。


[楼 主] | Posted: 2004-12-13 20:56
顶端
redarmy




该用户目前不在线
级别: 中级会员
精华: 0
发帖: 119
威望: 1 点
镭: 0 L
贡献值: 0 点
在线时间:0(小时)
注册时间:2004-03-05
最后登录:1970-01-01
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



rays下安装软件不需要自行编译。

apt-get install gaim即可。

[1 楼] | Posted: 2004-12-14 09:17 顶端
easyhappy




该用户目前不在线
级别: 新手上路
精华: 0
发帖: 35
威望: 1 点
镭: 0 L
贡献值: 0 点
在线时间:0(小时)
注册时间:2004-11-29
最后登录:1970-01-01
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



下列的软件包有不能满足的依赖关系:
gaim: 依赖: libglib2.0-0 (>= 2.4.6) 但是,2.4.2-1 正要被安装
libgail-common: 依赖: libglib2.0-0 (>= 2.4.6) 但是,2.4.2-1 正要被安装
libgail-dev: 依赖: libgtk2.0-dev (>= 2.2.0-2) 但是,它将不会被安装
依赖: libgnomecanvas2-dev (>= 2.4.0) 但是,它将不会被安装
libgail17: 依赖: libglib2.0-0 (>= 2.4.6) 但是,2.4.2-1 正要被安装

这是我apt-get install gaim 的结果。
我在一开始用碟子安装的时候,在“网络”这一项里边,把GAIM给勾掉了,没装。
现在我用软件包管理器安gaim的时候,它告诉我由于某些设置要保持原装,所以安装不可以进行。
libglib2.0-0 (>= 2.4.6) 但是,2.4.2-1 正要被安装,这句话该怎么理解?

[2 楼] | Posted: 2004-12-14 13:54 顶端
easyhappy




该用户目前不在线
级别: 新手上路
精华: 0
发帖: 35
威望: 1 点
镭: 0 L
贡献值: 0 点
在线时间:0(小时)
注册时间:2004-11-29
最后登录:1970-01-01
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



wuliu08:/# apt-get install gaim
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
有一些软件包无法被安装。如果您用的是不稳定(unstable)发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们还在新到(incoming)目录中。

您仅要求对单一软件包进行操作,这极有可能是因为该软件包安装不上,同时,
您最好提交一个针对这个软件包的故障报告。
下列的信息可能会对问题的解决有所帮助:

下列的软件包有不能满足的依赖关系:
gaim: 依赖: libglib2.0-0 (>= 2.4.6) 但是,2.4.2-1 正要被安装
E: 受损安装包

以上就是我在终端中的操作。

[3 楼] | Posted: 2004-12-14 15:10 顶端
redarmy




该用户目前不在线
级别: 中级会员
精华: 0
发帖: 119
威望: 1 点
镭: 0 L
贡献值: 0 点
在线时间:0(小时)
注册时间:2004-03-05
最后登录:1970-01-01
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



你是否混合使用了debian和rays的软件源???

先执行apt-get update

再执行
apt-get install
试试。

[4 楼] | Posted: 2004-12-14 17:58 顶端
easyhappy




该用户目前不在线
级别: 新手上路
精华: 0
发帖: 35
威望: 1 点
镭: 0 L
贡献值: 0 点
在线时间:0(小时)
注册时间:2004-11-29
最后登录:1970-01-01
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



没有混合使用,只有rays的源,出现上述结果。
后换用ustc的源,也是:
apt-get install gaim
它就找到了libglib的包,给我装上了gaim。
所以我觉得,是rays的服务器上的包的依赖关系出现问题了,要不就是某些软件包没有到位。

[5 楼] | Posted: 2004-12-16 12:53 顶端
corcol08




该用户目前不在线
级别: 普通会员
精华: 0
发帖: 52
威望: 23 点
镭: 27 L
贡献值: 0 点
在线时间:17(小时)
注册时间:2004-12-08
最后登录:2010-03-18
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



原先本身自带有gaim(并有QQ插件),后来升级后,没有QQ插件了,怎么装update也是一样的结果,我就干脆把删除gaim ,到http://packages.debian.org/下载gaim和关联软件包,安装就OK了!
[6 楼] | Posted: 2004-12-19 11:02 顶端
corcol08




该用户目前不在线
级别: 普通会员
精华: 0
发帖: 52
威望: 23 点
镭: 27 L
贡献值: 0 点
在线时间:17(小时)
注册时间:2004-12-08
最后登录:2010-03-18
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



原先本身自带有gaim(并有QQ插件),后来升级后,没有QQ插件了,怎么装update也是一样的结果,我就干脆把删除gaim ,到http://packages.debian.org/下载gaim和关联软件包,安装就OK了!
[7 楼] | Posted: 2004-12-19 11:03 顶端

华镭社区论坛 -> 应用程序