====== Compile on Solaris ====== This guide was tested on clean installation of [[http://www.oracle.com/us/products/servers-storage/solaris/solaris11/overview/index.html|Oracle Solaris]] 11.2.\\ Everything is done from command line, that means everything can be done over ssh on remote server.\\ **Important note: Because of Solaris limitations is PtokaX compiled without password hashing feature. When you have Registered Users with hashed password, then they can't be used on Solaris!** ==== 1. Prerequisites. ==== For PtokaX compile you need **g++** (c++ compiler) and **Lua** (programming language used for scripting).\\ They can be installed using package manager **(Note: to install packages using package manager you need root permissions)**. * Install them with command: **pkg install gcc-dev lua** ==== 2. Downloading source and compile. ==== * **a. PtokaX source**\\ Download it with command: **wget** http://www.PtokaX.org/files/0.5.2.2-nix-src.tgz\\ Unpack downloaded archive with command: **tar -xf 0.5.2.2-nix-src.tgz**\\ Now we have in actual directory new directory PtokaX. Go to that directory with command: **cd PtokaX** * **b. PtokaX compile**\\ Compile PtokaX with command: **gmake solaris** ==== 3. Setup and run. ==== * **a. **[[guides:unix_basic_setup|Basic setup.]] * **b. **[[guides:unix_run|How to run as console application or daemon.]]