Compiling PvPGN 1.8.3 + PvPGN-Support 1.3 from source on FreeBSD 7

source http://pvpgn.imigi.ro/index.php/Install_on_unix_from_sources
————————————————————————————————
This is a quick simple guide how to compile pvpgn-1.8.3 from source on FreeBSD 7.0

First we need to download the source file from

# cd /usr/local/src
# wget -c http://prdownload.berlios.de/pvpgn/pvpgn-1.8.3.tar.gz
# wget -c http://prdownload.berlios.de/pvpgn/pvpgn-support-1.3.tar.gz
# tar xvfz pvpgn-1.8.3.tar.gz
# tar xvfz pvpgn-support-1.3.tar.gz
# cd pvpgn-1.8.3/src

# ./configure –prefix=/usr/local/pvpgn –with-mysql

Then we compile using gmake
Klo gmakenya not found, maka harus diinstall terlebih dahulu di sysinstall

# gmake

Once compiled correctly with no errors we need to gmake install

# gmake install

Salin file ekstrakan pvpgn-support.
# cd ../../
# cd pvpgn-support-1.3
# cp * /usr/local/pvpgn/var/files

Now we sort out the permissions.
# cd /usr/local/pvpgn
# chown -R root .
# chgrp -R games .
# chown -R games var

Selanjutnya yaitu menambahkan database dan user untuk pvpgn menggunakan mysql.
Pastikan bahwa mysql-server sudah jalan, lalu ketik perintah berikut.
# /usr/local/mysql/bin/mysql –u root –p

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.67-log Source distribution

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql>

mysql>CREATE DATABASE pvpgn;
mysql>GRANT ALL PRIVILEGES ON pvpgn.* TO ‘pvpgn’@’localhost’ IDENTIFIED BY ‘password_pvpgn’ WITH GRANT OPTION;
mysql>quit

Selanjutnya adalah ubah konfigurasi bnetd.conf agar support menggunakan mysql-server.
# ee etc/bnetd.conf

Ubah sesuai dengan dibawah ini.
# effective_user = games
# effective_group = games
storage_path = file:mode=plain;dir=
#pidfile = /usr/local/pvpgn/var/bnetd.pid

Menjadi.
effective_user = games
effective_group = games
#storage_path = file:mode=plain;dir=
pidfile = /usr/local/pvpgn/var/bnetd.pid

Dan tambahkan.
storage_path = sql:mode=mysql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=password_pvpgn;default=0;prefix=pvpgn_

Untuk konfigurasi yang lain dapat diubah sesuai dengan keinginan.

Now that is all done we are ready to start PvPGN Server for the first time.
# cd /usr/local/pvpgn
# sbin/bnetd

Apabila muncul error.
/libexec/ld-elf.so.1: Shared object “libmysqlclient.so.15” not found, required by “bnetd”

Maka, buat link libmysqlclient.so.15 ke direktori /lib
ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.15 /lib

Cek apakah PvPGN Server sudah jalan atau belum.
# ps axu | grep bnetd
games 93271 0.0 0.4 4780 3924 p0 S 6:41AM 0:00.05 sbin/bnetd
root 93274 0.0 0.1 1632 1004 p0 RL+ 6:41AM 0:00.00 grep bnetd

If you would like to start PvPGN when FreeBSD starts simply add a line to your /etc/rc.local file.

# echo “/usr/local/pvpgn/sbin/bnetd” >> /etc/rc.local

And we are done!

Aturrr dahhhh

Iklan
Ditulis dalam Tutorial. 4 Comments »

4 Tanggapan to “Compiling PvPGN 1.8.3 + PvPGN-Support 1.3 from source on FreeBSD 7”

  1. Dadang Says:

    saya pakai ubuntu 9.10 saya coba mengetikan perintah gmake untuk install postgres tapi keluar error : command not found, itu kenapa ya?mohon pencerahannya

  2. a Says:

    kk bsa bagi” scripts?


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: