FreeBSD10: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
note:tested on 32bit release | ''note:tested on 32bit release'' | ||
Install packages | Install packages | ||
Line 35: | 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 | ||
mv sql_db.cpp sql_db.cpp.bak | |||
sed '/unsigned int errno/s/int errno/' > sql_db.cpp | sed '/unsigned int errno/s/int errno/' > sql_db.cpp | ||
gmake | gmake | ||
gmake install | gmake install |
Revision as of 13:43, 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 mv sql_db.cpp sql_db.cpp.bak sed '/unsigned int errno/s/int errno/' > sql_db.cpp gmake gmake install