Difference between revisions of "FreeBSD10"

From VoIPmonitor.org
Jump to navigation Jump to search
(Created page with "Install packages pkg install libexecinfo libpcap unixODBC mysql55-client libvorbis libogg vorbis-tools gmake subversion wget bash libssh git mysql56-server-5.6.21 autotools ...")
 
Line 1: Line 1:
 +
note:tested on 32bit release
 +
 
Install packages
 
Install packages
 
  pkg install libexecinfo libpcap unixODBC mysql55-client libvorbis libogg vorbis-tools gmake subversion wget bash libssh git mysql56-server-5.6.21 autotools
 
  pkg install libexecinfo libpcap unixODBC mysql55-client libvorbis libogg vorbis-tools gmake subversion wget bash libssh git mysql56-server-5.6.21 autotools
Line 33: Line 35:
 
  mv tools.cpp tools.cpp.bak
 
  mv tools.cpp tools.cpp.bak
 
  sed '/json\/json.h/s//json-c\/json.h/' tools.cpp.bak > tools.cpp
 
  sed '/json\/json.h/s//json-c\/json.h/' tools.cpp.bak > tools.cpp
 +
 +
unsigned int errno = mysql_errno(this->hMysql);
 +
sed '/unsigned int errno/s/int errno/' > sql_db.cpp
 +
 
  gmake
 
  gmake
 
  gmake install
 
  gmake install

Revision as of 14:03, 21 October 2014

note:tested on 32bit release

Install packages

pkg install libexecinfo libpcap unixODBC mysql55-client libvorbis libogg vorbis-tools gmake subversion wget bash libssh git mysql56-server-5.6.21 autotools

Startup mysql

echo mysql_enable=\"YES\" >> /etc/rc.conf
vim /var/db/mysql/my.cnf 
service mysql-server start

Download and install snappy

cd /usr/src
wget --no-check-certificate https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz
tar xzf snappy-1.1.1.tar.gz
cd snappy-1.1.1
./configure
make
make install

Download and install json-c

cd /usr/src
git clone https://github.com/json-c/json-c.git;
cd json-c;
sh autogen.sh;
./configure; make; make install
ln -s /usr/local/lib/libjson-c.so.2.0.0 /usr/lib/libjson.so
/etc/rc.d/ldconfig restart

Download and install voipmonitor

cd /usr/src
git clone git://git.code.sf.net/p/voipmonitor/git voipmonitor-git
cd voipmonitor-git
./configure
ln -s /usr/bin/c++ /usr/sbin/g++
mv tools.cpp tools.cpp.bak
sed '/json\/json.h/s//json-c\/json.h/' tools.cpp.bak > tools.cpp
unsigned int errno = mysql_errno(this->hMysql);
sed '/unsigned int errno/s/int errno/' > sql_db.cpp
gmake
gmake install