Skip to content

Erlang/Elixir no longer works #613

Closed

Description

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:
no-erl

Activity

  1. benhillis commented on Jul 1, 2016

    @benhillis
    Member

    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:

    ben@BENHILL-VM3:/usr/bin$ which erl
    /usr/bin/erl
    ben@BENHILL-VM3:/usr/bin$ erl
    Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
    
    Eshell V5.10.4  (abort with ^G)
    1>
    
    
  2. jmerriweather commented on Jul 3, 2016

    @jmerriweather
    Author

    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:

    wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
    sudo dpkg -i erlang-solutions_1.0_all.deb
    

    then:

    sudo apt-get update
    sudo apt-get install esl-erlang
    
  3. jmerriweather commented on Jul 10, 2016

    @jmerriweather
    Author

    Still doesn't work as of insider build 14385

  4. jmerriweather commented on Jul 13, 2016

    @jmerriweather
    Author

    Ben Hillis (@benhillis) Still doesn't work as of insider build 14388

  5. AlejandroHuerta commented on Jul 14, 2016

    @AlejandroHuerta

    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

  6. JBraungardt commented on Jul 29, 2016

    @JBraungardt

    Same problems on build 1493.3

  7. nahtnam commented on Aug 3, 2016

    @nahtnam

    Im having the same issue here. How do I get rid of erlang? Right now I keep getting erl is a directory.

  8. nahtnam commented on Aug 3, 2016

    @nahtnam

    Fixed it by running sudo apt-get purge esl-erlang and then following this: http://stackoverflow.com/a/27215937

    But when I do erl -v, I get a huge crash.dump

  9. doughsay commented on Aug 4, 2016

    @doughsay

    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 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.

  10. doughsay commented on Aug 4, 2016

    @doughsay

    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?

  11. nahtnam commented on Aug 4, 2016

    @nahtnam

    I've heard that people have problems upgrading Ubuntu with bash on windows.

  12. doughsay commented on Aug 4, 2016

    @doughsay

    Yeah... I'm looking more to encourage an official upgrade to 16.04. Not to attempt it using apt-get.

  13. doughsay commented on Aug 4, 2016

    @doughsay

    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.

    capture2
    capture3

    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!

  14. Andorbal commented on Aug 4, 2016

    @Andorbal

    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:
    image

    I fixed it manually: $ sudo ln -s ../lib/erlang/bin/erl erl and now it's back to the Crash dump is being written to: error.

  15. 13 remaining items

  16. jmerriweather commented on Feb 25, 2017

    @jmerriweather
    Author

    I can confirm that this issue has now been fixed in the latest insider build 15042

    image

  17. selfup commented on Apr 23, 2017

    @selfup

    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

  18. selfup commented on Apr 23, 2017

    @selfup

    Going to wipe 14.04 and upgrade to 16.04 via:

    C:\> lxrun /uninstall /full /y
    
    C:\> lxrun /install
    

    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

  19. dimitarvp commented on Apr 24, 2017

    @dimitarvp
    1. Updated to the Creators Update (version 1703).
    2. Did sudo do-release-upgrade in the Windows 10 Ubuntu bash shell.
    3. Version:
    $ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=16.04
    DISTRIB_CODENAME=xenial
    DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
    
    1. elixir -v worked just fine:
    $ elixir -v
    Erlang/OTP 19 [erts-8.3] [source-d5c06c6] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
    
    Elixir 1.4.2
    
  20. kgeo commented on Apr 25, 2017

    @kgeo

    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.

  21. dimitarvp commented on Apr 25, 2017

    @dimitarvp

    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).

  22. cgregfreeman commented on Jul 1, 2017

    @cgregfreeman

    It looks like this now doesn't work with OTP 20

  23. jmerriweather commented on Jul 2, 2017

    @jmerriweather
    Author

    image

    Greg Freeman (@cgregfreeman) OTP 20 looks to be working for me. Tested on 1703 (Build 15063.447)

  24. cgregfreeman commented on Jul 2, 2017

    @cgregfreeman

    Thank you, Jonathan Merriweather (@jmerriweather) . After forcing the update to 15063, I was able to get OTP 20 to work without a hitch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions