osx - Using ruby-gems and compass on OS X + macports -


want use compass & sass , "gems" compass.

i know nothing ruby , ecosystem, , - need running compass watch - nothing more.

because don't want touch system-wide installed ruby, want use macport's one.

i'm using macports many packages, of course have os x developer packages installed (xcode + command line tools), therefore question isn't duplicate this one.

could please write how use macport's compass?

already did:

$ sudo port install ruby $ port select --list ruby  available versions ruby: none (active) ruby18  

so activated macports one

$ sudo port select --set ruby ruby18 

ok, type ruby return /opt/local/bin/ruby. so, installed rb-rubygems package

sudo port install rb-rubygems 

but type gem still returns /usr/bin/gem :(

also installed

 $sudo port install rb-compass 

but compass command still /usr/bin/compass - terrible.

so, please - give advice how activate , use whole macports ruby-suite? step-by-step guide nice. need:

  • compass (+ gems compass)
  • sass (needs compass)
  • ruby
  • gem
  • and whatever else needed compass.

ps: haven't problem other macport's packages - "ruby+macport logic" unclear me.

macports avoids installing stuff in places used same software using different ruby versions. reason, rb-compass not install /opt/local/bin/compass expect it. does, however, install compass executable in couple of places use directly, add path, or symlink /opt/local/bin/compass:

$ port contents rb-compass | grep -e 'compass(-1.8)?$'   /opt/local/bin/compass-1.8   /opt/local/lib/ruby/gems/1.8/bin/compass   /opt/local/lib/ruby/gems/1.8/gems/compass-0.12.2/bin/compass   /opt/local/libexec/ruby1.8/compass 

Comments