Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start rails server: Ubuntu 18.04 (AWS EC2 instance) #1

Open
dusadvarshit opened this issue Dec 8, 2020 · 1 comment
Open

Comments

@dusadvarshit
Copy link

System use: ubuntu 18.04 (AWS EC2)

I installed ruby & rails using the tutorial presented here: https://gorails.com/setup/ubuntu/20.10

I was able to run the tutorial example presented in the above link and get the rails server running.

However, today I came across the railsfriends tutorial on Youtube and attempted to follow the project. Unfortunately after forking the directory and trying to start the rails server, I keep getting the following error.

Ignoring executable-hooks-1.6.0 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.0
Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0
Traceback (most recent call last):
4: from bin/rails:3:in <main>' 3: from bin/rails:3:in require_relative'
2: from /home/ubuntu/varshit/rails/railsfriends/config/boot.rb:3:in <top (required)>' 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler/setup (LoadError)

I am quite confused about the above.
My rvm list gives me the following:

=> ruby-2.6.6 [ x86_64 ]

  • ruby-2.7.2 [ x86_64 ]

=> - current

=* - current && default

* - default

However, the system had ruby (I think by default to 2.5.0).

I am completely unsure why this is happening and why I can run right rails from one project and not from another.

@earningideasgroup
Copy link

Repeat this process again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants