Comments (20)
@theblang that's unrelated, it just means your ruby-build is not to date yet. Run asdf plugin update ruby
to fix that.
from asdf-ruby.
@uxgnod I had the same issue (M1, macOS 13.3.1).
I was able to resolve by installing libyaml
from homebrew (brew install libyaml
) and then installing normally (asdf install ruby latest
). I ultimately did not need to set any of the custom build options suggested in #328 (comment).
from asdf-ruby.
You can also use the newer-than-latest-release of ruby-build with (from README):
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.2.2
from asdf-ruby.
What works for me:
ruby 3 versions
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.2.2
ruby older versions
brew uninstall --ignore-dependencies openssl@3
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 2.7.5
from asdf-ruby.
@etewiah It sounds like the command asdf plugin update ruby
is failing for you. You'll have to make sure that works first. Alternatively, you can try running the command:
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.2.2
from asdf-ruby.
@uxgnod and @xcolour I had a similar issue with build and psych (Intel MBP 2019, macOS 13.4) and was able to resolve it by installing libyaml
via homebrew (brew install libyaml
) and then installed normally (asdf install ruby 3.2.2
).
Same as you @xcolour, I did not need any of the custom build options.
from asdf-ruby.
@pboling , sorry only saw your comment after I fixed it. Your tip was indeed correct. Many thanks!
from asdf-ruby.
@pboling Sorry I forgot to reply and update the status of this issue earlier. The way you mentioned can indeed solve the problem, and I agree that the issue has been resolved and I will close this.
from asdf-ruby.
@pletoss The fix for many people is simply to use the latest build of ruby-build, which is done with:
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.2.2
No need to do anything with libyaml there.
from asdf-ruby.
I'm seeing Version not found
when running asdf install ruby 3.2.2
from asdf-ruby.
asdf plugin update ruby
Even after running above I do not get ruby 3.2.2 listed when I run asdf list-all ruby
from asdf-ruby.
@Stratus3D I think this can be closed.
from asdf-ruby.
I would be nice to have a solution without the need of installing libyaml
with brew
first.
Can't this be fixed on the asdf/ruby side?
from asdf-ruby.
I have libyaml installed and it's not working again.
piyush.chandana@Piyush Chandana QYM29N6YRC ~ % ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.2.1
Downloading ruby-build...
To follow progress, use 'tail -f /var/folders/_2/89qhh6gj0lgfyd8bfrhhb7yw0000gq/T/ruby-build.20231009132436.87244.log' or pass --verbose
Downloading openssl-3.1.3.tar.gz...
Installing openssl-3.1.3...
Installed openssl-3.1.3 to /Users/piyush.chandana/.asdf/installs/ruby/3.2.1
Downloading ruby-3.2.1.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.1.tar.gz
Installing ruby-3.2.1...
ruby-build: using readline from homebrew
ruby-build: using libyaml from homebrew
ruby-build: using gmp from homebrew
BUILD FAILED (macOS 13.6 using ruby-build 20230919)
Inspect or clean up the working tree at /var/folders/_2/89qhh6gj0lgfyd8bfrhhb7yw0000gq/T/ruby-build.20231009132436.87244.mX7Gm4
Results logged to /var/folders/_2/89qhh6gj0lgfyd8bfrhhb7yw0000gq/T/ruby-build.20231009132436.87244.log
Last 10 log lines:
/usr/local/include/secure/_string.h:106:5: warning: '__IPHONE_OS_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Wundef]
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 || \
^
217 warnings generated.
195 warnings generated.
217 warnings generated.
195 warnings generated.
195 warnings generated.
196 warnings generated.
195 warnings generated.
from asdf-ruby.
I was able to fix my similarly broken ruby install by deleting the system installed gems located in ~/.gem
(my GEM_HOME
directory).
from asdf-ruby.
Why is this issue closed ? Installing libyaml from homebrew seems like a temporary workaround, since defeats the purpose of using asdf as being "one tool" only to manage these.
For example, we're using asdf in our CI jobs to automatically pull tools on several machines/agents that the builds are running. Now we would need to manually install homebrew, and then install libyaml on all agents and future agents that we might add.
Can't this be fixed by updating the install script ?
from asdf-ruby.
@pletoss The fix for many people is simply to use the latest build of ruby-build, which is done with:
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.2.2
No need to do anything with libyaml there.
Thanks for the tip. Tried that, however while it works on macos build machines, it still fails on linux:
BUILD FAILED (Ubuntu 18.04 using ruby-build 20231025)
Inspect or clean up the working tree at /tmp/ruby-build.20231026185539.24531.pKDJQ3
Results logged to /tmp/ruby-build.20231026185539.24531.log
Last 10 log lines:
make[1]: Leaving directory '/tmp/ruby-build.20231026185539.24531.pKDJQ3/ruby-3.2.2'
Generating RDoc documentation
/tmp/ruby-build.20231026185539.24531.pKDJQ3/ruby-3.2.2/lib/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
uh-oh! RDoc had a problem:
cannot load such file -- psych
from asdf-ruby.
It failed generating documentation. If you don't need it (such as on a non-development environment), you can turn off the documentation part of the build.
This issue is a little confusing, from typos, and I am not sure of the current state of the defaults and switches - but it can be done.
from asdf-ruby.
Thanks for the tip. Tried that, however while it works on macos build machines, it still fails on linux:
You need to install libyaml-dev
and zlib1g-dev
beforehand for it to work with that command. Or ignore the documentation as recommended by @pboling.
from asdf-ruby.
brew uninstall --ignore-dependencies openssl@3
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 2.7.5
Awesome, was stuck on this for a while, this worked:
brew uninstall --ignore-dependencies openssl@3
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 2.7.5
from asdf-ruby.
Related Issues (20)
- Can't install truffleruby+graalvm on AlpineLinux HOT 1
- Failed to install Ruby 3.1.4 on Ubuntu 22.04
- Issue installing ruby 3.2.X HOT 1
- Failed to install ruby 3.2.1 on M1 Pro with macOS Ventura 13.3 and macOS 14.0
- Observe ASDF_CONCURRENCY HOT 3
- rbenv install faild with whitespace in `$ASDF_DATA_DIR`
- Getting BUILD FAILED (macOS 13.2.1 on arm64 using ruby-build 20231114) using M2 Macbook on Ventura 13.2.1 HOT 2
- Failed to upgrade Ruby version from 3.2.2 to 3.3.0 using asdf HOT 2
- build fail for ruby 3.3.0 on Apple M2 Max silicone and sonoma 14.2.1 (23C71) HOT 2
- Add Ruby 3.2.3 HOT 2
- asdf does not seem to be picking up on ruby gem executables in the GEM_PATH HOT 7
- "Downloaded files will not be preserved." HOT 1
- Ruby 3.2.3 cannot be installed on Ubuntu 22.04 HOT 1
- Build failed: `psych` Could not be configured. It will not be installed. HOT 3
- Truffle Ruby Latest? HOT 1
- The same OS and asdf version on 2 different machines shows different recent ruby versions to install HOT 4
- asdf in background HOT 4
- Question: can the same version be installed twice with diff name? HOT 3
- Auto-reshim is broken when using the asdf-alias plugin
- Failed to install ruby 3.1.5 on Mac OS 13.6.6 M2 Pro
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asdf-ruby.