1. Install Ubuntu 14.04
2. Install required packages
Code: Select all
sudo apt-get install -y make gcc build-essential bison flex zlibc zlib-bin libncurses5-dev expat libexpat1-dev gettext libzip-dev libzip2 mysql-client libmysql++-dev libcurl3 libuuid1 uuid-dev libelf-dev libelf1 libdwarf-dev libncursesw5 libmysqlclient18 libmysqld-dev libmysql++-dev libcurl4-openssl-dev
sudo apt-get install -y g++ openjdk-7-jdk fpc python python3 ruby2.0
sudo apt-get install -y kernel-patch-scripts patch strace subversion gdb libssl-dev sendmail
Code: Select all
sudo adduser ejudge
Code: Select all
sudo mkdir -p /home/judges
sudo chown ejudge:ejudge /home/judges
sudo chmod 755 /home/judges
Example of configuration
Code: Select all
./configure --prefix=/home/ejudge/inst-ejudge \
--enable-contests-home-dir=/home/judges \
--with-httpd-htdocs-dir=/var/www \
--with-httpd-cgi-bin-dir=/usr/lib/cgi-bin \
--with-rest \
--enable-ajax
Code: Select all
sudo ln -s /home/ejudge/inst-ejudge/bin/ejudge-control /usr/bin/ejudge-control