2017-10-17 15 views
0

私はclean centos6システムを持っているので、ソースからtorをコンパイルしてみてください。 第1の方法(yumによるlibeventのインストール)。私が行いますcentos6でコンパイルしてください。 libeventの問題

yum install libevent2 
yum install libevent2-devel 

... 

(inside tor folder): ./configure 
make 

とエラーが出る:

src/common/libor-event.a(compat_libevent.o): In function `tor_gettimeofday_cache_clear': 
/root/tor-0.3.1.7/src/common/compat_libevent.c:250: undefined reference to `event_base_update_cache_time' 
collect2: ld returned 1 exit status 
make[1]: *** [src/or/tor] Error 1 
make[1]: Leaving directory `/root/tor-0.3.1.7' 
make: *** [all] Error 2 

第二の方法(ソースからのlibeventをインストールします)。

yum remove libevent2 
yum remove libevent2-devel 
.. 
(from libevent folder): ./configure 
make 
make install 
.. 
(from tor folder): ./configure 

とエラーが表示されます。

だから、
checking whether we need extra options to link libevent... configure: error: Found linkable libevent in (system), but it does not seem to run, even with -R. Maybe specify another using --with-libevent-dir} 

、私が間違って何をやっている)次に何をすべきか?

+0

正確なバージョン:Linuxバージョン2.6.32-696.13.2.el6.x86_64([email protected])(gccバージョン4.4.7 20120313(Red Hat 4.4.7-18)(GCC) ) – anagamin

答えて

0

あなたが作るの出力である

LDFLAGS+=-L[path of the libevent.so] -levent 

何ライブラリのオプションにlibeventライブラリを追加する逃したことがありますか?

+0

あなたはconfigure torの間にそれを追加することを意味しますか?それをサポートしていません。それは--with-libevent-dirをサポートしています。それは設定に役立ちますが、makeはまだエラーを表示します。出力はhttps://pastebin.com/EmLNaVUL – anagamin

+0

です。その場合は、どのライブラリフラグが設定されているかをconfig.logで確認してください。 イベントログを確認している間に何が起こっていますか? 'make V = 1'は、実行されるコマンドの種類に関する詳細を提供します –

+0

Heh、それは難しすぎました))。私はubuntuをインストールし、問題なくコンパイルしました... Centosは悪です)) – anagamin

関連する問題