I'm tryng to install rails with gem install rails
but when I try that I get
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
So I tried using sudo gem install rails
and I get
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
I've checked on the internet and it says I should install RVM but when I try to do that it tells me :
Error running './configure --prefix=/Users/manhattan/.rvm/rubies/ruby-2.7.0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl@1.1 --disable-install-doc --enable-shared', please read /Users/manhattan/.rvm/log/1589107425_ruby-2.7.0/configure.log There has been an error while running configure. Halting the installation.
Could someone help me please.