• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling cannot find -lboost_system

Anothai

:3
Joined
Mar 24, 2008
Messages
641
Reaction score
3
Location
Turtle Tail :'O
[read -llua5.1 -lboost_thread -lgmp -lmysqlclient -lboost_regex -lsqlite3 -llua5.1-sql-mysql -llua5.1-sql-sqlite -ldl -lboost_system
/usr/bin/ld: cannot find -lboost_system
collect2: ld returned 1 exit status
make: *** [theforgottenserver] Error 1
]



Ok I just figured out! :]

Make sure that you are Root
1) Download those and extrack it anywhere in your desktop or somewhere....
http://downloads.sourceforge.net/asio/boost_asio_0_3_8.tar.gz
http://downloads.sourceforge.net/boost/boost_1_34_1.tar.gz

2) write this code below in terminal
Code:
cp boost_asio_0_3_8/boost /usr/local/include -r
Code:
cp boost_asio_0_3_8/libs boost_1_34_1 -r
Code:
cd boost_1_34_1/libs/system/src/
Code:
g++ -shared -Wl,-soname,libboost_system.so.1 -o libboost_system.so.1.0.1 error_code.cpp -lc -fPIC
Code:
cp libboost_system.so.1.0.1 /usr/local/lib
Code:
ln -s /usr/local/lib/libboost_system.so.1.0.1 /usr/local/lib/libboost_system.so
Code:
ldconfig

3) Now try to compile your server again and it SHOULD work :]] :wub::wub:
 
Last edited:
@up.. No im not using Windows..

Ok I just figured out! :]

Make sure that you are Root
1) Download those and extrack it anywhere in your desktop or somewhere....
http://downloads.sourceforge.net/asio/boost_asio_0_3_8.tar.gz
http://downloads.sourceforge.net/boost/boost_1_34_1.tar.gz

2) write this code below in terminal
Code:
cp boost_asio_0_3_8/boost /usr/local/include -r
Code:
cp boost_asio_0_3_8/libs boost_1_34_1 -r
Code:
cd boost_1_34_1/libs/system/src/
Code:
g++ -shared -Wl,-soname,libboost_system.so.1 -o libboost_system.so.1.0.1 error_code.cpp -lc -fPIC
Code:
cp libboost_system.so.1.0.1 /usr/local/lib
Code:
ln -s /usr/local/lib/libboost_system.so.1.0.1 /usr/local/lib/libboost_system.so
Code:
ldconfig

3) Now try to compile your server again and it SHOULD work :]] :wub::wub:
 
Last edited:
Back
Top