Fixed shared libraries error

This commit is contained in:
Teddysun 2016-06-05 20:53:20 +09:00
parent a88801cbf0
commit 9e773c3571

View File

@ -330,8 +330,13 @@ compile_install(){
./configure ./configure
make && make install make && make install
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5 if is_64bit;then
ln -s /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5 ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
ln -s /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5
else
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
ln -s /usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5
fi
else else
echo "libevent2 install failed..." echo "libevent2 install failed..."
exit 1 exit 1