Problems with Rails Installation

Asked

Viewed 72 times

0

Good afternoon. While trying to install Rails and add-ons for your installation, I ran into a problem. I can perform the installation and its complement.

I followed this tutorial (https://gorails.com/setup/ubuntu/18.04#final-Steps)

When testing (Ubuntu use) Rails server by terminal, appears the page "Yay, you’re on Rails". So far so good. The problem comes after I reset the laptop. All continuous "installed", ruby, Node, database, etc. However, when I try to access any of them, I get the message from the terminal as if nothing is installed.

Has anyone here ever been through anything like this? Thank you.

BS: I have already remade the process and the error persists and occurs in the same way.

Obs1: I understand how the question is vague, but I have not found solution in other forums and I do not get any error message, only that nothing is installing, including ruby, bundler, mysql, etc. I ask you not to mark pending in my post. Since this occurred in a past publication and there was nothing wrong with my question. Grateful.

  • If you can post a few screens, it would help a lot. ruby -v and rails -v return what?

2 answers

0

0

Everybody goes through something like this when they start setting up the environment, my first answer is: não desanima! The things you installed are all there on your machine anyway, just need to be able to access the Ruby version manager to be able to use.

I think what might be happening to you is something missing from the configuration of rbenv ou do rvm, should not be being set at the time you re-open your terminal. Try to re-run those steps:

cd git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.6.3
rbenv global 2.6.3
ruby -v

Or instead of using the rbenv, uses the rvm: https://rvm.io/rvm/install

Browser other questions tagged

You are not signed in. Login or sign up in order to post.