Charlie Guan
Charlie Guan

Reputation: 196

Ruby & Rails available in Linux Mint terminal, but not available in RubyMine's terminal

Summary

On my machine, Ruby and Rails are only available in Linux Mint standalone terminal, but not available in RubyMine's integrated terminal. I suspect it's related to RubyMine's terminal not using login shell.

Details

I'm on Linux Mint 21.3 Cinnamon. I installed Ruby using rvm, then installed Rails using gem:

version-available-in-terminal

However, if I were to run the same commands in RubyMine's terminal (which is also /bin/bash), I can't find those:

version-unavailable-in-rubymine

Interestingly, if I were to turn off "login shell" in the native terminal:

login-shell-off

I would get the same result:

version-unavailable-in-terminal

Questions

  1. What is this "login shell", and why are Ruby and Rails only available in login shell on mode? Is it because I installed it in that mode?
  2. How should I make Ruby & Rails command available in RubyMine's terminal? I didn't find a way to turn on login shell in RubyMine's settings so I can't verify that it is indeed the cause. Should I just install Ruby & Rails again in login shell off mode?

Upvotes: 0

Views: 50

Answers (0)

Related Questions