Ian
Ian

Reputation: 1467

Ruby works, but gem command not found - via SSH

I'm definitely missing something obvious, but using bash through ssh, I can't seem to get rubygems to work, even though I've installed several rubygems through cpanel on my remote server.

ruby --version

returns

ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux]

Yet if I do

gem env

I get

bash: gem: command not found

What am I missing...? Surely if ruby works, gem should?

Upvotes: 0

Views: 374

Answers (1)

Hauleth
Hauleth

Reputation: 23586

RubyGems is in standard installation since 1.9.x so you need to install RubyGems or use RVM or rbenv to use newer version.

Upvotes: 1

Related Questions