perfect
Joined: 8th Jul 2009
Posts: 1424
EOSERV on Linux
Hi,
I've always hosted on windows OS's. Which leads me to ask, what dependencies/libraries do i need to install on linux/ubuntu to successfully compile and run eoserv on linux.
I don't need a full blown tutorial, just some pointers.
-thanks
EDIT: or a tutorial would be great for the wiki :)
9 years, 39 weeks ago
|
kodyt

Joined: 6th Apr 2009
Posts: 2271
Re: EOSERV on Linux
You could try this old Tut. https://eoserv.net/forum/topic/2612
---
http://www.ctronic.ga
http://www.tsu.co/Deltro
https://www.reverbnation.com/deltro9
9 years, 39 weeks ago
|
perfect
Joined: 8th Jul 2009
Posts: 1424
Re: EOSERV on Linux
I did follow that guide, i ended up running into errors.
Considering EOSERV has changed so much since that tutorial i would think things have been changed.
9 years, 39 weeks ago
|
Sausage
Administrator
Joined: 26th Jul 2008
Posts: 1346
Re: EOSERV on Linux
Any typical gnu/linux system capable of compiling C++ should work fine. You'll only need mariadb connector and/or sqlite development libraries as external dependencies. Both are available in most distro's repositories.
For debian/ubuntu/mint, the following commands should download and build eoserv, assuming the gcc version in your distro is a recent enough version (current stable debian, jessie, might not be):
sudo apt-get install subversion build-essentials libmariadb-client-lgpl-dev libsqlite0-dev
svn co svn://eoserv.net/eoserv/trunk/ eoserv
cd eoserv
./configure linux
make POLL=1 MYSQL=1 SQLITE=1
9 years, 39 weeks ago
|
perfect
Joined: 8th Jul 2009
Posts: 1424
Re: EOSERV on Linux
Sausage posted: (13th Oct 2015, 01:07 am)
Any typical gnu/linux system capable of compiling C++ should work fine. You'll only need mariadb connector and/or sqlite development libraries as external dependencies. Both are available in most distro's repositories.
For debian/ubuntu/mint, the following commands should download and build eoserv, assuming the gcc version in your distro is a recent enough version (current stable debian, jessie, might not be):
sudo apt-get install subversion build-essentials libmariadb-client-lgpl-dev libsqlite0-dev
svn co svn://eoserv.net/eoserv/trunk/ eoserv
cd eoserv
./configure linux
make POLL=1 MYSQL=1 SQLITE=1
Alright, everything seems to go good until database.cpp. I'm pretty sure I'm missing a linker or something having to do with mysql. I've investigated, but after spending most of the night trying to figure it out, I've decided to post again for suggestions.
Error's: http://pastebin.com/j6BkrWja
9 years, 39 weeks ago
|
Sausage
Administrator
Joined: 26th Jul 2008
Posts: 1346
Re: EOSERV on Linux
Strange, check the output of the mariadb_config --libs command. Should look like this:
 If you're using libmysqlclient instead of mariadb, you might have to replace mariadb_config with mysql_config in Makefile.lnx.
Also make sure you write the same make command (with MYSQL=1) every time.
9 years, 39 weeks ago
|
perfect
Joined: 8th Jul 2009
Posts: 1424
Re: EOSERV on Linux
Sausage posted: (13th Oct 2015, 09:54 am)
Strange, check the output of the mariadb_config --libs command. Should look like this:
 If you're using libmysqlclient instead of mariadb, you might have to replace mariadb_config with mysql_config in Makefile.lnx.
Also make sure you write the same make command (with MYSQL=1) every time.
As you said, i did have to change mariadb_config to mysql_config.
After i began receiving:
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
after installing libssl-dev package everything compiled successfully.
I will most likely put together a wiki page on compiling on ubuntu/linux.
Thanks sausage for the tips!
9 years, 39 weeks ago
| | | | | | | |