Need helping getting started with Ruby on an m1 MacBook.
I'm new to Ruby on Rails and am having trouble getting my first project up and running.
I used Rosetta to open my terminal and installed homebrew, ruby, rails, postresql, mysql, and sqlite3, as well as setting up my git setups.
I receive this problem when I execute "rails new rails-test -d postgresql."
"The dependency tzinfo—data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only fo r x86—mingw32, x86—mswin32, x64—mingw32, java. To add those platforms to the bun dle, run 'bundle lock add platform x86—mingw32 x86—mswin32 x64—mingw32 java'. There was an error while trying to write to /Users/: /.bundle/cache/compact_index/rubygems.org.443.29603606937 aa4d161703e61606O4e47/yersions.. It is likely that you need to grant write permissions for that path. run bundle binstubs bundler Resolving dependencies... The dependency tzinfo—data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only fo r x86—mingw32, x86—mswin32, x64—mingw32, java. To add those platforms to the bun dle, run 'bundle lock add platform x86—mingw32 x86—mswin32 x64—mingw32 java'. rails webpacker: install rails aborted!
"
When I run rake db:create I get this error
"rake aborted! LoadError: dlopen(/Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpac k.bundle, 9): no suitable image found. Did find: /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle: mach—o, but wrong architecture /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle: mach—o, but wrong architecture — /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib /msgpack/msgpack. bundle "
Any input would be appreciated.