<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br><br>&gt; Date: Fri, 3 Sep 2010 12:26:44 +0300<br>&gt; From: marius.zbihlei@1and1.ro<br>&gt; To: betergreen@live.com; sr-users@lists.sip-router.org<br>&gt; Subject: Re: [SR-Users] error when install kamailio with TLS module.<br>&gt; <br>&gt; peter_green lion wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt; From: henning.westerholt@1und1.de<br>&gt; &gt; &gt; To: sr-users@lists.sip-router.org<br>&gt; &gt; &gt; Subject: Re: [SR-Users] error when install kamailio with TLS module.<br>&gt; &gt; &gt; Date: Fri, 3 Sep 2010 09:47:15 +0200<br>&gt; &gt; &gt; CC: betergreen@live.com<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On Friday 03 September 2010, peter_green lion wrote:<br>&gt; &gt; &gt; &gt; I try to install kamailio with enable TLS module, but it raise error.<br>&gt; &gt; &gt; &gt; when i enable module TLS and run command make all,make install, <br>&gt; &gt; the error<br>&gt; &gt; &gt; &gt; is :<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; #make install<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Makefile.defs defs skipped<br>&gt; &gt; &gt; &gt; make[1]: Entering directory `/usr/src/kamailio-3.0.1/modules/tls'<br>&gt; &gt; &gt; &gt; MAIN_NAME=kamailio ./sip-router_cert.sh -d /usr/local/etc/kamailio/<br>&gt; &gt; &gt; &gt; hostname: Unknown host<br>&gt; &gt; &gt; &gt; ./sip-router_cert.sh: line 142: which: command not found<br>&gt; &gt; &gt; &gt; Could not find openssl command<br>&gt; &gt; &gt; &gt; Set OPENSSL environment variable properly (see -h for more info)<br>&gt; &gt; &gt; &gt; [..]<br>&gt; &gt; &gt; &gt; please help me find and fix this problem,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Hi Peter,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; you don't have openssl installed on the machine, or its not in the <br>&gt; &gt; default<br>&gt; &gt; &gt; path. Either install it, or set the OPENSSL variable to the proper <br>&gt; &gt; location of<br>&gt; &gt; &gt; the binary. Just run this command to get more informations:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; ~/projects/sip-router/modules/tls$ ./sip-router_cert.sh -h<br>&gt; &gt; &gt; NAME<br>&gt; &gt; &gt; sip-router_cert.sh - Generate a self-signed TLS/SSL certificate for <br>&gt; &gt; use with<br>&gt; &gt; &gt; sip-router.<br>&gt; &gt; &gt; ...<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Cheers,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Henning<br>&gt; &gt;<br>&gt; &gt; hi Henning,<br>&gt; &gt; i have run command to check:<br>&gt; &gt; yum install openssl<br>&gt; &gt; Setting up Install Process<br>&gt; &gt; Parsing package install arguments<br>&gt; &gt; Package openssl - 0.9.8e-12.el5_4.6.i686 is already installed.<br>&gt; &gt; Nothing to do<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; [root@appliance kamailio-3.0.2]# yum install openssl-dev<br>&gt; &gt; Loading "fastestmirror" plugin<br>&gt; &gt; Loading mirror speeds from cached hostfile<br>&gt; &gt;  * base: mirror-fpt-telecom.fpt.net<br>&gt; &gt;  * updates: mirror-fpt-telecom.fpt.net<br>&gt; &gt;  * addons: mirror-fpt-telecom.fpt.net<br>&gt; &gt;  * extras: mirror-fpt-telecom.fpt.net<br>&gt; &gt; Setting up Install Process<br>&gt; &gt; Parsing package install arguments<br>&gt; &gt; No package openssl-dev available.<br>&gt; &gt;<br>&gt; &gt; and :<br>&gt; &gt;<br>&gt; &gt; [root@appliance tls]# ./sip-router_cert.sh -h<br>&gt; &gt; NAME<br>&gt; &gt;   sip-router_cert.sh - Generate a self-signed TLS/SSL certificate for <br>&gt; &gt; use with sip-router.<br>&gt; &gt;<br>&gt; &gt; SYNOPSIS<br>&gt; &gt;   sip-router_cert.sh [options]<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; i run command again : make install<br>&gt; &gt;<br>&gt; &gt; make[1]: Entering directory `/usr/src/kamailio-3.0.2/modules/tls'<br>&gt; &gt; MAIN_NAME=kamailio ./sip-router_cert.sh -d /usr/local/etc/kamailio/<br>&gt; &gt; ./sip-router_cert.sh: line 142: which: command not found<br>&gt; <br>&gt; Hello<br>&gt; <br>&gt; It seems you don't have the "which" command. Please check the $PATH <br>&gt; environment variable includes the common directories (/usr/bin for which <br>&gt; on my system). Please check that which is installed (yum install which).<br>&gt; <br>&gt; After that rerun the script. Openssl looks to be installed .<br>&gt; <br>&gt; Cheers<br>&gt; Marius<br>&gt; &gt; Could not find openssl command<br>&gt; &gt; Set OPENSSL environment variable properly (see -h for more info)<br>&gt; &gt; make[1]: *** [install-tls-cert] Error 1<br>&gt; &gt; make[1]: Leaving directory `/usr/src/kamailio-3.0.2/modules/tls'<br>&gt; &gt; make: *** [install-modules] Error 1<br>&gt; &gt;<br>&gt; &gt; so, please suggest me to fix it.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; thanks.<br>&gt; &gt; peter green<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br><br><br>thanks Marius,<br>you`re true.<br>after i run "yum install which",<br>and "make install " is okie.<br>thanks for your help.<br><br>and thanks Henning too.<br><br>sincerely <br><br>Peter green<br>                                               </body>
</html>