ruby - Sass can't be run unless as superuser Linux Mint -


i'm using linux mint 16 cinnamon, , i've lately installed sass. oddly, can't use sass unless i'm superuser, isn't great...

as example, if type sass -v in terminal su, have right sass version displayed. if i'm not su, have message:

/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': not find sass (>= 0) amongst [bundler-1.5.3, bundler-unload-1.0.2, executable-hooks-1.3.1, gem-wrappers-1.2.4, rubygems-bundler-1.4.2, rvm-1.11.3.9] (gem::loaderror)     /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'     /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'     /usr/local/bin/sass:22:in `<main>' 

the same thing happens when want start using it. have su. i've uninstalled/reinstalled sass, doesn't work.

any tip, please?

you may first want run gem env see difference between returns when particular user , returns when superuser. of results, "gem paths" important here.

and when user, can sort of forcefully set $gem_home (your default gem location) , $gem_path (your available gem locations) location superuser looking at. should this:

export gem_home=/where/superuser/was/looking/at export gem_path=/where/superuser/was/looking/at 

just 1 of possible solutions can try. nice if know how installed ruby.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -