Code Monkey home page Code Monkey logo

Comments (20)

viraptor avatar viraptor commented on July 18, 2024 22

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

xcolour avatar xcolour commented on July 18, 2024 5

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

pboling avatar pboling commented on July 18, 2024 1

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.

pboling avatar pboling commented on July 18, 2024 1

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

pmgower avatar pmgower commented on July 18, 2024 1

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

etewiah avatar etewiah commented on July 18, 2024 1

@pboling , sorry only saw your comment after I fixed it. Your tip was indeed correct. Many thanks!

from asdf-ruby.

uxgnod avatar uxgnod commented on July 18, 2024 1

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

pboling avatar pboling commented on July 18, 2024 1

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

theblang avatar theblang commented on July 18, 2024

I'm seeing Version not found when running asdf install ruby 3.2.2

from asdf-ruby.

etewiah avatar etewiah commented on July 18, 2024

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.

pboling avatar pboling commented on July 18, 2024

@Stratus3D I think this can be closed.

from asdf-ruby.

stidch avatar stidch commented on July 18, 2024

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.

jhussain123 avatar jhussain123 commented on July 18, 2024

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

-> https://dqw8nmjcqpjn7.cloudfront.net/f0316a2ebd89e7f2352976445458689f80302093788c466692fb2a188b2eacf6

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.

Jason733i avatar Jason733i commented on July 18, 2024

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.

pletoss avatar pletoss commented on July 18, 2024

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 avatar pletoss commented on July 18, 2024

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

pboling avatar pboling commented on July 18, 2024

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.

#19

from asdf-ruby.

guicattani avatar guicattani commented on July 18, 2024

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.

egdbear avatar egdbear commented on July 18, 2024

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.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.