-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Installation of ruby 3.1.4 fails on macOS Sonoma 14.0 #470
Comments
This may be related to an upstream issue in the openssl gem: ruby/openssl#650 |
@eirvandelden random idea, could you try using |
I am also curious if this error happens if you try compiling ruby manually: wget https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.4.tar.xz
tar xJvf ruby-3.1.4.tar.xz
cd ruby-3.1.4/
./configure --prefix="$HOME/.rubies/ruby-3.1.4" --with-opt-dir=""$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm)"
make
make install |
I had small moment this morning. About compiling ruby manually:
It compiled successfully. I did not anticipate that. |
Update 2 on using ruby-install master.
It works! I'll use master ruby-install until you have had time release make a new release. Edit: For completeness sake, I re-ran |
@eirvandelden I forgot to include the openssl specific instructions in the
Apparently CRuby's autoconf |
What I did:
Which works and verifies that ruby-install master will fix my issue 👍 Closing (unless you want to keep this open until it has been released) |
I will try to release |
The same on |
Try to |
@postmodern — I've been banging my head against the wall on this (using ruby-install as well as brew) for the past few days, and nothing seems to work (though I haven't tried everything suggested on every thread everywhere, since that's actually impossible). While this thread gives me hope, my latest attempt was:
But this doesn't produce a fully-working Ruby either (though at least ruby-install builds something that can run, which brew's formulae currently seem unable to do) — and note that my primary Ruby project is a Rails monolith that was recently upgraded to Ruby 3.2.2, which is why I'm having to attempt this upgrade (as it was all working with Ruby v2):
Environment
Bundler Build Metadata
Bundler settings
GemfileGemfilesource 'https://rubygems.org'
gem 'active_model_serializers', '~> 0.10.2'
gem 'activerecord-clean-db-structure', '~> 0.2.1'
gem 'activerecord-import', '~> 1.4.1'
gem 'addressable', '~> 2.8'
gem 'amoeba', '~> 3.2.0'
gem 'attr_encrypted', '~> 3.1.0'
gem 'aws-sdk-cloudfront', '~> 1.76.0'
gem 'aws-sdk-s3', ' ~> 1.122.0'
gem 'aws-sdk-sns', '~> 1.60.0'
gem 'aws-sdk-sqs', '~> 1.55.0'
gem 'backbone-rails'
gem 'bugsnag', '~> 6.13.0'
gem 'builder', '~> 3.2.3' # For XML output (TRAX)
gem 'chronic', '~> 0.10.2'
gem 'cloudfront-signer'
gem 'countries', '~> 0.9.19', git: 'https://github.com/namely/countries.git'
gem 'devise', '~> 4.9.2'
gem 'devise-encryptable', git: 'https://github.com/heartcombo/devise-encryptable.git', branch: 'main'
gem 'distribute_reads', '~> 0.2.4'
gem 'dogapi', '~> 1.21'
gem 'dogstatsd-ruby', '~> 3.3.0', require: 'datadog/statsd'
gem 'doorkeeper', '~> 5.6.6'
gem 'doorkeeper-openid_connect', '~> 1.8.7'
gem 'dragonfly', '~> 1.2.0'
gem 'dragonfly-s3_data_store', '~> 1.2'
gem 'excon', '~> 0.102.0'
gem 'factory_bot_rails', '~> 4.8.2'
gem 'faker', '~> 3.2.1'
gem 'figaro', '~> 1.2.0'
gem 'geocoder', '~> 1.5.1'
gem 'gettext', '~> 3.4.7', require: false
gem 'gettext_i18n_rails', '~> 1.12.0'
gem 'google-protobuf', '~> 3.22.2'
gem 'grpc', '~> 1.49.1'
gem 'grpc_newrelic_interceptor'
gem 'httparty'
gem 'icalendar', '~> 2.4.1'
gem 'iso-639', '~> 0.2.8'
gem 'jbuilder', '~> 2.11', '>= 2.11.5'
gem 'jwt', '~> 2.5'
gem 'logging'
gem 'lograge', '~> 0.12.0'
gem 'logstash-event', '~> 1.2', '>= 1.2.02'
gem 'looker-sdk', '~> 0.0.7'
gem 'mail', '~> 2.7.1'
gem 'mailgun-ruby', '~> 1.2', '>= 1.2.10'
gem 'makara', '~> 0.5.1'
gem 'monetize', '~> 1.12.0'
gem 'naught'
gem 'nested_form', '~> 0.3.2'
gem 'netaddr', '1.5.3'
gem 'net-imap', '0.3.7'
gem 'net-pop', '0.1.2'
gem 'net-smtp', '0.3.3'
gem 'newrelic_rpm', '~> 9.2', '>= 9.2.2' # Monitoring system
gem 'nokogiri', '= 1.13.10' # until ruby 2.7 version
gem 'oj', '~> 3.7', require: !ENV['USE_OPTIMIZED_JSON'].to_s.empty?
gem 'omniauth'
gem 'omniauth-google-oauth2'
gem 'paper_trail', '~> 13.0.0'
gem 'paper_trail-association_tracking'
gem 'paranoia', '~> 2.1'
gem 'pg', '~> 1.1'
gem 'puma', '~> 4.3.12'
gem 'racecar', '~> 2.8.2'
gem 'rack', '~> 2.1.0'
gem 'rack-cache', require: 'rack/cache'
gem 'rack-cors', '~> 2.0.0'
gem 'rack-oauth2', '~> 1.21.3' # For the oauth2 api
gem 'rack-proxy', '~> 0.6.5'
gem 'rails', '~> 6.1.7'
gem 'rails-observers', '~> 0.1.2'
gem 'raindrops', '~> 0.19.0' # force new version of raindrops
gem 'rbtrace', '~> 0.4.14', require: 'rbtrace'
gem 'rchardet19', '~> 1.3.5'
gem 'redcarpet', '~> 3.5.1' # Markdown parser for Updates
gem 'redis', '~> 4.1'
gem 'redis-rails', '~> 5.0.2'
gem 'request_store', '~> 1.4', '>= 1.4.1'
gem 'request_store-sidekiq', '~> 0.1.0'
gem 'rest-client', '~> 2.0.2'
gem 'ruby-filemagic', '~> 0.7.2'
gem 'rubyntlm', '~> 0.6.1'
gem 'ruby-saml', '~> 1.0.0'
gem 'rubyzip', '~> 1.3.0'
gem 'rufus-scheduler', '~> 3.5.0'
gem 'sanitize_email', '~> 2.0'
gem 'sass', '~> 3.5.6'
gem 'savon', '~> 2.11.1'
gem 'scientist', '~> 1.2.0'
gem 'secure_headers', '~> 6.5'
gem 'settingslogic', '~> 2.0.9'
gem 'sidekiq', '~> 5.2'
gem 'sidekiq-status'
gem 'slack_mrkdwn', '~> 2.2'
gem 'slack-ruby-client'
gem 'slim-rails', '~> 3.1.0'
gem 'sprockets', '< 4'
gem 'trimmable'
gem 'useragent', '~> 0.16.10'
gem 'uuidtools', '~> 2.1.3'
gem 'virtus', '~> 1.0', '>= 1.0.5'
gem 'will_paginate', '~> 4'
gem 'zipkin-tracer', '~> 0.39.1'
gem 'zipline', '~> 1.4.0'
source 'https://05583af8:[email protected]/' do
gem 'sidekiq-ent'
gem 'sidekiq-pro'
end
group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'brakeman'
gem 'guard', '~> 2.15.0'
gem 'guard-rspec', '~> 4.7.3', require: false
gem 'lol_dba'
gem 'paint', '~> 2.0.1', require: false
gem 'rack-mini-profiler'
gem 'railroady'
gem 'rails-erd', '1.5.2'
gem 'reek'
gem 'rubocop'
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-rspec'
end
group :test, :development do
gem 'amazing_print'
gem 'benchmark-ips'
gem 'bullet'
gem 'byebug', '~> 11.1'
gem 'capybara-screenshot', '1.0.26'
gem 'database_cleaner', require: false
gem 'knapsack_pro', '~> 5.7'
gem 'launchy', '2.5.2'
gem 'parallel_tests'
gem 'pry', '~>0.14.2', require: false
gem 'pry-byebug', '~> 3.10.1'
gem 'rspec-activemodel-mocks'
gem 'rspec-rails'
gem 'spring', '~> 2'
gem 'spring-commands-cucumber'
gem 'spring-commands-rspec'
gem 'timecop', '0.9.4'
gem 'webmock', '~> 3.19', '>= 3.19.1', require: false
end
group :test do
gem 'bunny-mock', require: false
gem 'capybara', '3.36.0'
gem 'cucumber-rails', '2.1.0', require: false
gem 'json-schema'
gem 'json_spec'
gem 'mock_redis', require: false
gem 'rails-controller-testing'
gem 'rspec_junit_formatter'
gem 'selenium-webdriver', '3.142.7'
gem 'shoulda'
gem 'simplecov', require: false
gem 'simplecov-lcov', require: false
gem 'webdrivers', '4.7.0'
end Gemfile.lock
--- TEMPLATE END ----------------------------------------------------------------
|
@postmodern — following up on the above comment, this output might help. Note that I'd already cleaned up
Since the problems I'm having seem to revolve around
|
@jcburley I copied your Gemfile and was successfully able to install all gems (minus enterprise sidekiq) with Ruby 3.2.2 on both my MacBook Air M1 and Intel iMac. I also tried it with your Gemfile.lock and everything installed just fine. The only thing I didn't already have was libmagic, and all I needed to do was As I mentioned in the ruby-build thread, the issues you are seeing are 100% due to your broken development setup, as Another thing I noticed is that your Given that your Gemfile has Enterprise Sidekiq, I'm assuming you need to get this app running for your job. In that case, I would think that your manager would prefer to spend $129 to get you up and running in about 15 minutes with Ruby on Mac rather than have you waste more time on this, given that you've already spent a few days trying to get set up. |
@monfresh — thanks for looking further into this. As I've already (I believe?) replied to you on a different thread, I'm (finally!!) unblocked. I'll look into that |
Description
Ruby 3.1.4 fails to install on macOS Sonoma 14.0
Steps To Reproduce
Steps to reproduce the bug:
$ ruby-install ruby 3.1.4
$ ruby-install ruby 3.1.4 -- --enable-yjit
$ ruby-install ruby 3.1.4 -- --enable-yjit --with-jemalloc CPPFLAGS="-I$HOMEBREW_PREFIX/opt/jemalloc/include" LDFLAGS="-L$HOMEBREW_PREFIX/opt/jemalloc/lib"
Expected Behavior
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: