尝试安装时遇到一个奇怪的问题dev-lib/gobject-introspection
:
>>> Emerging (1 of 9) dev-libs/gobject-introspection-1.42.0
......
configure: error: Package requirements (glib-2.0 > 2.36.0) were not met:
No package `glib-2.0` found
Run Code Online (Sandbox Code Playgroud)
我已经dev-libs/glib-2.42.1
安装了,但是有一些奇怪的问题pkg-config
:
$ pkg-config --modversion glib-2.0
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc`
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
$ echo $PKG_CONFIG_PATH
$
Run Code Online (Sandbox Code Playgroud)
看起来好像没有glib-2.0.pc
文件/usr/lib/pkgconfig
。有该文件/usr/lib32/pkgconfig/glib-2.0.pc
,但对于以前版本的 glib-2.38.2
任何人都可以向我解释,什么可能是错的,如何解决这个问题?我已经在gentoo 论坛上问过这个问题,但也许我会在这里有更好的运气。
尝试使用以下配置参数交叉编译 glib 时出现以下错误:
./configure --prefix=$HOME --host=arm-hisiv400-linux
checking for growing stack pointer... configure: error: in `/home/aa/Hi3536_SDK_V2.0.4.0/glib-2.50.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
Run Code Online (Sandbox Code Playgroud)
有没有办法禁用这些测试,以便我的交叉编译过程可以通过?
我正在尝试为 gstreamer 交叉编译 glib,但在 Ubuntu 16.04 终端中遇到以下错误:
checking for LIBMOUNT... no
checking libmount/libmount.h usability... no
checking libmount/libmount.h presence... no
checking for libmount/libmount.h... no
configure: error: *** Could not find libmount
Run Code Online (Sandbox Code Playgroud)
非常感谢来自社区的任何建议。
我多次遇到使用打开/保存文件对话框的几个程序的问题。
通过尝试打开或保存文件来启动这些程序时,程序会冻结大约 10 秒钟,然后崩溃。随着libreoffice
比如,我收到以下错误信息从终端启动时:
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.UDisks2VolumeMonitor: Timeout was reached (g-io-error-quark, 24)
(soffice:1466): GLib-GIO-ERROR **: 19:11:38.289: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'
Fatal exception: Signal 5
Stack:
Run Code Online (Sandbox Code Playgroud)
堆栈跟踪如下。
我在AskUbuntu.SE上读到过类似的问题,但解决方案(多个版本/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml
)不适用于我。
该文件似乎具有适当的内容(对我而言)。关于错误中提到的密钥的摘录:
<key name='show-type-column' type='b'>
<default>true</default>
<summary>Show file types</summary>
<description>
Controls whether the file chooser shows a column with file types.
</description>
</key>
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我正在尝试从http://ftp.midnight-commander.org/mc-4.8.14.tar.bz2./configure
下载午夜指挥官
,我得到以下信息:
checking for GLIB... no
configure: error: glib-2.0 not found or version too old (must be >= 2.14)
Run Code Online (Sandbox Code Playgroud)
所以我得到了一个glib版本ftp://rpmfind.net/linux/sourceforge/r/ra/ramonelinux/Rel_0.99/releases/i686/packages/glib-2.41.2-1.ram0.99.i686.rpm
但是当我安装它时,它与当前版本冲突:
...
file /usr/share/locale/zh_CN/LC_MESSAGES/glib20.mo from install of glib-2.41.2-1.ram0.99.i686
conflicts with file from package glib2-2.40.0-4.el7.x86_64
file /usr/share/locale/zh_HK/LC_MESSAGES/glib20.mo from install of glib-2.41.2-1.ram0.99.i686
conflicts with file from package glib2-2.40.0-4.el7.x86_64
file /usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo from install of glib-2.41.2-1.ram0.99.i686
conflicts with file from package glib2-2.40.0-4.el7.x86_64
Run Code Online (Sandbox Code Playgroud)
事实上,我安装了一个有效的 glib:
sudo yum list installed | grep glib
ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @anaconda
NetworkManager-glib.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 @base
dbus-glib.x86_64 0.100-7.el7 @anaconda …
Run Code Online (Sandbox Code Playgroud) 最近,我从 Ubuntu 切换到 Fedora。现在,我想运行相当于 Ubuntu 命令的 Fedora
sudo apt-get install libglib2.0-dev
因为当我cmake
一个项目(特别是lcm 1.4.0)时,错误是
Could NOT find GLib2_glib (missing: GLIB2_GLIB_LIBRARY GLIB2_GLIB_INCLUDE_DIR GLIB2_GLIBCONFIG_INCLUDE_DIR)
谢谢你!
glib ×6
centos ×1
cmake ×1
compiling ×1
firefox ×1
gentoo ×1
gtk ×1
libreoffice ×1
manjaro ×1
pkg-config ×1