How to install and run compass with rvm and gem?

OS: Mint Linux 11 64bit

I don’t know anything about ruby, I just need a compass.

I installed rvm and ruby ​​1.9.3 and set ruby ​​by default

$ rvm list rvm rubies =* ruby-1.9.3-p125 [ x86_64 ] # => - current # =* - current && default # * - default 

I installed the compass via gem

 $ gem list *** LOCAL GEMS *** bundler (1.1.3) chunky_png (1.2.5) compass (0.12.1) fssm (0.2.8.1) rake (0.9.2) rubygems-bundler (0.2.8) sass (3.1.15) 

But I can not start the compass , because gem / bin is not in $ PATH

I added it to $ PATH and ran the compass again:

 $ compass /home/il/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find compass (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError) from /home/il/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /home/il/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1230:in `gem' from /home/il/.rvm/gems/ruby-1.9.3-p125/bin/compass:18:in `<main>' 

Can anyone help?

+6
source share
2 answers

$ rvm wrapper 1.9.3@compass --no-prefix compass

+13
source

Assuming rvm is installed, you can do something like:

 $ rvm install 2.1.1 $ rvm @global do gem install compass 

No need to do sudo.

+11
source

Source: https://habr.com/ru/post/911843/


All Articles