Trouble installing RubyInline

I am having trouble installing RubyInline on my Mint Linix OS.

$ gem install RubyInline

I was wondering if anyone else has come across this problem and knows
how to get around this?? And by the way, YES I have checked to see if I
have RubyGems installed the right way :slight_smile:

if you dont say what error you get, no one will help you

$ gem install RubyInline
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions into the /var/lib/gems/1.8
directory.

$ sudo gem install RubyInline
ERROR: Error installing RubyInline:
ZenTest requires RubyGems version ~> 1.8. Try ‘gem update --system’ to
update RubyGems itself.

$ gem update --system
ERROR: gem update --system is disabled on Debian, because it will
overwrite the content of the rubygems Debian package, and might break
your Debian system in subtle ways. The Debian-supported way to update
rubygems is through apt-get, using Debian official repositories.
If you really know what you are doing, you can still update rubygems by
setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please
remember that this is completely unsupported by Debian.

$ sudo apt-get gem RubyInline
E: Invalid operation gem

okay I will try that, thanks

If you want Debian to manage the package, start with apt-get search
rubyinline (or whatever the apt flag for search is) and find out the
name of the package in the Debian repos.

You would be far better off installing rvm to isolate yourself from all
that Debian silliness.