编译安装tar.gz包时遇到问题,求解

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
斯人93
帖子: 84
注册时间: 2012-11-04 16:46
系统: win7+ubuntu 14.04

编译安装tar.gz包时遇到问题,求解

#1

帖子 斯人93 » 2013-02-28 17:14

我在安装osdlyrics-0.4.3.tra.gz时,将其解压在了tmp目录下,然后终端cd到该目录,执行./configure,出现以下情况,

代码: 全选

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.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 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 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 gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
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 whether make sets $(MAKE)... (cached) yes
checking whether gcc and cc understand -c and -o together... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for ranlib... ranlib
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int32_t... yes
checking for int64_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ftruncate... yes
checking for gettimeofday... yes
checking for memset... yes
checking for pathconf... yes
checking for sqrt... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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... done
checking for iconv... yes
checking for working 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 exp in -ldl... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK2... no
configure: error: Package requirements (gtk+-2.0 >= 2.20.0,
                          gthread-2.0,
                          gmodule-export-2.0,
                          gio-2.0,
                          gio-unix-2.0) were not met:

No package 'gtk+-2.0' found
No package 'gthread-2.0' found
No package 'gmodule-export-2.0' found
No package 'gio-2.0' found
No package 'gio-unix-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK2_CFLAGS
and GTK2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
然后就执行make,提示make: *** 没有指明目标并且找不到 makefile。 停止。
是不是缺少什么包啊,求大神指教怎么解决。
所谓创新,就是经过深思熟虑的模仿
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 编译安装tar.gz包时遇到问题,求解

#2

帖子 YeLee » 2013-02-28 18:23

你是因为你编译需要的一大堆开发库还没装全,具体原因不解释。 :em01 :em01 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
b33e
帖子: 3864
注册时间: 2011-06-07 14:20
系统: Mint18

Re: 编译安装tar.gz包时遇到问题,求解

#3

帖子 b33e » 2013-02-28 18:30

这不是写的很清楚么,可谷歌每个语句

代码: 全选

No package 'gtk+-2.0' found
No package 'gthread-2.0' found
No package 'gmodule-export-2.0' found
No package 'gio-2.0' found
No package 'gio-unix-2.0' found
头像
斯人93
帖子: 84
注册时间: 2012-11-04 16:46
系统: win7+ubuntu 14.04

Re: 编译安装tar.gz包时遇到问题,求解

#4

帖子 斯人93 » 2013-03-06 17:36

缺少的包我一个个谷歌安装了,但最终总有一个找不到,最后放弃编译安装它了,安了tweak,在那里面添加源安装了osdlyric.我怀疑是163源里找不全他要的包。
所谓创新,就是经过深思熟虑的模仿
头像
torbai
帖子: 254
注册时间: 2011-08-11 19:22
系统: openSUSE 13.1 amd64

Re: 编译安装tar.gz包时遇到问题,求解

#5

帖子 torbai » 2013-03-07 9:41

斯人93 写了:缺少的包我一个个谷歌安装了,但最终总有一个找不到,最后放弃编译安装它了,安了tweak,在那里面添加源安装了osdlyric.我怀疑是163源里找不全他要的包。
名字不对
sudo apt-cache search ***
找到的名字为#####
sudo apt-get install #####
头像
qy117121
论坛版主
帖子: 50546
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 编译安装tar.gz包时遇到问题,求解

#6

帖子 qy117121 » 2013-03-07 9:44

需要的包装全了就好了
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
回复