Compiling and Installing Yate from SVN on Debian
From Yate Documentation
(Difference between revisions)
Line 40: | Line 40: | ||
checking for g++... g++ | checking for g++... g++ | ||
... | ... | ||
+ | |||
+ | Look at the configure output and check that all features you need are detected. If not, install what is missing. | ||
+ | |||
+ | |||
+ | ===Compile the sources=== | ||
+ | |||
+ | Use make command: | ||
+ | |||
+ | make | ||
+ | make -C ./engine all | ||
+ | make[1]: Entering directory `/usr/src/yate/engine' | ||
+ | g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -DATOMIC_OPS -c TelEngine.cpp | ||
+ | g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c ObjList.cpp | ||
+ | g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c HashList.cpp | ||
+ | ........ | ||
+ | |||
+ | ===Starting Yate=== | ||
+ | |||
+ | Check version of Yate: | ||
+ | |||
+ | ./run -V | ||
+ | Yate 4.2.1 alpha1 | ||
+ | |||
+ | Start Yate: | ||
+ | |||
+ | ./run -vvvvvv -CDo | ||
+ | ... | ||
+ | Yate engine is initialized and starting up on debian | ||
+ | ... | ||
+ | |||
+ | Next step will be to learn more about [[configuration files]] and the [[modules]] to configure Yate for your needs. | ||
'''See also''' | '''See also''' | ||
+ | *[[Starting Yate]] | ||
+ | *[[Stopping and restarting Yate]] | ||
*[[Compiling and installing Yate on FreeBSD]] | *[[Compiling and installing Yate on FreeBSD]] |
Revision as of 12:17, 12 December 2012
Follow the steps bellow to install and compile the latest version of Yate from SVN source on Debian system.
Contents |
Prerequisites
apt-get install build-essential The following NEW packages will be installed: build-essential dpkg-dev g++ g++-4.4 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libstdc++6-4.4-dev libtimedate-perl
apt-get install autoconf The following NEW packages will be installed: autoconf automake autotools-dev
apt-get install subversion The following NEW packages will be installed: libapr1 libaprutil1 libserf-0-0 libsvn1 subversion
Get the sources
Once you have the svn client installed getting the sources is a simple command:
cd /usr/src svn checkout http://voip.null.ro/svn/yate/trunk yate cd yate
This will fetch a copy of the SVN TRUNK in a new directory called yate.
Prepare and configure the sources
./autogen.sh Finished! Now run configure. If in doubt run ./configure --help
This script will warn if autoconf is missing and will prepare a configure script for you if everything is OK. You can now run the configure script:
./configure checking for local operating system type... Linux checking for libraries directory name... lib checking for g++... g++ ...
Look at the configure output and check that all features you need are detected. If not, install what is missing.
Compile the sources
Use make command:
make make -C ./engine all make[1]: Entering directory `/usr/src/yate/engine' g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -DATOMIC_OPS -c TelEngine.cpp g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c ObjList.cpp g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c HashList.cpp ........
Starting Yate
Check version of Yate:
./run -V Yate 4.2.1 alpha1
Start Yate:
./run -vvvvvv -CDo ... Yate engine is initialized and starting up on debian ...
Next step will be to learn more about configuration files and the modules to configure Yate for your needs.
See also