Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reinstall already installed toolchains #34

Closed
NobbZ opened this issue Mar 15, 2016 · 6 comments
Closed

How to reinstall already installed toolchains #34

NobbZ opened this issue Mar 15, 2016 · 6 comments

Comments

@NobbZ
Copy link
Contributor

NobbZ commented Mar 15, 2016

I used the erlang plugin to install several versions of erlang, but now I had to realize, that they are all installed without wx support, which I might need for the next project.

I made already sure, that everything wx relies on is in place, and I compiled an erlang manually just to see if the build process does realize it. Indeed it does.

So I'd like to have asdf to automatically reinstall all existing versions of the erlang toolchain, is this possible in an easy way?

@kennyp
Copy link
Contributor

kennyp commented Mar 18, 2016

@NobbZ a little bash should do it for you

asdf list-all erlang | while read ver
do
  asdf uninstall erlang $ver
  asdf install erlang $ver
done

@NobbZ
Copy link
Contributor Author

NobbZ commented Mar 18, 2016

listing the installed ones will be enough 😊 I hoped there's a built in way
to do it like in RVM, kiex and others. In the meantime I did exactly this
by hand.

Kenny Parnell notifications@github.com schrieb am Fr., 18. März 2016
17:19:

@NobbZ https://github.com/NobbZ a little bash should do it for you

asdf list-all erlang | while read verdo
echo asdf uninstall erlang $ver
echo asdf install erlang $verdone


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#34 (comment)

@HashNuke
Copy link
Member

HashNuke commented Apr 9, 2016

@NobbZ Do the asdf-built erlang versions still come without wx? I remember fixing it.

@NobbZ
Copy link
Contributor Author

NobbZ commented Apr 9, 2016

They came wx included, after I installed wx libs. Exactly that was the
cause why I wanted to reinstall.

Akash Manohar notifications@github.com schrieb am Sa., 9. Apr. 2016 17:43:

@NobbZ https://github.com/NobbZ Do the asdf-built erlang versions still
come without wx? I remember fixing it.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#34 (comment)

@HashNuke
Copy link
Member

HashNuke commented Apr 9, 2016

@NobbZ Ah thank you for the quick reply.
Can you send a PR to add the wx libs install commands to the asdf-erlang readme for mac and ubuntu? https://github.com/asdf-vm/asdf-erlang

Nice to know you got it fixed. Closing this issue.

@HashNuke HashNuke closed this as completed Apr 9, 2016
@nixpulvis
Copy link

Here's a nice little fish script that'll do it.

for plug in (asdf plugin-list)
    for ver in (asdf list $plug)
        set v (echo $ver | awk '{$1=$1};1')
        if not echo $v | grep 'No versions installed'
            asdf uninstall $plug $v
            asdf install $plug $v
        end
    end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants