User Tools

Site Tools


install:devel:git

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
install:devel:git [2015/01/03 18:30]
miconda [2. Getting sources from GIT]
install:devel:git [2018/02/28 13:38]
miconda [1. Prerequisites]
Line 3: Line 3:
 <code> <code>
 Main author: Main author:
-   Daniel-Constantin Mierla <miconda (at) gmail.com>+   Daniel-Constantin Mierla 
 + 
 +Support: <sr-users@lists.sip-router.org>
 </code> </code>
  
Line 24: Line 26:
  
   * __git__ client: apt-get install git-core - it is recommended to have a recent version, if your Linux distro has an old version, you can download newer one from: http://git-scm.com/   * __git__ client: apt-get install git-core - it is recommended to have a recent version, if your Linux distro has an old version, you can download newer one from: http://git-scm.com/
-  * __gcc__ compiler: apt-get install gcc+  * __gcc__ and __g++__ compilers: apt-get install gcc g++
   * __flex__ - apt-get install flex   * __flex__ - apt-get install flex
   * __bison__ - apt-get install bison   * __bison__ - apt-get install bison
Line 34: Line 36:
     * __libxml2__ - apt-get install libxml2-dev     * __libxml2__ - apt-get install libxml2-dev
     * __libpcre3__ - apt-get install libpcre3-dev     * __libpcre3__ - apt-get install libpcre3-dev
 +
 +**Important Note**: starting with version 4.3.0, Kamailio uses the directory **/var/run/kamailio/** for creating FIFO and UnixSocket control files. You have to complete the section related to installation of init.d script for creating /var/run/kamailio even if you plan to start Kamailio manually from command line. The alternative is to set different paths via parameters of **mi_fifo** and **ctl** modules.
  
 ===== 2. Getting sources from GIT ===== ===== 2. Getting sources from GIT =====
Line 47: Line 51:
  
 <code> <code>
-  git clone --depth 1 --no-single-branch git://git.kamailio.org/kamailio kamailio+  git clone --depth 1 --no-single-branch https://github.com/kamailio/kamailio kamailio
   cd kamailio   cd kamailio
 </code> </code>
Line 74: Line 78:
 Save the **modules.lst** and exit. Save the **modules.lst** and exit.
  
-NOTE: this is one mechanism to enable modules which are not compiled by default, such as lcr, dialplan, presence -- add the modules to **include_modules** variable inside the **modules.lst** file.+**NOTE**: this is one mechanism to enable modules which are not compiled by default, such as lcr, dialplan, presence -- add the modules to **include_modules** variable inside the **modules.lst** file.
  
 Alternative is to set 'include_modules' variable to specify what extra modules to be included for compilation when building Makefile cfg: Alternative is to set 'include_modules' variable to specify what extra modules to be included for compilation when building Makefile cfg:
Line 82: Line 86:
 </code> </code>
  
-If you want to install everything in one directory (so you can delete all installed files at once), say /usr/local/kamailio-devel, then set PREFIX variable to the install path in 'make cfg ...' command:+**NOTE**: If you want to install everything in one directory (so you can delete all installed files at once), say /usr/local/kamailio-devel, then set PREFIX variable to the install path in 'make cfg ...' command:
  
 <code> <code>
Line 92: Line 96:
   * http://sip-router.org/wiki/tutorials/makefile-system   * http://sip-router.org/wiki/tutorials/makefile-system
  
-NOTE: Previous release series 3.x.x used FLAVOUR mechanism to set the name of the application to **kamailio**. Starting with 4.0.0, the default is **kamailio**. From now on, if you want to build **ser** flavour, use **FLAVOUR=ser** in the make command to generate the build configs.+**NOTE**: Previous release series 3.x.x used FLAVOUR mechanism to set the name of the application to **kamailio**. Starting with 4.0.0, the default is **kamailio**. From that version, if you want to build **ser** flavour, use **FLAVOUR=ser** in the make command to generate the build configs.
 ===== 4. Compile Kamailio ===== ===== 4. Compile Kamailio =====
  
Line 129: Line 133:
   * __kamdbctl__ - script to create and manage the Databases   * __kamdbctl__ - script to create and manage the Databases
   * __kamctl__ - script to manage and control Kamailio SIP server   * __kamctl__ - script to manage and control Kamailio SIP server
-  * __sercmd__ - CLI - command line tool to interface with Kamailio SIP server+  * __kamcmd__ - CLI - command line tool to interface with Kamailio SIP server
  
 To be able to use the binaries from command line, make sure that '/usr/local/sbin' is set in PATH environment variable. You can check that with 'echo $PATH'. If not and you are using 'bash', open '/root/.bash_profile' and at the end add: To be able to use the binaries from command line, make sure that '/usr/local/sbin' is set in PATH environment variable. You can check that with 'echo $PATH'. If not and you are using 'bash', open '/root/.bash_profile' and at the end add:
Line 164: Line 168:
 </code> </code>
  
-In case you set the PREFIX variable in 'make cfg ...' command, then replace **/usr/local** in all paths above with the value of PREFIX in order to locate the files installed.+**NOTE:**: In case you set the PREFIX variable in 'make cfg ...' command, then replace **/usr/local** in all paths above with the value of PREFIX in order to locate the files installed.
 ===== 7. Create MySQL database ===== ===== 7. Create MySQL database =====
  
install/devel/git.txt · Last modified: 2019/01/11 17:20 by pepelux