From 9e773c3571c6714ed42abe18c8e5cef9e43253e3 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sun, 5 Jun 2016 20:53:20 +0900 Subject: [PATCH] Fixed shared libraries error --- l2tp.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/l2tp.sh b/l2tp.sh index a5e8afa..69f4f33 100644 --- a/l2tp.sh +++ b/l2tp.sh @@ -330,8 +330,13 @@ compile_install(){ ./configure make && make install if [ $? -eq 0 ]; then - 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 + if is_64bit;then + 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 echo "libevent2 install failed..." exit 1