<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body>I actually followed it apart from the export command so after using export path command also the error still pops up that  -> configure: error: Erlang/OTP interpreter (erl) not found but required<br> Complete scenario went something like this:<br><br>[ec2-user@ip-172-31-22-88 ~]$ kerl list builds<br>17.1,erlang-17.1<br>17.1,erl<br>[ec2-user@ip-172-31-22-88 ~]$ export PATH=$PATH: ~/kerl/17.1/bin/erl<br>-bash: export: `/home/ec2-user/kerl/17.1/bin/erl': not a valid identifier<br><br>[ec2-user@ip-172-31-22-88 ~]$ export PATH=$PATH:~/home/ec2-user/kerl/17.1/bin/erl<br>[ec2-user@ip-172-31-22-88 ~]$ erl<br>-bash: erl: command not found<br>[ec2-user@ip-172-31-22-88 ~]$ kerl active<br>No Erlang/OTP kerl installation is currently active<br>[ec2-user@ip-172-31-22-88 ~]$  export PATH=$PATH:~/home/ec2-user/kerl/17.1/bin/erl<br><br><br>[ec2-user@ip-172-31-22-88 ~]$ . ~/kerl/17.1/activate<br>[ec2-user@ip-172-31-22-88 ~]$ kerl active<br>The current active installation is:<br>/home/ec2-user/kerl/17.1<br>[ec2-user@ip-172-31-22-88 ~]$ erl<br>Erlang/OTP 17 [erts-6.1] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]<br><br>Eshell V6.1  (abort with ^G)<br>1> q().<br>ok<br>2> [ec2-user@ip-172-31-22-88 ~]$ cd downloads/<br><br>[ec2-user@ip-172-31-22-88 ejabberd-17.03]$ cd ejabberd-17.03/<br>[ec2-user@ip-172-31-22-88 ejabberd-17.03]$ ./configure<br>./configure: line 1529: config.log: Permission denied<br>./configure: line 1539: config.log: Permission denied<br>[ec2-user@ip-172-31-22-88 ejabberd-17.03]$ ./autogen.sh<br>autom4te: cannot open autom4te.cache/requests: Permission denied<br>aclocal: error: echo failed with exit status: 1<br>autom4te: cannot open autom4te.cache/requests: Permission denied<br>[ec2-user@ip-172-31-22-88 ejabberd-17.03]$ yum install automake<br>Loaded plugins: priorities, update-motd, upgrade-helper<br>You need to be root to perform this command.<br>[ec2-user@ip-172-31-22-88 ejabberd-17.03]$ sudo su<br>[root@ip-172-31-22-88 ejabberd-17.03]# yum install automake<br>Loaded plugins: priorities, update-motd, upgrade-helper<br>amzn-main                                                | 2.1 kB     00:00<br>amzn-updates                                             | 2.3 kB     00:00<br>Package automake-1.13.4-3.15.amzn1.noarch already installed and latest version<br>Nothing to do<br>[root@ip-172-31-22-88 ejabberd-17.03]# ./autogen.sh<br>[root@ip-172-31-22-88 ejabberd-17.03]# ./configure<br>checking whether make sets $(MAKE)... yes<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking for a sed that does not truncate output... /bin/sed<br>checking for erl... no<br>checking for erlc... /usr/bin/erlc<br>checking for epmd... /usr/bin/epmd<br>checking for erl... no<br>configure: error: Erlang/OTP interpreter (erl) not found but required<br>
<br><blockquote type="cite">

    
On May 3, 2017 at 4:17 PM Abhishek Ranjan <abhishek@blacklightsw.com> wrote:<br><br>it is giving me this path "/kerl/17.1/bin/erl"<br>which is actually inside /home/ec2-user/<br><br>what I feel is that this erl should have been inside /usr/bin/ directory and instead it is inside <br>/home/ec2-user//kerl/17.1/bin/erl<br><br>So is there any way I can change this path to /usr/bin.<br>Please tell me if I am thinking right first and if so how can this be done in linux(amazon linux or fedora).<br><br><blockquote type="cite">

    
On May 3, 2017 at 4:01 PM Nuku Ameyibor <nayibor@gmail.com> wrote:<br><br><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">@ Ranjan, <br><br> KERL_ENABLE_PROMPT=Y <br>. ~/kerl/17.1/activate<br>They are two separate commands not one command.<br>Run them one after the other .<br>After that run <br>which erl <br>That command will show you the path to your current activated erlang version . <br><br><br></div></div><div dir="ltr"><hr><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">From: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:abhishek@blacklightsw.com">Abhishek Ranjan</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Sent: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">‎5/‎3/‎2017 9:46 AM</span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">To: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:himars@gmail.com">Jack Tang</a>; <a href="mailto:erlang-questions@erlang.org">Erlang-Questions Questions</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Subject: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">Re: [erlang-questions] Erlang/OTP interpreter (erl) not found butrequired</span><br><br></div>home/ec2-user is my home directory or should I say the default directory when I make the ssh connection to server.<br>so i ran : KERL_ENABLE_PROMPT=y . ~/kerl/17.1/activate<br>command when I was in this home directory.<br>I think I missed a trick here as I am not familiar with linux and how to set path in linux and that's why maybe when I go to home/ec2-user/download/ejabberd.17.03/<br>and run ./configure command it is giving me this error.<br>what I understand is the line which you are saying that I missed is the same line as<br>KERL_ENABLE_PROMPT=y . ~/kerl/17.1/activate<br>but may be I gave a wrong path or ran it from wrong place (home/ec2-user).<br>I followed: https://yrsdi.github.io/programming/setup-erlang-with-kerl-mac-osx/<br>Can you gauge where I am going wrong exactly<br><br><blockquote type="cite">
On May 3, 2017 at 3:06 PM Jack Tang <himars@gmail.com> wrote:<br><br><div dir="ltr">You might miss to run `<span style="color: rgb(36,41,46); font-family: sfmono-regular,consolas,"liberation mono",menlo,courier,monospace; font-size: 13.6px; background-color: transparent;">$ . /path/to/install/dir/activate</span>`. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 5:22 PM, Abhishek Ranjan <span><<a href="mailto:abhishek@blacklightsw.com" target="_blank">abhishek@blacklightsw.com</a>></span> wrote:<br><blockquote class="gmail_quote"><u></u>

    
<div><p>I was installing ejabberd 17.03 through source code when I found that I needed to intall Erlang 17.1 for it. I installed erlang /otp 17.1 using kerl inside the /home/ec2-user/kerl/17.1 directory.</p><p>I then used  ./autogen.sh command which ran without any output</p><p>       then:  ./configure which gave this error</p><p>configure: error: Erlang/OTP interpreter (erl) not found but required  </p><p>Can anyone help?</p><p>Regards,</p><p>Abhishek</p></div>
 <br>______________________________<wbr/>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr/>listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Jack Tang<br><br><br><a href="http://www.linkedin.com/in/jacktang" target="_blank">http://www.linkedin.com/in/jacktang</a><br></div>
</div>
_______________________________________________<br>erlang-questions mailing list<br>erlang-questions@erlang.org<br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote>
<br> 
 </blockquote>
<br> </blockquote>
<br> <blockquote type="cite">

 _______________________________________________<br>erlang-questions mailing list<br>erlang-questions@erlang.org<br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote>
<br> </body></html>