User Tools

Site Tools


install:3.2.x:debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
install:3.2.x:debian [2011/10/31 16:24]
193.0.26.151 created
install:3.2.x:debian [2013/04/24 12:04] (current)
klaus3000
Line 8: Line 8:
  
 Step 1-5 can be executed with normal user privileges, root privileges are only required for stop 6. Step 1-5 can be executed with normal user privileges, root privileges are only required for stop 6.
-1. Get the Kamailio source code+ 
 +===== 1. Get the Kamailio source code =====
  
 Either download a tar-ball or checkout the respective Kamilio branch from git. Either download a tar-ball or checkout the respective Kamilio branch from git.
  
  
-2. Configure the build process+===== 2. Configure the build process =====
  
 Debian packages are built with the command "make deb". But this command is also used to build "ser" style Debian packages. Therefore, you have to advise the build process to build the "Kamailio" release when executing "make deb". This is done by setting the FLAVOR to "kamailio" when creating the build configuration. Debian packages are built with the command "make deb". But this command is also used to build "ser" style Debian packages. Therefore, you have to advise the build process to build the "Kamailio" release when executing "make deb". This is done by setting the FLAVOR to "kamailio" when creating the build configuration.
Line 23: Line 24:
 This instructs the build process to use pkg/kamailio/deb/debian/rules for creating the Debian packages. This instructs the build process to use pkg/kamailio/deb/debian/rules for creating the Debian packages.
  
 +===== 3. Choose the Debian version =====
  
-3. (optional) Add build options to the rules file+Some new modules require libraries which are not in all Debian version. For example libjson0-dev is not available for Debian Lenny (5.0). In this case you either have to backport the required libraries to your Debian version or use the respective packaging files. In the second case, the respective modules will automatically disabled. 
 + 
 +For example if you want to build for Debian Squeeze and do not need the troublesome modules: 
 + 
 +  cd pkg/kamailio/deb 
 +  mv debian debian-orig 
 +  ln -s squeeze debian 
 +  cd ../../.. 
 + 
 +===== 4. (optional) Add build options to the rules file =====
  
 If you want to activate certain build features, you can specify them in the Debian rules file. If you want to activate certain build features, you can specify them in the Debian rules file.
Line 39: Line 50:
 For example in above example the custom build parameter "STUN=1" was added. For example in above example the custom build parameter "STUN=1" was added.
  
-4. Build the packages+===== 5. Build the packages =====
  
   make deb   make deb
Line 45: Line 56:
 If the build process fails due to missing dependencies install them via "apt-get install ....." and try "make deb" again. If the build process fails due to missing dependencies install them via "apt-get install ....." and try "make deb" again.
  
-5. Done. +If the build succeeds, the packages are located in ''../''
- +
-The packages are located in ''../''+
  
-6. Install Kamailio+===== 6. Install Kamailio =====
  
 Install Kamailio and the relevant Kamailio modules. For example to install Kamailio for MySQL and often needed modules: Install Kamailio and the relevant Kamailio modules. For example to install Kamailio for MySQL and often needed modules:
install/3.2.x/debian.1320074682.txt.gz · Last modified: 2011/10/31 16:24 by 193.0.26.151