Gem install error (sass compass)
Open up a command prompt and type:
chcp 1252
Then run the installer again:
gem install sass
Unfortunately there's a known issue in some versions of Ruby regarding this. See here
Install sass and compass
gem update --system
gem update
gem list
Check package version
Compass - 1.0.1
sass - 3.4.9
Can't get sass + compass + susy installed due to version conflict
The dependencies are incompatible: susy 2.0.0 depends on sass ~> 3.3.0
whereas compass 0.12.3 depends on sass = 3.2.14
.
The error message says the same:
Unable to activate susy-2.0.0, because sass-3.2.14 conflicts with sass (~> 3.3.0)
You can a) downgrade susy to a version that's working with sass 3.2.14 or b) upgrade compass to a version compatible with sass 3.3.x.
A compatible version is compass 1.0.0 (or later) depending on sass < 3.5, >= 3.3.13
. You can install it via
gem update compass
It might be easier to use a gem manager like Bundler. It automatically resolves dependencies and installs the appropriate versions.
gem install compass error after Mac OS Sierra 10.12.6 update
Don't do sudo gem install -n /usr/local/bin compass
The whole point of using rbenv
is to let it handle all of your dependencies and not have to deal at all with your OS system ruby or it's gems. You need to get your $PATH
configuration right and then you won't need to ever use sudo
in fact you should NOT with gem install
or any gem
commands after getting your environment setup correctly.
Did you happen to try npm install -g grunt-cli
?
UPDATE: as expect your $PATH is not correct.
Close all terminals. Start a new one. Then run this.
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
This should help you figure out what's wrong in your $PATH
setting.
Refer to https://github.com/rbenv/rbenv#installation
But first specifically try:
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
Then restart your terminal and check gem env
again and see if your path includes .rbenv
If these steps don't get you working then I suggest to fully uninstall rbenv and start over from step 1 of https://github.com/rbenv/rbenv#installation
Related Topics
Ruby 1.9 + Sinatra Incompatible Character Encodings: Ascii-8Bit and Utf-8
Does Ruby Provide a Way to Do File.Read() with Specified Encoding
Keep Form Fields Filled After an Error (Ror)
Has_Many :Through with Counter_Cache
In 'Require': No Such File to Load -- Iconv (Loaderror)
Double-Splat Operator Destructively Modifies Hash - Is This a Ruby Bug
Node.Js Not Found by Rails/Execjs
Changing Table Name at Query Run Time in a Rails Application
Weird Imoperfection in Ruby Blocks
Shell Out from Ruby While Setting an Environment Variable
Rails 3 - No Such File to Load -- Openssl
What's the Difference Between Gets.Chomp() VS. Stdin.Gets.Chomp()
Rails: Postgres Permission Denied to Create Database on Rake Db:Create:All
Why Should One Use a Http Server in Front of a Framework Web Server
How to Generate Zip File Without Saving to the Disk with Ruby