我有一个关于作者归因压缩距离的研究。我应该在工作中使用“Complearn”,这是一个压缩程序。但一开始我在安装这个程序时遇到了问题。
1)我从这个链接下载程序到Linux Mint(它位于我的Windows计算机的虚拟机中(VirtualBox中的VM));
http://www.complearn.org/downloads/libcomplearn-1.1.7.tar.gz
2)我在程序的终端窗口中一一写入(当然在程序目录中),
./configure
(配置步骤之后,我收到了一些关于需求依赖项的错误,例如 gsl、zlib 等。我安装了所有这些错误。最后需要 glib。我安装了它,但它又给了我一个关于旧版本 glib 存在的错误.错误是这样的:
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.42.0, but GLIB (2.40.2)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: must have glib >= 2.0.0 and gobject installed
我用这个命令解决了它:
echo $LD_LIBRARY_PATH 导出 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
之后我尝试 ./configure 步骤,它没有失败。)
然后
make
它因以下错误而失败:
> In file included from anydecompress.c:32:0:
> /usr/local/include/glib-2.0/glib/garray.h:29:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> In file included from /usr/local/include/glib-2.0/glib/garray.h:32:0,
> from anydecompress.c:32:
> /usr/local/include/glib-2.0/glib/gtypes.h:29:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> In file included from /usr/local/lib/glib-2.0/include/glibconfig.h:9:0,
> from /usr/local/include/glib-2.0/glib/gtypes.h:32,
> from /usr/local/include/glib-2.0/glib/garray.h:32,
> from anydecompress.c:32:
> /usr/local/include/glib-2.0/glib/gmacros.h:33:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> In file included from /usr/local/include/glib-2.0/glib/gtypes.h:34:0,
> from /usr/local/include/glib-2.0/glib/garray.h:32,
> from anydecompress.c:32:
> /usr/local/include/glib-2.0/glib/gversionmacros.h:29:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> anydecompress.c: In function ‘main’:
> anydecompress.c:59:3: warning: ‘g_type_init’ is deprecated (declared at /usr/local/include/glib-2.0/gobject/gtype.h:679) [-Wdeprecated-declarations]
> g_type_init ();
> ^
> make[2]: *** [anydecompress-anydecompress.o] Error 1
> make[2]: Leaving directory `/home/kubra/libcomplearn-1.1.7/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/kubra/libcomplearn-1.1.7/src'
> make: *** [all-recursive] Error 1
这是什么意思?我应该怎么做才能解决这个问题?请你帮助我好吗?我在谷歌搜索中没有找到任何修复此错误的建议。
谢谢。