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

Fails to install after uninstall #300

Open
n-epifanov opened this issue Feb 28, 2024 · 1 comment
Open

Fails to install after uninstall #300

n-epifanov opened this issue Feb 28, 2024 · 1 comment

Comments

@n-epifanov
Copy link

Once asdf uninstall erlang <version> is done it becomes impossible to install it again:

$ asdf install erlang 25.3
asdf_25.3 is not a kerl-managed Erlang/OTP installation
The asdf_25.3 build has been deleted
Extracting source code
Building Erlang/OTP 25.3 (asdf_25.3), please wait...
WARNING: You appear to have BOTH rpm and dpkg. This is very strange. No package checks done.
APPLICATIONS DISABLED (See: /home/nick/.asdf/plugins/erlang/kerl-home/builds/asdf_25.3/otp_build_25.3.log)
 * odbc           : ODBC library - link check failed

APPLICATIONS INFORMATION (See: /home/nick/.asdf/plugins/erlang/kerl-home/builds/asdf_25.3/otp_build_25.3.log)
 * wx             : wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available

Building docs...
Erlang/OTP 25.3 (asdf_25.3) has been successfully built
ERROR: Installation (asdf_25.3) already registered for this location (/home/nick/.asdf/installs/erlang/25.3)

$ asdf uninstall erlang 25.3
No such version

That's because entry to otp_installations is added but not removed, then there's a check on that entry and installation fails:

~/.asdf/plugins/erlang/kerl-home$ cat otp_installations 
asdf_23.0.3 /home/nick/.asdf/installs/erlang/23.0.3
asdf_18.3 /home/nick/.asdf/installs/erlang/18.3
asdf_20.3 /home/nick/.asdf/installs/erlang/20.3
asdf_22.2.3 /home/nick/.asdf/installs/erlang/22.2.3
asdf_23.1.2 /home/nick/.asdf/installs/erlang/23.1.2
asdf_23.1.3 /home/nick/.asdf/installs/erlang/23.1.3
asdf_22.3.4.1 /home/nick/.asdf/installs/erlang/22.3.4.1
asdf_23.2.7 /home/nick/.asdf/installs/erlang/23.2.7
asdf_23.3.1 /home/nick/.asdf/installs/erlang/23.3.1
asdf_22.3.4.10 /home/nick/.asdf/installs/erlang/22.3.4.10
asdf_23.1.1 /home/nick/.asdf/installs/erlang/23.1.1
asdf_25.3 /home/nick/.asdf/installs/erlang/25.3
$ ll ~/.asdf/installs/erlang/
total 0
@thiagomajesk
Copy link

thiagomajesk commented Mar 9, 2024

I had the same problem and what fixed it for me was actually uninstalling the plugin and installing it again. We need a permanent solution though.

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

2 participants