Questions tagged [asdf-vm]

Use this tag for questions relating to asdf, the extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more, via a simple plugin system.

asdf is an extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more, via a simple plugin system.

https://github.com/asdf-vm/asdf

98 questions
1
vote
2 answers

autoconf: command not found

I'm trying to install ruby 2.8.0-dev through asdf with asdf install ruby 2.8.0-dev but I get the following error: Cloning https://github.com/ruby/ruby.git... Installing ruby-master... BUILD FAILED (Ubuntu 20.04 using ruby-build 20200401) Inspect…
CaD
  • 139
  • 1
  • 1
  • 6
1
vote
1 answer

Can I specify my Rails version using .asdf version manager?

Currently I have asdf for managing my versions of Ruby (2.6.5), nodejs, and yarn. I am trying to follow a Rails tutorial with version 5.2.1. Running gem install rails -v 5.2.1 and rails new appname version=5.2.1. It still says version 6.0.2.1…
tdmiller
  • 2,102
  • 2
  • 13
  • 28
1
vote
0 answers

How to make vscode-ruby to find bundler in an asdf-vm environment?

I'm trying to get the vscode-ruby running within an asdf-vm environment. It's possible to set the path to bundler in the settings. I've set it to: bundle /home/user/.asdf/shims/bundle If I load a ruby file the extension complains: /bin/sh: bundle:…
Robin
  • 8,162
  • 7
  • 56
  • 101
1
vote
2 answers

I can run with `iex` in terminal, but it doesn't work in my umbrella project

I could went into iex mode with command 'iex', but in my umbrella project, what i got is asdf: No version set for command mix. ➜ ~ iex Erlang/OTP 21 [erts-10.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe] Interactive…
pengfei xu
  • 29
  • 1
  • 4
1
vote
1 answer

How do I fix this load error during shell start?

Whenever I start the shell I get an error from it saying that it could not load a gem, curiously named ubygems (notice the lack of r). ➜ reload Traceback (most recent call last): 1: from…
Paulo Phagula
  • 387
  • 4
  • 14
1
vote
1 answer

asdf install [warning] JVM flavor 'sun' not understood

When processing the following command, the build waring encountered indicates that the JVM flavor 'sun' is not understood. This occurred on Ubuntu when using asdf version manager to install Erlang with the default Java version set to Java8 Open…
Matt G
  • 1,332
  • 2
  • 13
  • 25
1
vote
1 answer

Elixir version error when running Mix docs

Kindly help with this iisue. I do have system installed Elixir which is version 1.3 and I using asdf. Here is mix.exs file https://pastebin.com/wd9jPGdq [ElixirLS] an exception was raised: ** (Mix.ElixirVersionError) You're trying to run :cards…
user1900238
  • 119
  • 3
  • 11
1
vote
1 answer

Your Ruby version is 2.5.0, but your Gemfile specified 2.5.1

I keep getting this error Your Ruby version is 2.5.0, but your Gemfile specified 2.5.1 I use rbenv and homebrew. I also realized that I have .asdf working. Based on other Stackoverflow, I have tried: 2.5.0 % rbenv local 2.5.1 rbenv: version…
user2970050
  • 307
  • 2
  • 16
0
votes
0 answers

Default packages for all versions in asdf

On all versions of node I use pm2, yarn, and a few others, and on PHP, I use xdebug, LDAP, and others is there a hook or file where I can define all the packages for the plugin to be installed when I install a new version of nodejs or PHP? I would…
Zach Robichaud
  • 183
  • 1
  • 7
0
votes
1 answer

asdf packages installed by a plugin (example golang)

I'm not sure how this works, but I have this scenario: Installed asdf; Installed plugin golang; Installed golang 1.20.4; Then installed a go package using go install moul.io/assh/v2@latest; This package gave me the assh shim binary; Now I have…
Vitor Jr
  • 7
  • 2
0
votes
1 answer

asdf-vm using a .local version of .tool-versions (.tool-versions.local)

Usage case: a git repo for an app contains a .tool-versions file with all the tooling required to the app or to deploy it. me as a user, or another user might have a preference for additional tooling for this particular project as would rather not…
user140090
  • 41
  • 1
0
votes
1 answer

Installing asdf: Path doesn't seem to be recognized?

I'm trying to install asdf on Debian 11. After install, I still get this error: bash: asdf: command not found Suspect: I'm sourcing something incorrectly. Here's the script I'm using to install with: #!/bin/bash # Install prerequisites sudo…
Emily
  • 2,129
  • 3
  • 18
  • 43
0
votes
1 answer

asdf-vm - Git "index file smaller than expected" error when running `asdf update` how to fix?

I've been using asdf for a couple years with great success. However, starting yesterday when I run the asdf update command, I get this error: fatal: .git/index: index file smaller than expected Thanks to @phd's comment, I tried to remove…
hpy
  • 1,989
  • 7
  • 26
  • 56
0
votes
1 answer

vetting process for onboarding asdf plugins?

anyone know if there is a vetting procedure for inclusion of new plugins for asdf. I'd like to recommend use of asdf, but our security people want to know how hard it would be for someone to add a plugin to install malicious software. or is there a…
pat
  • 147
  • 1
  • 5
0
votes
1 answer

Can asdf be configured to NOT run tests when it installs a language?

I've used asdf dozens of times in similar environments, and I'm not expecting any problems. I want the installs of ruby, python, node, etc. to happen faster by not running the built-in tests. I've tried this manually (without asdf) and there is an…
Will Sheppard
  • 3,272
  • 2
  • 31
  • 41