Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't use compass after installing it

I don't seem to be able to get compass working on Vagrant using this Vagrantfile. See the rest of the bash script's used right here(removed repo) (see Vaprobash if you want to provision your Vagrant Ubuntu Box!).

So I was fallowing a gruntjs course, when I had to use grunt server. The only problem is that it needs a newer ruby version (1.9+ I believe instead of the 1.8) and it needs compass. So I have solved the ruby part by installing RVM and installing the latest stable version. Compass should be easy to get gem install compass and it does seem to be installed. But when I type in compass -v I get the fallowing error:

/home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- sass/script/node (LoadError)     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass.rb:4:in `each'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'     from /home/vagrant/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'     from /home/vagrant/.rvm/gems/ruby-2.1.0/bin/compass:23:in `load'     from /home/vagrant/.rvm/gems/ruby-2.1.0/bin/compass:23:in `<main>'     from /home/vagrant/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'     from /home/vagrant/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>' 

So I am not sure what is going wrong except for the error telling me it's missing files. Anyone got some hints to what could be the problem?

.bash_profile contains the path info:

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile  [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 

rvm -v and ruby -v work just fine and after installing gem install compass sass -v seem to work as well.

You can replicate everything using Vagrant and VirtualBox. Just download the Vagrantfile from my github mentioned above and vagrant up.

like image 366
Ilyes512 Avatar asked Jan 12 '14 19:01

Ilyes512


People also ask

Why my MongoDB compass is not working?

Likely CausesYou provide no hostname or an invalid hostname to the Compass connect dialog. The destination server rejects a connection on an incorrect port. Your MongoDB cluster or server has been shutdown or the server hostname has changed. You have a firewall actively blocking connections to/from your local network.

Is MongoDB compass free?

MongoDB Compass is a powerful GUI for querying, aggregating, and analyzing your MongoDB data in a visual environment. Compass is free to use and source available, and can be run on macOS, Windows, and Linux.

How do I download and install compass?

I wound up downloading and installing Compass separately. It's available from the Download Center. You can select the version and OS there: Compass Download Options. The installer lets you choose the destination directory. You can also add a Desktop shortcut in Windows. Hope that helps!

Why can’t I install the Compass app on my watch?

So if you use an older model, you cannot install the compass app–the compass requires hardware included only the Series 5 onwards. Also, your watch needs to use at least watchOS 6 and your iPhone iOS 13.

Is there a way to map the compass to a number?

Now, there is no such option for the Compass, and instead players will have to manually map each special slot item to one of the number keys - like you would for healing items in your rig or pockets. Don't miss the Escape From Tarkov new guns in 12.12.30 to go alongside the special slot items.

Is it possible to bind a compass to a key input?

Any item placed in the special slots is not lost upon death, so it is a really great way of keeping hold of useful items, or specific items you might need for quests. However, with this change, Battlestate Games have removed the option to discreetly bind the compass to a key input.


2 Answers

I asked for help on the official compass Github issue's page and got the answer for this problem.

The GitHub issue is right here.

How to fix this:

When installing compass (v0.12.2), it will download the latest sass v3.3.0.rc3 (cause it's a dependency), but compass won't work with the latest sass. You either upgrade compass to the latest alpha version (0.13.*) or downgrade sass to 3.2.*. I choose the last one:

gem uninstall sass --version 3.3.0.rc.3 gem install sass --version 3.2.18 compass -v # Working :) 

Make sure you use the version you got installed. Find out by typing this:

sass --version 
like image 133
Ilyes512 Avatar answered Oct 02 '22 09:10

Ilyes512


have a look at this answer https://stackoverflow.com/a/21082978/497756 - it was for other problem but should solve yours too.

like image 36
mpapis Avatar answered Oct 02 '22 07:10

mpapis