You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of the latest build 14379 Erlang no longer works. I've tried lxrun /uninstall /full /y and reinstalled however it still doesn't work. I've also attempted installing the previous version of Erlang 18.3.4.
Seems like it might be file system related, the error we get is erl: Is a directory
When i go to the directory it should be located in I get the following:
Reacted by Alejandro Huerta, Luke Niesink, Chris Dosé, Steven Blake, kiara, Veronika Tyler, German, Dimitar Panayotov, Egor Kislitsyn, Isak Sky and 4 more
Looks like they're pretty busy making fixes for the A release, telling from the latest entry on the release notes. Hopefully this is resolved before the official release on 8/2
This causes the bash: /usr/bin/erl: Is a directory error, and the above described behavior with the bin directory acting funny.
The basic erlang package from the base repo installs and seems to work fine, but it's too old at version 16.0. We need 18.0 or higher to run Elixir... Using the erlang solutions repo to install either erlang or esl-erlang doesn't work...
Any updates on this?
EDIT: sorry I meant to also include that I'm on the official anniversary update here, no inside build.
Here's an interesting idea... Ubuntu 16.04 (the latest LTS release) includes erlang 18.3 in it's base repo. If we could use the latest Ubuntu with BashOnWindows, that might solve our issues? What are the chances of being able to upgrade the Ubuntu version?
Thanks dimitarvp!
Worked here as well.
Small question: why do you have elixir 1.4.2? I am still getting 1.4.1 (and OTP 18). Tried to reenable the elixir repo and upgrade, but that did not change the version.
kgeo I simply download the precompiled version and extract it in a directory which is in my $PATH (~/bin/elixir). I don't use Ubuntu's package manager for Elixir (if I understood your question correctly).
Activity
benhillis commentedon Jul 1, 2016
What apt-get packages did you install prior to running erl? After I ran apt-get install erlang-base I'm able to run erl:
jmerriweather commentedon Jul 3, 2016
I also followed the steps on elixir-lang: http://elixir-lang.org/install.html
Ubuntu by default includes a very old version of Erlang, so you'll need to grab the latest version from Erlang Solutions.
I did the following:
then:
jmerriweather commentedon Jul 10, 2016
Still doesn't work as of insider build 14385
jmerriweather commentedon Jul 13, 2016
Ben Hillis (@benhillis) Still doesn't work as of insider build 14388
AlejandroHuerta commentedon Jul 14, 2016
Looks like they're pretty busy making fixes for the A release, telling from the latest entry on the release notes. Hopefully this is resolved before the official release on 8/2
JBraungardt commentedon Jul 29, 2016
Same problems on build 1493.3
nahtnam commentedon Aug 3, 2016
Im having the same issue here. How do I get rid of erlang? Right now I keep getting erl is a directory.
nahtnam commentedon Aug 3, 2016
Fixed it by running
sudo apt-get purge esl-erlangand then following this: http://stackoverflow.com/a/27215937But when I do
erl -v, I get a huge crash.dumpdoughsay commentedon Aug 4, 2016
I've tried several things now as well, the most promising being what's described here: http://elixir-lang.org/install.html
This causes the
bash: /usr/bin/erl: Is a directoryerror, and the above described behavior with the bin directory acting funny.The basic
erlangpackage from the base repo installs and seems to work fine, but it's too old at version 16.0. We need 18.0 or higher to run Elixir... Using the erlang solutions repo to install eithererlangoresl-erlangdoesn't work...Any updates on this?
EDIT: sorry I meant to also include that I'm on the official anniversary update here, no inside build.
doughsay commentedon Aug 4, 2016
Here's an interesting idea... Ubuntu 16.04 (the latest LTS release) includes erlang 18.3 in it's base repo. If we could use the latest Ubuntu with BashOnWindows, that might solve our issues? What are the chances of being able to upgrade the Ubuntu version?
nahtnam commentedon Aug 4, 2016
I've heard that people have problems upgrading Ubuntu with bash on windows.
doughsay commentedon Aug 4, 2016
Yeah... I'm looking more to encourage an official upgrade to 16.04. Not to attempt it using apt-get.
doughsay commentedon Aug 4, 2016
Guys, this it totally possible, I've got it working. It was a huge hassle, and I haven't done much stability testing, but it seems to work.
Effectively, this is what I did (sorry I can't remember exact steps):
0.5) Modify your sudoers file to allow nopasswd for your account.
1.) Upgrade to the latest Ubuntu using http://www.omgubuntu.co.uk/2016/08/upgrade-bash-windows-10-ubuntu-16-04-lts
2.) Step 1 hosed my sudo, which was very hard to fix, so I suggest doing step 0.5 first! If your sudo is hosed like mine, the second solution of this article helped me: http://stackoverflow.com/questions/10232121/set-environment-variable-ssh-askpass-or-askpass-in-sudoers-resp
3.) sudo apt-get install erlang elixir
4.) upgrade to a newer elixir using exenv
5.) you should now have a working up-to-date elixir environment!
Andorbal commentedon Aug 4, 2016
Looks like the '/usr/bin/erl: Is a directory` error is caused by a bad symlink.
This is what the symlink looked like after installed esl-erlang:

I fixed it manually:
$ sudo ln -s ../lib/erlang/bin/erl erland now it's back to theCrash dump is being written to:error.13 remaining items
jmerriweather commentedon Feb 25, 2017
I can confirm that this issue has now been fixed in the latest insider build 15042
selfup commentedon Apr 23, 2017
Jonathan Merriweather (@jmerriweather) Still an issue unfortunately :(
Even after the new Creators Update.
Edit/Update
Seems I updated wrong somehow. Look below.
Also #613 (comment) is the correct way of doing things
selfup commentedon Apr 23, 2017
Going to wipe 14.04 and upgrade to 16.04 via:
Works after some crazy shenanigans 😂
Had to revert prior to Creators Update (seems I did something wrong here before)
Did a refresh
Then re-updated (took a while)
Now everything works! 🎉
Also #613 (comment) is the correct way of doing things
dimitarvp commentedon Apr 24, 2017
sudo do-release-upgradein the Windows 10 Ubuntu bash shell.elixir -vworked just fine:kgeo commentedon Apr 25, 2017
Thanks dimitarvp!
Worked here as well.
Small question: why do you have elixir 1.4.2? I am still getting 1.4.1 (and OTP 18). Tried to reenable the elixir repo and upgrade, but that did not change the version.
dimitarvp commentedon Apr 25, 2017
kgeo I simply download the precompiled version and extract it in a directory which is in my $PATH (
~/bin/elixir). I don't use Ubuntu's package manager for Elixir (if I understood your question correctly).cgregfreeman commentedon Jul 1, 2017
It looks like this now doesn't work with OTP 20
jmerriweather commentedon Jul 2, 2017
Greg Freeman (@cgregfreeman) OTP 20 looks to be working for me. Tested on 1703 (Build 15063.447)
cgregfreeman commentedon Jul 2, 2017
Thank you, Jonathan Merriweather (@jmerriweather) . After forcing the update to 15063, I was able to get OTP 20 to work without a hitch.