[SR-Users] [Kamailio-4.1.4]Make Install Error
Djamel Bahamid
djamel.bahamid at inserm.fr
Fri Aug 8 17:13:52 CEST 2014
Hi Daniel,
I always have the same error, even with the version 4.1.5, I understand
nothing more and nevertheless I followed all the steps indicated on your
site.
I could share my screen (https://webconf.inserm.fr /cafe ==> Entered as
guess) so as to see exactly the results of the executed commands.
Thank you again for your help;
Best Regards,
Djamel BAHAMID.
Le 06/08/2014 18:40, Daniel-Constantin Mierla a écrit :
> Hello,
>
> did you add the ; after the part:
>
> mv -f /usr/local/etc/kamailio/kamailio.cfg.sample \
> /usr/local/etc/kamailio/kamailio.cfg; \
>
> ?
>
> Because it is not in the Makefile from our repository.
>
> Cheers,
> Daniel
>
> On 06/08/14 18:23, Djamel Bahamid wrote:
>> Hello,
>>
>> This our result, after removing '@' before 'if' and 'for' from the
>> target 'install-cfg' (starting at line 757)
>>
>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Wed 06/08/2014 18:14:55]
>> # make install-cfg
>> if [ -f etc/kamailio.cfg ]; then \
>> sed -e
>> "s#/usr/[^:]*lib/kamailio/modules\([:/\"]\)#/usr/local/lib64/kamailio/modules\1#g"
>> \
>> -e
>> "s#/usr/local/etc/kamailio/#/usr/local/etc/kamailio/#g" \
>> < etc/kamailio.cfg \
>> >
>> /usr/local/etc/kamailio/kamailio.cfg.sample; \
>> chmod 644
>> /usr/local/etc/kamailio/kamailio.cfg.sample; \
>> if [ -z "" -a \
>> ! -f
>> /usr/local/etc/kamailio/kamailio.cfg ]; then \
>> mv -f
>> /usr/local/etc/kamailio/kamailio.cfg.sample \
>> /usr/local/etc/kamailio/kamailio.cfg; \; fi; \
>> fi
>> /bin/sh: -c: line 11: syntax error: unexpected end of file
>> make: *** [install-cfg] Error 2
>>
>> Best Regards,
>>
>> Djamel BAHAMID.
>>
>> Le 06/08/2014 17:18, Daniel-Constantin Mierla a écrit :
>>> I tried on my debian server and works ok. I have also bash.
>>>
>>> Can you edit the Makefile and remove '@' before 'if' and 'for' from
>>> the target 'install-cfg' (starting at line 757) to see what commands
>>> are executed?
>>>
>>> Cheers,
>>> Daniel
>>>
>>> On 05/08/14 19:01, Djamel Bahamid wrote:
>>>> Hello,
>>>>
>>>> This is the result :
>>>>
>>>> # make install-cfg
>>>> /bin/sh: -c: line 18: syntax error near unexpected token `fi'
>>>> /bin/sh: -c: line 18: ` fi ; \'
>>>> make: *** [install-cfg] Error 2
>>>>
>>>> Best Regards,
>>>>
>>>> Djamel BAHAMID.
>>>>
>>>>
>>>> Le 05/08/2014 17:32, Daniel-Constantin Mierla a écrit :
>>>>> Hello,
>>>>>
>>>>> can you try next command?
>>>>>
>>>>> make install-cfg
>>>>>
>>>>> Cheers,
>>>>> Daniel
>>>>>
>>>>> On 05/08/14 16:14, Djamel Bahamid wrote:
>>>>>> Hello,
>>>>>>
>>>>>> We resumed your procedure such as it is described on your site,
>>>>>> and we compiled with the debug mode, we reproduced the same
>>>>>> error, below the executed commands and their results :
>>>>>>
>>>>>> # make -d install
>>>>>>
>>>>>> ...
>>>>>> ...
>>>>>> ...
>>>>>> Trying pattern rule with stem `install-share'.
>>>>>> Rejecting impossible implicit prerequisite `install-share.mod'.
>>>>>> Trying pattern rule with stem `install-share'.
>>>>>> Trying implicit prerequisite `install-share.sh'.
>>>>>> Looking for a rule with intermediate file `install-share.sh'.
>>>>>> Avoiding implicit rule recursion.
>>>>>> Trying pattern rule with stem `install-share.sh'.
>>>>>> Trying implicit prerequisite `install-share.sh,v'.
>>>>>> Trying pattern rule with stem `install-share.sh'.
>>>>>> Trying implicit prerequisite `RCS/install-share.sh,v'.
>>>>>> Trying pattern rule with stem `install-share.sh'.
>>>>>> Trying implicit prerequisite `RCS/install-share.sh'.
>>>>>> Trying pattern rule with stem `install-share.sh'.
>>>>>> Trying implicit prerequisite `s.install-share.sh'.
>>>>>> Trying pattern rule with stem `install-share.sh'.
>>>>>> Trying implicit prerequisite `SCCS/s.install-share.sh'.
>>>>>> No implicit rule found for `install-share'.
>>>>>> Finished prerequisites of target file `install-share'.
>>>>>> Must remake target `install-share'.
>>>>>> Successfully remade target file `install-share'.
>>>>>> Finished prerequisites of target file `install'.
>>>>>> Must remake target `install'.
>>>>>> touch /usr/local/lib64/kamailio/modules/xprint.so
>>>>>> Putting child 0x00674f50 (install) PID 16567 on the chain.
>>>>>> Live child 0x00674f50 (install) PID 16567
>>>>>> Reaping winning child 0x00674f50 PID 16567
>>>>>> install -m 755 xprint.so /usr/local/lib64/kamailio/modules
>>>>>> Live child 0x00674f50 (install) PID 16568
>>>>>> Reaping winning child 0x00674f50 PID 16568
>>>>>> Removing child 0x00674f50 PID 16568 from chain.
>>>>>> Successfully remade target file `install'.
>>>>>> Reaping winning child 0x007954f0 PID 14626
>>>>>> Removing child 0x007954f0 PID 14626 from chain.
>>>>>> Successfully remade target file `install-modules'.
>>>>>> Finished prerequisites of target file `install-every-module'.
>>>>>> Must remake target `install-every-module'.
>>>>>> Successfully remade target file `install-every-module'.
>>>>>> Considering target file `install-cfg'.
>>>>>> File `install-cfg' does not exist.
>>>>>> Considering target file `/usr/local/etc/kamailio/'.
>>>>>> Finished prerequisites of target file
>>>>>> `/usr/local/etc/kamailio/'.
>>>>>> No need to remake target `/usr/local/etc/kamailio/'.
>>>>>> Finished prerequisites of target file `install-cfg'.
>>>>>> Must remake target `install-cfg'.
>>>>>> Putting child 0x00794240 (install-cfg) PID 16569 on the chain.
>>>>>> Live child 0x00794240 (install-cfg) PID 16569
>>>>>> Reaping winning child 0x00794240 PID 16569
>>>>>> Live child 0x00794240 (install-cfg) PID 16572
>>>>>> Reaping winning child 0x00794240 PID 16572
>>>>>> Live child 0x00794240 (install-cfg) PID 16573
>>>>>> Reaping winning child 0x00794240 PID 16573
>>>>>> Live child 0x00794240 (install-cfg) PID 16576
>>>>>> Reaping winning child 0x00794240 PID 16576
>>>>>> Live child 0x00794240 (install-cfg) PID 16577
>>>>>> /bin/sh: -c: line 18: syntax error near unexpected token `fi'
>>>>>> /bin/sh: -c: line 18: ` fi ; \'
>>>>>> Reaping losing child 0x00794240 PID 16577
>>>>>> make: *** [install-cfg] Error 2
>>>>>> Removing child 0x00794240 PID 16577 from chain.
>>>>>>
>>>>>>
>>>>>>
>>>>>> [root at gtk:/usr/local/src][Tue 05/08/2014 15:34:58]
>>>>>> # pwd
>>>>>> /usr/local/src
>>>>>> # mkdir kamailio-4.0
>>>>>> [root at gtk:/usr/local/src][Tue 05/08/2014 15:35:10]
>>>>>> # cd kamailio-4.0/
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0][Tue 05/08/2014 15:35:30]
>>>>>> # git clone --depth 1 --no-single-branch
>>>>>> git://git.sip-router.org/sip-router kamailio
>>>>>> Cloning into 'kamailio'...
>>>>>> remote: Counting objects: 35659, done.
>>>>>> remote: Compressing objects: 100% (17387/17387), done.
>>>>>> remote: Total 35659 (delta 27031), reused 24700 (delta 17867)
>>>>>> Receiving objects: 100% (35659/35659), 20.78 MiB | 3.33 MiB/s, done.
>>>>>> Resolving deltas: 100% (27031/27031), done.
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0][Tue 05/08/2014 15:35:58]
>>>>>> # cd kamailio/
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Tue 05/08/2014
>>>>>> 15:36:03]
>>>>>> # git checkout -b 4.0 origin/4.0
>>>>>> Branch 4.0 set up to track remote branch 4.0 from origin.
>>>>>> Switched to a new branch '4.0'
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Tue 05/08/2014
>>>>>> 15:36:08]
>>>>>> # CPU=core2
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Tue 05/08/2014
>>>>>> 15:38:04]
>>>>>> # make cfg
>>>>>> target architecture <x86_64>, host architecture <x86_64>
>>>>>> making config...
>>>>>> rm -f modules.lst
>>>>>> make --no-print-directory modules.lst
>>>>>> saving modules list...
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Tue 05/08/2014
>>>>>> 15:38:32]
>>>>>> # vi modules.lst
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Tue 05/08/2014
>>>>>> 15:39:15]
>>>>>> # cat modules.lst | grep include_modules
>>>>>> include_modules= db_mysql
>>>>>> modules= $(filter-out $(modules_noinc), $(addprefix modules/,
>>>>>> $(include_modules) )) $(modules_noinc)
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Tue 05/08/2014
>>>>>> 15:40:15]
>>>>>> # make all
>>>>>> generating autover.h ...
>>>>>> CC (gcc) [kamailio] action.o
>>>>>> CC (gcc) [kamailio] atomic_ops.o
>>>>>> CC (gcc) [kamailio] basex.o
>>>>>> CC (gcc) [kamailio] bit_count.o
>>>>>> CC (gcc) [kamailio] bit_scan.o
>>>>>> CC (gcc) [kamailio] cfg_core.o
>>>>>> CC (gcc) [kamailio] cfg_parser.o
>>>>>> CC (gcc) [kamailio] core_cmd.o
>>>>>> CC (gcc) [kamailio] counters.o
>>>>>> CC (gcc) [kamailio] crc.o
>>>>>> CC (gcc) [kamailio] daemonize.o
>>>>>> CC (gcc) [kamailio] data_lump.o
>>>>>> CC (gcc) [kamailio] data_lump_rpl.o
>>>>>> CC (gcc) [kamailio] dns_cache.o
>>>>>> CC (gcc) [kamailio] dprint.o
>>>>>> ...
>>>>>> ...
>>>>>> ...
>>>>>> ...
>>>>>> CC (gcc) [M xhttp.so] xhttp_mod.o
>>>>>> LD (gcc) [M xhttp.so] xhttp.so
>>>>>> CC (gcc) [M xhttp_rpc.so] xhttp_rpc.o
>>>>>> CC (gcc) [M xhttp_rpc.so] xhttp_rpc_fnc.o
>>>>>> LD (gcc) [M xhttp_rpc.so] xhttp_rpc.so
>>>>>> CC (gcc) [M xlog.so] xl_lib.o
>>>>>> CC (gcc) [M xlog.so] xlog.o
>>>>>> LD (gcc) [M xlog.so] xlog.so
>>>>>> CC (gcc) [M xprint.so] xp_lib.o
>>>>>> CC (gcc) [M xprint.so] xprint.o
>>>>>> LD (gcc) [M xprint.so] xprint.so
>>>>>>
>>>>>> [root at gtk:/usr/local/src/kamailio-4.0/kamailio][Tue 05/08/2014
>>>>>> 15:42:23]
>>>>>> # make install
>>>>>> touch /usr/local/sbin//kamailio
>>>>>> install -m 755 kamailio /usr/local/sbin/
>>>>>> make[2]: `libsrdb2.so.1.0' is up to date.
>>>>>> make[2]: `libsrdb1.so.1.0' is up to date.
>>>>>> LD (gcc) [M db_mysql.so] db_mysql.so
>>>>>> touch /usr/local/lib64/kamailio//libsrdb2.so.1.0
>>>>>> install -m 755 libsrdb2.so.1.0 /usr/local/lib64/kamailio/
>>>>>> rm -f /usr/local/lib64/kamailio//libsrdb2.so.1 \
>>>>>> /usr/local/lib64/kamailio//libsrdb2.so
>>>>>> cd /usr/local/lib64/kamailio/ ; ln -s libsrdb2.so.1.0 libsrdb2.so.1
>>>>>> cd /usr/local/lib64/kamailio/ ; ln -s libsrdb2.so.1.0 libsrdb2.so
>>>>>> touch /usr/local/lib64/kamailio//libsrdb1.so.1.0
>>>>>> install -m 755 libsrdb1.so.1.0 /usr/local/lib64/kamailio/
>>>>>> rm -f /usr/local/lib64/kamailio//libsrdb1.so.1 \
>>>>>> /usr/local/lib64/kamailio//libsrdb1.so
>>>>>> cd /usr/local/lib64/kamailio/ ; ln -s libsrdb1.so.1.0 libsrdb1.so.1
>>>>>> ...
>>>>>> ...
>>>>>> ...
>>>>>> ...
>>>>>> make[2]: `libsrdb1.so.1.0' is up to date.
>>>>>> make[2]: `libkcore.so.1.0' is up to date.
>>>>>> make[2]: `libsrutils.so.1.0' is up to date.
>>>>>> LD (gcc) [M usrloc.so] usrloc.so
>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>> touch /usr/local/lib64/kamailio/modules/usrloc.so
>>>>>> install -m 755 usrloc.so /usr/local/lib64/kamailio/modules
>>>>>> touch /usr/local/lib64/kamailio/modules/xhttp.so
>>>>>> install -m 755 xhttp.so /usr/local/lib64/kamailio/modules
>>>>>> touch /usr/local/lib64/kamailio/modules/xhttp_rpc.so
>>>>>> install -m 755 xhttp_rpc.so /usr/local/lib64/kamailio/modules
>>>>>> touch /usr/local/lib64/kamailio/modules/xlog.so
>>>>>> install -m 755 xlog.so /usr/local/lib64/kamailio/modules
>>>>>> touch /usr/local/lib64/kamailio/modules/xprint.so
>>>>>> install -m 755 xprint.so /usr/local/lib64/kamailio/modules
>>>>>> /bin/sh: -c: line 18: syntax error near unexpected token `fi'
>>>>>> /bin/sh: -c: line 18: ` fi ; \'
>>>>>> make: *** [install-cfg] Error 2
>>>>>>
>>>>>> Thank you for your help,
>>>>>>
>>>>>> Best Regards,
>>>>>>
>>>>>> Djamel BAHAMID.
>>>>>>
>>>>>> Le 05/08/2014 14:54, Daniel-Constantin Mierla a écrit :
>>>>>>> It is working ok with bash here and this is probably the most
>>>>>>> used shell.
>>>>>>>
>>>>>>> Are you sure you haven't changed the Makefile somehow?
>>>>>>>
>>>>>>> Can you try running make with verbose/debugging parameter and
>>>>>>> see if there is a hint in the output?
>>>>>>>
>>>>>>> Daniel
>>>>>>>
>>>>>>> On 05/08/14 14:36, Djamel Bahamid wrote:
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> When I execute the command echo $SHELL, I have the following
>>>>>>>> result :
>>>>>>>>
>>>>>>>> /bin/bash
>>>>>>>>
>>>>>>>> What's to be done now to avoid this error ?
>>>>>>>>
>>>>>>>> Best Regards,
>>>>>>>>
>>>>>>>> Djamel.
>>>>>>>>
>>>>>>>> Le 01/08/2014 22:13, Daniel-Constantin Mierla a écrit :
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> what is your shell? See where /sbin/sh is pointing to:
>>>>>>>>>
>>>>>>>>> ls -l /sbin/sh
>>>>>>>>>
>>>>>>>>> also, do:
>>>>>>>>>
>>>>>>>>> echo $SHELL
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Daniel
>>>>>>>>>
>>>>>>>>> On 01/08/14 18:20, Djamel Bahamid wrote:
>>>>>>>>>> Hello everybody,
>>>>>>>>>>
>>>>>>>>>> I am new on this environment ( Kamailio). I try to
>>>>>>>>>> install(settle) Kamailio 4.1.4, on an O.S Suse Sles11 SP3,
>>>>>>>>>> all the compilation took place, with the exception of the
>>>>>>>>>> installation (make install), where I obtain the following error:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>>>>>> touch /usr/local/lib64/kamailio/modules/userblacklist.so
>>>>>>>>>> install -m 755 userblacklist.so
>>>>>>>>>> /usr/local/lib64/kamailio/modules
>>>>>>>>>> make[2]: `libkmi.so.1.0' is up to date.
>>>>>>>>>> make[2]: `libsrdb1.so.1.0' is up to date.
>>>>>>>>>> make[2]: `libkcore.so.1.0' is up to date.
>>>>>>>>>> make[2]: `libsrutils.so.1.0' is up to date.
>>>>>>>>>> LD (gcc) [M usrloc.so] usrloc.so
>>>>>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>>>>>> make[2]: Nothing to be done for `install-if-newer'.
>>>>>>>>>> touch /usr/local/lib64/kamailio/modules/usrloc.so
>>>>>>>>>> install -m 755 usrloc.so /usr/local/lib64/kamailio/modules
>>>>>>>>>> touch /usr/local/lib64/kamailio/modules/xhttp.so
>>>>>>>>>> install -m 755 xhttp.so /usr/local/lib64/kamailio/modules
>>>>>>>>>> touch /usr/local/lib64/kamailio/modules/xhttp_rpc.so
>>>>>>>>>> install -m 755 xhttp_rpc.so /usr/local/lib64/kamailio/modules
>>>>>>>>>> touch /usr/local/lib64/kamailio/modules/xlog.so
>>>>>>>>>> install -m 755 xlog.so /usr/local/lib64/kamailio/modules
>>>>>>>>>> touch /usr/local/lib64/kamailio/modules/xprint.so
>>>>>>>>>> install -m 755 xprint.so /usr/local/lib64/kamailio/modules
>>>>>>>>>> /bin/sh: -c: line 18: syntax error near unexpected token `fi'
>>>>>>>>>> */bin/sh: -c: line 18: ` fi ; \'
>>>>>>>>>> make: *** [install-cfg] Error 2 *
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Could you help me please to solve this error,
>>>>>>>>>>
>>>>>>>>>> Best Regards,
>>>>>>>>>>
>>>>>>>>>> Djamel.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> 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 -http://www.asipto.com
>>>>>>>>> http://twitter.com/#!/miconda -http://www.linkedin.com/in/miconda
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> 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 -http://www.asipto.com
>>>>>>> http://twitter.com/#!/miconda -http://www.linkedin.com/in/miconda
>>>>>>
>>>>>
>>>>> --
>>>>> Daniel-Constantin Mierla
>>>>> http://twitter.com/#!/miconda -http://www.linkedin.com/in/miconda
>>>>> Next Kamailio Advanced Trainings 2014 -http://www.asipto.com
>>>>> Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
>>>>
>>>
>>> --
>>> Daniel-Constantin Mierla
>>> http://twitter.com/#!/miconda -http://www.linkedin.com/in/miconda
>>> Next Kamailio Advanced Trainings 2014 -http://www.asipto.com
>>> Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
>>
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda -http://www.linkedin.com/in/miconda
> Next Kamailio Advanced Trainings 2014 -http://www.asipto.com
> Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140808/6e82af9c/attachment.html>
More information about the sr-users
mailing list