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

help with truffleruby installation on macOS Sonoma #3294

Closed
bolandross opened this issue Oct 13, 2023 · 4 comments
Closed

help with truffleruby installation on macOS Sonoma #3294

bolandross opened this issue Oct 13, 2023 · 4 comments

Comments

@bolandross
Copy link

Hey folks,

even though truffleruby is not officially supported to run on macOS Sonoma, I wondered if you could help me install it on my system (MacBook Air M1, macOS Sonoma 14.0)?

Using rbenv I was able to easily install truffleruby+graalvm-23.1.0

Launching simple apps works fine. The problems only start when I want to install gems via gem. For example, if I start with something relatively simple, I get:

bolandross@MacBook-Air ~ % gem install csv
<internal:core> core/kernel.rb:234:in `gem_original_require': dlopen(/Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/psych.bundle, 0x0002): symbol not found in flat namespace '_rb_cObject' (RuntimeError)
	from <internal:/Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/psych.rb:13:in `<top (required)>'
	from <internal:core> core/kernel.rb:234:in `gem_original_require'
	from <internal:/Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/rubygems.rb:608:in `load_yaml'
	from /Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/rubygems/config_file.rb:351:in `load_file'
	from /Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/rubygems/config_file.rb:194:in `initialize'
	from /Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/rubygems/gem_runner.rb:71:in `do_configuration'
	from /Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/lib/mri/rubygems/gem_runner.rb:33:in `run'
	from /Users/bolandross/.rbenv/versions/truffleruby+graalvm-23.1.0/bin/gem:29:in `<main>'

Could you give me a hint on what is missing here?

@eregon
Copy link
Member

eregon commented Oct 13, 2023

This is the same issue as in #3283.
You will need to wait for XCode 15 support in GraalVM as macOS changed things incompatibly there.

@eregon
Copy link
Member

eregon commented Oct 13, 2023

Let's track that in #3283.

@eregon eregon closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2023
@eregon
Copy link
Member

eregon commented Nov 7, 2023

Fixed now: #3283 (comment)

@eregon
Copy link
Member

eregon commented Dec 4, 2023

This fix will be in the 23.1.2 release which will be available on January 23, 2024.

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

No branches or pull requests

2 participants