<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
</head><body>I did an uninstall of the previous version of erlang and the ./configure gave following errors<br><br>[ec2-user@ip-172-31-22-88 ejabberd-17.03]$ sudo ./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... no<br>checking for epmd... no<br>checking for erl... no<br>configure: error: Erlang/OTP interpreter (erl) not found but required<br><br>and that is why I was suspecting that whenever I run the ./configure command the script goes to <br>/usr/bin <br>and search for erl ,erlc....etc<br>That is why I asked that is there any way that I can set my erl path to /usr/bin which is currently gives that following path on "which erl" <br>~/kerl/17.1/bin/erl<br><br>or should I install erlang again. if so can anyone tell me how to make the erl path specifically such that it points to /usr/bin and still the erlang shell works on typing erl alone?<br>
<br><blockquote type="cite">
On May 3, 2017 at 6:25 PM Abhishek Ranjan <abhishek@blacklightsw.com> wrote:<br><br>No i am still getting the same error and the line<br>./configure –bindir=~/home/ec2-user/kerl/17.1/bin<br>is giving the following error too<br><br>[root@ip-172-31-22-88 ejabberd-17.03]# ./configure –Bindir=~/home/ec2-user/kerl/ 17.1/bin<br>configure: error: invalid variable name: `–Bindir'<br><br>Actually it is a amazon aws linux instance and it 's is the only option I have for now.<br>Any Ideas on how to make it work or any ideas on how to install ejabberd 17.03 or higher in this environment. I have already tried the binary installer and it worked at start but it didn't work on second installation.<br>http://stackoverflow.com/questions/43754066/issue-with-ejabberds-installation-on-amazon-aws<br><br>kindly help.<br><br><blockquote type="cite">
On May 3, 2017 at 5:45 PM Nuku Ameyibor <nayibor@gmail.com> wrote:<br><br><div dir="ltr"><span style="font-size: 12.8px;">[ec2-user@ip-172-31-22-88 ~]$ <b>export PATH=$PATH: ~/kerl/17.1/bin/erl</b></span><br><div><span style="font-size: 12.8px;"><b><br></b></span></div><div><span style="font-size: 12.8px;">this line is wrong .it should be </span></div><div><span style="font-size: 12.8px;"><b> export PATH=$PATH: ~/kerl/17.1/bin</b></span><span style="font-size: 12.8px;"><br></span></div><div><span style="font-size: 12.8px;"><b><br></b></span></div><div><span style="font-size: 12.8px;">also in this step </span></div><div><span style="font-size: 12.8px;">[ec2-user@ip-172-31-22-88 ejabberd-17.03]$ <b>./configure</b></span><span style="font-size: 12.8px;"><br></span></div><div><span style="font-size: 12.8px;">it should be </span></div><div><b><span style="font-size: 12.8px;"> ./configure </span><span style="color: rgb(36,41,46);font-family: nunito-light,helvetica,arial,sans-serif;font-size: 16px;"><code style="font-family: menlo,monaco,consolas,"courier new",monospace;font-size: 12px;padding: 0.2em;background-color: rgb(246,246,246);border-radius: 3px;line-height: 16px;margin: 0px;">–bindir=</code></span><span style="font-size: 12.8px;">~/home/ec2-user/</span><wbr style="font-size: 12.8px;"/><span style="font-size: 12.8px;">kerl/17.1/bin</span></b></div><div><span style="font-size: 12.8px;"><br></span></div><div><span style="font-size: 12.8px;">also i though you were installing on a fedora box ?</span></div><div><span style="font-size: 12.8px;">why not try the fedora option for the erlang installation ? </span></div><div><span style="font-size: 12.8px;"><br></span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 11:35 AM, 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>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/<wbr/>erl': not a valid identifier<br><br>[ec2-user@ip-172-31-22-88 ~]$ export PATH=$PATH:~/home/ec2-user/<wbr/>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/<wbr/>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.<wbr/>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<span class=""><br>configure: error: Erlang/OTP interpreter (erl) not found but required<br>
<br></span><div><div class="h5"><blockquote type="cite">
On May 3, 2017 at 4:17 PM Abhishek Ranjan <<a href="mailto:abhishek@blacklightsw.com" target="_blank">abhishek@blacklightsw.com</a>> 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/<wbr/>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 <<a href="mailto:nayibor@gmail.com" target="_blank">nayibor@gmail.com</a>> 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" target="_blank">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" target="_blank">Jack Tang</a>; <a href="mailto:erlang-questions@erlang.org" target="_blank">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/<wbr/>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: <a href="https://yrsdi.github.io/programming/setup-erlang-with-kerl-mac-osx/" target="_blank">https://yrsdi.github.io/<wbr/>programming/setup-erlang-with-<wbr/>kerl-mac-osx/</a><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 <<a href="mailto:himars@gmail.com" target="_blank">himars@gmail.com</a>> 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>`<wbr/>. <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" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/list<wbr/>info/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_2661191106138739717gmail_signature">Jack Tang<br><br><br><a href="http://www.linkedin.com/in/jacktang" target="_blank">http://www.linkedin.com/in/<wbr/>jacktang</a><br></div>
</div>
______________________________<wbr/>_________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">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></blockquote>
<br>
</blockquote>
<br> </blockquote>
<br> <blockquote type="cite">
______________________________<wbr/>_________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">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></blockquote>
<br> </div></div></div>
</blockquote></div><br></div>
</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>