0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

rails serverを実施したときに、pumaについて、mach-o, but wrong architecture

Posted at

#書いた理由
備忘メモ
何度も同じことが起こるので

#起こったこと

rails tutorialを進める過程で
rails s
を実行したとき、コケる

/Users/username/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require': dlopen(/Users/username/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/puma-3.9.1/lib/puma/puma_http11.bundle, 9): no suitable image found.  Did find: (LoadError)
/Users/username/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/puma-3.9.1/lib/puma/puma_http11.bundle: mach-o, but wrong architecture
/Users/username/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/puma-3.9.1/lib/puma/puma_http11.bundle: mach-o, but wrong architecture - /Users/username/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/puma-3.9.1/lib/puma/puma_http11.bundle

※pythonの環境設定をしたら起こったりした…。なぜ…。

#解決したこと
ターミナルでpumaの再インストール
gem uninstall puma && gem install puma

ターミナルで
bundle updatebundle install

※VSCodeのターミナルだとうまく行かない

#思ったこと
何か、シェルの設定とかrbenvの使い方とかそのへんで間違っているような気がしてならない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?