現在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
source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "2.7.2" # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem "rails", "7.0.0" # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] gem "sprockets-rails" # Use postgresql as the database for Active Record gem "pg", "~> 1.1" # Use the Puma web server [https://github.com/puma/puma] gem "puma", "~> 5.0" # Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] gem "importmap-rails" # Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] gem "turbo-rails" # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] gem "stimulus-rails" # Build JSON APIs with ease [https://github.com/rails/jbuilder] gem "jbuilder" # Use Redis adapter to run Action Cable in production # gem "redis", "~> 4.0" # Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] # gem "kredis" # Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] # gem "bcrypt", "~> 3.1.7" # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] # Reduces boot times through caching; required in config/boot.rb gem "bootsnap", require: false # Use Sass to process CSS # gem "sassc-rails" # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # gem "image_processing", "~> 1.2" group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] end group :development do # Use console on exceptions pages [https://github.com/rails/web-console] gem "web-console" # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] # gem "rack-mini-profiler" # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" end group :test do # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] gem "capybara" gem "selenium-webdriver" gem "webdrivers" end ~ "Gemfile" 72L, 2265B
・追記
情報不足で申し訳ありません
コメントを踏まえた上で実行手順および参考ページを記載いたします
手順
$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>'
まだ回答がついていません
会員登録して回答してみよう