
私は著者帰属圧縮距離について研究しています。そして、その研究で圧縮プログラムである「Complearn」を使用する必要があります。しかし、最初はこのプログラムのインストールに問題がありました。
1) このリンクからプログラムを Linux Mint (Windows コンピューターの仮想マシン (VirtualBox の VM) 内) にダウンロードします。
http://www.complearn.org/downloads/libcomplearn-1.1.7.tar.gz
2) プログラムのターミナルウィンドウに1つずつ書き込みました(もちろんプログラムディレクトリ内)。
./configure
( configure ステップの後、要件の依存関係 (例: gsl、zlib など) に関するいくつかのエラーが発生しました。すべてインストールしました。最後に glib が必要でした。それをインストールしましたが、古いバージョンの glib が存在するというもう 1 つのエラーが発生しました。エラーは次のとおりです。
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
これはどういう意味ですか? この問題を解決するにはどうすればいいですか? 助けていただけませんか? グーグルで検索してもこのエラーを修正するための提案は見つかりませんでした。
ありがとう。