After weeks of struggling I have decided to throw a simple HowTo in compiling under Linux.
0) install c++ compiler and supplement libraries
sudo apt-get install libssl-dev build-essential zlibc zlib-bin libidn11-dev libidn11
1) you will need a subversion package, if you use Ubuntu it would look like:
sudo apt-get install subversion
2) cd to your home dir (just type cd) and make a directory like:
mkdir polsvn
3) checkout the SVN repository (RL from #pol IRC recommends 572 release)
svn checkout -r 572 https://polserver.svn.sourceforge.net/svnroot/polserver/trunk polsvn
4) compile STLport5 (actually you can skip that now)
cd polsvn/lib/STLport5
sudo chmod u+x configure
./configure
./make
5) compile pol
cd polsvn/pol-core
6) build 32bit version of pol
sudo chmod u+x buildcore32
./buildcore32
7) done, now check polsvn/pol-core/dist
You should see files like:
pol-linuxbin-099-2012-10-21-ubuntu-dynamic.tar.gz
pol-linuxbin-099-2012-10-21-ubuntu.tar.gz
8) If you need MySQL you need to remove the comment from export USE_MYSQL=1 before compiling and use
dynamic version: pol-linuxbin-099-2012-10-21-ubuntu-dynamic.tar.gz
Also With installed MySQL a static build works also. (Tourley's comment)
pol-linuxbin-099-2012-10-21-ubuntu.tar.gz
Compiling under Linux (please Pin this Message)
Compiling under Linux (please Pin this Message)
Last edited by andenixa on Sun Oct 21, 2012 8:06 am, edited 3 times in total.
Re: Compiling under Linux (please Pin this Message)
Stlport is not used, so simply skip compilation.
And use the latest revision, or bugs will never be found :p
For mysql its not enough to use a dynamic build. You need to remove the comment from
export USE_MYSQL=1
With installed MySQL a static build works also.
And use the latest revision, or bugs will never be found :p
For mysql its not enough to use a dynamic build. You need to remove the comment from
export USE_MYSQL=1
With installed MySQL a static build works also.