Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install and run compass with rvm and gem?

OS: Mint Linux 11 64bit

I know nothing about ruby, I just want Compass.

I've installed rvm and ruby 1.9.3, and set the default ruby

$ rvm list

rvm rubies

=* ruby-1.9.3-p125 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

I've installed 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 cannot run compass, because gem/bin is not in $PATH

I added it to $PATH and run 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 please?

like image 771
iron9light Avatar asked Mar 28 '12 09:03

iron9light


People also ask

Does RVM work on Windows?

RVM supports most UNIX like systems and Windows (with Cygwin or Bash on Ubuntu on Windows).


1 Answers

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

like image 144
iron9light Avatar answered Nov 15 '22 06:11

iron9light