Compile Campcaster
Ambil source code campcaster terbaru di
http://sourceforge.net/project/showfiles.php?group_id=136949 http://sourceforge.net/project/showfiles.php?group_id=136949&package_id=212099&release_id=550863
Paket Pendukung
Jika anda menggunakan Ubuntu Fiesty (7.04), anda perlu melakukan
# sudo apt-get install binutils build-essential automake1.8 libtool pkg-config \ patch doxygen tar gzip unzip bzip2 curl bison flex graphviz lcov \ subversion ccache xsltproc flawfinder pwgen \ unixodbc-dev odbc-postgresql fontconfig libfontconfig1-dev libpng12-dev \ libjpeg62-dev openssl libssl-dev libxml2-dev libpopt-dev alsa-base \ libasound2-dev libid3tag0-dev libmad0-dev libogg-dev libvorbis-dev libbz2-dev \ libtar-dev libcurl3-dev libboost-date-time-dev libgtk2.0-dev libgtkmm-2.4-dev \ libglademm-2.4-dev libxml++2.6-dev libicu36-dev libcppunit-dev \ apache2 php5-pgsql libapache2-mod-php5 php-pear php5-gd postgresql-8.2
Jika anda menggunakan Ubuntu Gutsy (7.10), anda perlu melakukan
# sudo apt-get install binutils build-essential automake1.8 libtool pkg-config \ patch doxygen tar gzip unzip bzip2 curl bison flex graphviz lcov \ subversion ccache xsltproc flawfinder pwgen \ unixodbc-dev odbc-postgresql fontconfig libfontconfig1-dev libpng12-dev \ libjpeg62-dev openssl libssl-dev libxml2-dev libpopt-dev alsa-base \ libasound2-dev libid3tag0-dev libmad0-dev libogg-dev libvorbis-dev libbz2-dev \ libtar-dev libcurl4-openssl-dev libboost-date-time-dev libgtk2.0-dev libgtkmm-2.4-dev \ libglademm-2.4-dev libxml++2.6-dev libicu36-dev libcppunit-dev \ apache2 php5-pgsql libapache2-mod-php5 php-pear php5-gd postgresql-8.2
Jika anda menggunakan Ubuntu Hardy (8.04), anda perlu melakukan
# sudo apt-get install binutils build-essential automake1.8 libtool pkg-config \ patch doxygen tar gzip unzip bzip2 curl bison flex graphviz lcov \ subversion ccache xsltproc flawfinder pwgen \ unixodbc-dev odbc-postgresql fontconfig libfontconfig1-dev libpng12-dev \ libjpeg62-dev openssl libssl-dev libxml2-dev libpopt-dev alsa-base \ libasound2-dev libid3tag0-dev libmad0-dev libogg-dev libvorbis-dev libbz2-dev \ libtar-dev libcurl4-openssl-dev libboost-date-time-dev libgtk2.0-dev libgtkmm-2.4-dev \ libglademm-2.4-dev libxml++2.6-dev libicu-dev libcppunit-dev \ apache2 php5-pgsql libapache2-mod-php5 php-pear php5-gd postgresql-8.3
Beri Akses Useranda ke Apache Web Server
Beri akses ke Apache Web Server <useranda> yang akan mengcompile Campcaster
$ sudo usermod -G www-data -a <useranda>
Pastikan '-a' di ketik dengan benar, kesalahan menulis perintah akan membuat system anda tidak stabil. Cara lain yang lebih sopan adalah menggunakan mode grafis melalui System -> Administration -> Users and Groups masukan <useranda> ke group 'www-data' yang digunakan oleh Apache Web Server.
Ubah Option Userdir Apache
Masuk ke directory /etc/apache2/mods-available Edit file userdir.conf
# vi /etc/apache2/mods-available/userdir.conf
Ubah kalimat
AllowOverride FileInfo AuthConfig Limit
Menjadi
AllowOverride FileInfo AuthConfig Limit Options Indexes
Aktifkan php5 & userdir
Jika anda menggunakan Fiesty anda perlu meng-enable php5 & userdir menggunakan perintah
# cd /etc/apache2/mods-enabled # ln -s ../mods-available/php5.* . # ln -s ../mods-available/userdir.* .
Untuk Gutsy & Hardy ada baiknya dilakukan hal yang sama ..
Modifikasi Option PHP5
Pindah ke directory /etc/php5/apache2 Edit file php.ini
# cd /etc/php5/apache2 # vi php.ini
Ubah
error_reporting = E_ALL & ~E_NOTICE
Menjadi
error_reporting = E_ERROR
Ubah
post_max_size = 8M
Menjadi
post_max_size = 108M
Ubah
upload_max_filesize = 2M
Menjadi
upload_max_filesize = 100M
Pastikan Ada Dukungan PostgresQL di PHP
Edit file /etc/php5/cli/php.ini
# vi /etc/php5/cli/php.ini
Pastikan ada
extension=pgsql.so
Restart Apache Web Server
Restart Apache Web Server
# /etc/init.d/apache2 restart
Aktifkan ccache
Langkah ini optional, masuk ke home directory anda
$ mkdir bin $ cd bin $ ln -s /usr/bin/ccache cc $ ln -s /usr/bin/ccache gcc $ ln -s /usr/bin/ccache g++