编译安装失败。。提示缺少glib2.0

742 views
Skip to first unread message

saint H

unread,
Jan 7, 2013, 8:29:35 AM1/7/13
to kp...@googlegroups.com
saint@fit106-vb:~/desktop/kpfs-read-only$ ./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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... no
configure: error: Package requirements (glib-2.0) were not met:

No package 'glib-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 GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


我apt-cahce search glib看了一下。发现有好多种。。而且有些装过的。:
saint@fit106-vb:~/desktop/kpfs$ apt-cache search glib-2.0
gir1.2-glib-2.0 - Introspection data for GLib, GObject, Gio and GModule
libqtglib-2.0-0 - C++ bindings library for GLib and GObject with a Qt-style API
gir1.2-spice-client-glib-2.0 - GObject for communicating with Spice servers (GObject-Introspection)
libfsoresource-dev - Development files for libfsoresource
libfsosystem-dbg - debugging symbols for use with libfsosystem
libfsosystem-dev - Development files for libfsosystem
libfsosystem0 - freesmartphone.org system implementation library
libspice-client-glib-2.0-1 - GObject for communicating with Spice servers (runtime library)
libspice-client-glib-2.0-dev - GObject for communicating with Spice servers (development files)
saint@fit106-vb:~/desktop/kpfs$ sudo apt-get install  gir1.2-glib-2.0 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
gir1.2-glib-2.0 已经是最新的版本了。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 376 个软件包未被升级。


tao yu

unread,
Jan 7, 2013, 8:36:04 AM1/7/13
to kp...@googlegroups.com

你需要装带 dev 的,你是在编译代码,不是直接安装二进制。

saint H

unread,
Jan 7, 2013, 8:42:35 AM1/7/13
to kp...@googlegroups.com
确实是在编译中。。
请问安装哪个呢?

saint@fit106-vb:~/desktop/kpfs$ apt-cache search glib-2.0
gir1.2-glib-2.0 - Introspection data for GLib, GObject, Gio and GModule
libqtglib-2.0-0 - C++ bindings library for GLib and GObject with a Qt-style API
gir1.2-spice-client-glib-2.0 - GObject for communicating with Spice servers (GObject-Introspection)
libfsoresource-dev - Development files for libfsoresource
libfsosystem-dbg - debugging symbols for use with libfsosystem
libfsosystem-dev - Development files for libfsosystem
libfsosystem0 - freesmartphone.org system implementation library
libspice-client-glib-2.0-1 - GObject for communicating with Spice servers (runtime library)
libspice-client-glib-2.0-dev - GObject for communicating with Spice servers (development files)


在 2013年1月7日星期一UTC+8下午9时36分04秒,mimepp写道:

tao yu

unread,
Jan 7, 2013, 8:46:03 AM1/7/13
to kp...@googlegroups.com

Google 搜索 glib dev

saint H

unread,
Jan 7, 2013, 8:56:29 AM1/7/13
to kp...@googlegroups.com
sudo apt-get install libglib2.0-0 libglib2.0-dev 搞定。建议也加入README中吧。。

在 2013年1月7日星期一UTC+8下午9时46分03秒,mimepp写道:

tao yu

unread,
Jan 7, 2013, 9:01:14 AM1/7/13
to kp...@googlegroups.com

谢谢提醒,glib dev 是漏了。

tao yu

unread,
Jan 7, 2013, 9:09:18 AM1/7/13
to kp...@googlegroups.com

saint H

unread,
Jan 7, 2013, 9:17:31 AM1/7/13
to kp...@googlegroups.com
已经编译了,我编译的1.0版本的。。使用命令 saint@fit106-vb:~/download/liboauth-1.0.0$ ./configure --enable-nss  --with-curltimeout

./configure中倒是没报错 但是有一些是no。

然后make的时候再次悲剧了。。贴图会不会看着更舒服。。



在 2013年1月7日星期一UTC+8下午10时09分18秒,mimepp写道:

tao yu

unread,
Jan 8, 2013, 8:21:14 AM1/8/13
to kp...@googlegroups.com

新版本的 liboauth 我要再看看。

tao yu

unread,
Jan 10, 2013, 9:04:52 PM1/10/13
to kp...@googlegroups.com
liboauth 的问题已经做了修改。
http://code.google.com/p/kpfs/source/detail?r=45

谢谢。

TAO
Reply all
Reply to author
Forward
0 new messages