[SR-Users] Installing in a non-standard path

Daniel Gonzalez gonvaled at gonvaled.com
Mon Apr 9 21:54:05 CEST 2012


Thanks, this helped. It seems I am missing something related to mysql
and xmlrpc.

» /tmp/my/very/strange/path/sbin/ser -c
loading modules under
/tmp/my/very/strange/path/lib/ser/modules:/tmp/my/very/strange/path/lib/ser/modules_s
 0(9747) ERROR: <core> [sr_module.c:511]: ERROR: load_module: could
not find module <db_mysql> in
</tmp/my/very/strange/path/lib/ser/modules:/tmp/my/very/strange/path/lib/ser/modules_s>
 0(9747) : <core> [cfg.y:3416]: parse error in config file
/tmp/my/very/strange/path/etc/ser/ser.cfg, line 95, column 12-21:
failed to load module
 0(9747) ERROR: <core> [sr_module.c:511]: ERROR: load_module: could
not find module <xmlrpc> in
</tmp/my/very/strange/path/lib/ser/modules:/tmp/my/very/strange/path/lib/ser/modules_s>
 0(9747) : <core> [cfg.y:3416]: parse error in config file
/tmp/my/very/strange/path/etc/ser/ser.cfg, line 115, column 12-19:
failed to load module
ERROR: bad config file (2 errors)

And this happens with a standard install: I have not requested
anything related to mysql.
This is the script I am using to install ser:

install_sip_ser_ ( ) {
    cd /tmp
    git clone --depth 1 git://git.sip-router.org/sip-router sip-router
    cd sip-router
    git checkout -b 3.1 origin/3.1
    local prefix=/tmp/my/very/strange/path
    mkdir -p $prefix
    sudo apt-get install -y flex
    sudo apt-get install -y docbook2x
    make proper
    make cfg     prefix=$prefix
    make all     prefix=$prefix
    make install prefix=$prefix
}




On Mon, Apr 9, 2012 at 11:59 AM, Daniel-Constantin Mierla
<miconda at gmail.com> wrote:
>
> Hello,
>
> if you provide -c as command line parameter, the line number where an error is detected should be printed.
>
> On the other hand, for sure when building and installing Kamailio flavour with custom installation path, the modules' path in default configuration file should be updated:
>
> http://www.kamailio.org/wiki/install/3.2.x/git#tuning_makefiles
>
> You don't have to do anything anymore, I was using it a lot like this -- if got broken somehow, it has to be fixed.
>
> Cheers,
> Daniel
>
>
> On 4/7/12 11:04 PM, Daniel Gonzalez wrote:
>>
>> Thanks Alex,
>>
>> In my case it is ser.cfg, not kamilio.cfg.
>>
>> I have made a single correction: I have changed this:
>>
>> # ------------------ module loading ----------------------------------
>>
>> #!ifdef LOCAL_TEST_RUN
>> loadpath "modules:modules_s"
>> #!else
>> loadpath "/usr/lib/ser/modules:/usr/lib/ser/modules_s"
>> #!endif
>>
>> To this:
>>
>> # ------------------ module loading ----------------------------------
>>
>> #!ifdef LOCAL_TEST_RUN
>> loadpath "modules:modules_s"
>> #!else
>> loadpath "/tmp/my/very/strange/path/lib/ser/modules:/tmp/my/very/strange/path/lib/ser/modules_s"
>> #!endif
>>
>> And the situation has improved. I have gone from:
>>
>> » /tmp/my/very/strange/path/sbin/ser
>> loading modules under /usr/lib/ser/modules:/usr/lib/ser/modules_s
>> ERROR: bad config file (34 errors)
>>
>> To:
>>
>> » /tmp/my/very/strange/path/sbin/ser
>> loading modules under
>> /tmp/my/very/strange/path/lib/ser/modules:/tmp/my/very/strange/path/lib/ser/modules_s
>> ERROR: bad config file (2 errors)
>>
>> But still two errors, which I can not find. How can I tell the ser
>> binary to help me with pinpointing the errors?
>> I have tried to start with -ddd, but it has not helped.
>>
>> By the way, the other configuration files are:
>>
>> etc/
>> `-- ser
>>     |-- dictionary.sip-router
>>     |-- ser-advanced.cfg
>>     |-- ser-basic.cfg
>>     `-- ser.cfg
>>
>> And they seem to be fine. There was a correct reference to the right
>> installation path in ser-basic.cfg:
>>
>> # ------------------ module loading ----------------------------------
>>
>> #!ifdef LOCAL_TEST_RUN
>> loadpath "modules:modules_s"
>> #!else
>> loadpath "/tmp/my/very/strange/path/lib/ser/modules:/tmp/my/very/strange/path/lib/ser/modules_s"
>> #!endif
>>
>>
>> On Sat, Apr 7, 2012 at 9:54 PM, Alex Balashov<abalashov at evaristesys.com>  wrote:
>>>
>>> The prefix only specifies the destination for the build targets. As far as things like module paths, they are not affected. You will have to change them manually in kamailio.cfg.  However, the good news is that there aren't a whole lot of paths to change; you really only need to change it in kamailio,cfg, and in any init scripts.
>>>
>>> --
>>> Alex Balashov - Principal
>>> Evariste Systems LLC
>>> 235 E Ponce de Leon Ave
>>> Suite 106
>>> Decatur, GA 30030
>>> Tel: +1-678-954-0670
>>> Fax: +1-404-961-1892
>>> Web: http://www.evaristesys.com/, http://www.alexbalashov.com
>>>
>>> Daniel Gonzalez<gonvaled at gonvaled.com>  wrote:
>>>
>>>> Hello,
>>>>
>>>> This is my first message to this list.
>>>>
>>>> I have installed sip-router as follows (my system is Ubuntu 10.04):
>>>>
>>>>     cd /tmp
>>>>     git clone --depth 1 git://git.sip-router.org/sip-router sip-router
>>>>     cd sip-router
>>>>     git checkout -b 3.1 origin/3.1
>>>>     local prefix=/tmp/my/very/strange/path
>>>>     mkdir -p $prefix
>>>>     sudo apt-get install -y flex
>>>>     sudo apt-get install -y docbook2x
>>>>     make proper
>>>>     make cfg     prefix=$prefix
>>>>     make all     prefix=$prefix
>>>>     make install prefix=$prefix
>>>>
>>>> And this has worked as expected.
>>>>
>>>> Now I try to start the daemon:
>>>>
>>>>    $ /tmp/my/very/strange/path/sbin/ser
>>>>    loading modules under /usr/lib/ser/modules:/usr/lib/ser/modules_s
>>>>
>>>> What can I do so that my non-standard path is fully recognized by all
>>>> sip router tools?
>>>>
>>>> Thanks,
>>>> Daniel Gonzalez
>>>>
>>>> _______________________________________________
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>> sr-users at lists.sip-router.org
>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users at lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
> Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
> http://www.asipto.com/index.php/kamailio-advanced-training/
>



More information about the sr-users mailing list