Hi I am new to Ruby on Rails. When I run rails db:create
, I got the following error when I run it on M1 MBP:
/Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack.rb:8:in `require':
dlopen(/Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle, 0x0009):
missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle
- /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle (LoadError)
My ruby version is ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]
Any help is appreciated!