Not able to run the server for any app

Rails 5.2.1

Ruby 2.5.1

are installed

Not able to run server for any app What am I missing? rails s

Traceback (most recent call last):

2: from /usr/local/bin/rails:23:in `<main>'

1: from /Users/apple/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'

/Users/apple/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe’: can’t find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)

Try running gem pristine --all

You should use rvm to install rails instead of using system /urs/local/bin/rails

Or actually just gem install rails, I dunno how you end up using a system rails