現在MacbookでRailsの環境構築を行なっておりましたが、Rails sで詰まってしまい、原因も調べてみてもわからない状況となっております
・発生しているエラー
rails aborted!
LoadError: dlopen(/Users/apple/work/RubyOnRails/vendor/bundle/ruby/2.7.0/gems/puma-5.5.2/lib/puma/puma_http11.bundle, 0x0009): symbol not found in flat namespace '_SSL_get1_peer_certificate' - /Users/apple/work/RubyOnRails/vendor/bundle/ruby/2.7.0/gems/puma-5.5.2/lib/puma/puma_http11.bundle
SSL_get1_peer_certificateが見つかっていないためエラーが発生しているようにみられるのですがそもそもSSL_get1_peer_certificateについての情報が調べてみても出てきません。
解決法をご存知の方がいらっしゃったらご教授お願いいたします。
使用環境
ソフトウェアバージョン
ProductName: macOS
ProductVersion: 12.1
BuildVersion: 21C52
Ruby
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin21]
Rails
7.0.0
Gemfile
1source "https://rubygems.org" 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby "2.7.2" 5 6# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" 7gem "rails", "7.0.0" 8 9# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] 10gem "sprockets-rails" 11 12# Use postgresql as the database for Active Record 13gem "pg", "~> 1.1" 14 15# Use the Puma web server [https://github.com/puma/puma] 16gem "puma", "~> 5.0" 17 18# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] 19gem "importmap-rails" 20 21# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] 22gem "turbo-rails" 23 24# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] 25gem "stimulus-rails" 26 27# Build JSON APIs with ease [https://github.com/rails/jbuilder] 28gem "jbuilder" 29 30# Use Redis adapter to run Action Cable in production 31# gem "redis", "~> 4.0" 32 33# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] 34# gem "kredis" 35 36# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] 37# gem "bcrypt", "~> 3.1.7" 38 39# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 40gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] 41 42# Reduces boot times through caching; required in config/boot.rb 43gem "bootsnap", require: false 44 45# Use Sass to process CSS 46# gem "sassc-rails" 47 48# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] 49# gem "image_processing", "~> 1.2" 50 51group :development, :test do 52 # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem 53 gem "debug", platforms: %i[ mri mingw x64_mingw ] 54end 55 56group :development do 57 # Use console on exceptions pages [https://github.com/rails/web-console] 58 gem "web-console" 59 60 # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] 61 # gem "rack-mini-profiler" 62 63 # Speed up commands on slow machines / big apps [https://github.com/rails/spring] 64 # gem "spring" 65end 66 67group :test do 68 # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] 69 gem "capybara" 70 gem "selenium-webdriver" 71 gem "webdrivers" 72end 73~ 74"Gemfile" 72L, 2265B 75
・追記
情報不足で申し訳ありません
コメントを踏まえた上で実行手順および参考ページを記載いたします
手順
$rails new sample
$cd sample
$bundle install
$rails s
手順補足情報
rails new実行時下記のようなエラーが発生します
rails aborted! LoadError: dlopen(/Users/apple/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/puma_http11.bundle, 0x0009): symbol not found in flat namespace '_SSL_get1_peer_certificate' - /Users/apple/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/puma_http11.bundle /Users/apple/work/RubyOnRails/sample/config/application.rb:7:in `<main>' /Users/apple/work/RubyOnRails/sample/Rakefile:4:in `<main>' bin/rails:4:in `<main>' (See full trace by running task with --trace) rails turbo:install stimulus:install rails aborted! LoadError: dlopen(/Users/apple/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/puma_http11.bundle, 0x0009): symbol not found in flat namespace '_SSL_get1_peer_certificate' - /Users/apple/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/puma_http11.bundle /Users/apple/work/RubyOnRails/sample/config/application.rb:7:in `<main>' /Users/apple/work/RubyOnRails/sample/Rakefile:4:in `<main>' bin/rails:4:in `<main>'