Trying to compile using compass: could not find compass

387 views
Skip to first unread message

Javier Garcia

unread,
Nov 27, 2014, 2:18:29 PM11/27/14
to compas...@googlegroups.com
Im trying to run this:

'/usr/bin/ruby' '/usr/bin/compass' 'compile' '/tmp' '--boring' '--config' '/tmp/assetic_compassCf9JKb' '--sass-dir' '' '--css-dir' '' '/tmp/assetic_compassup7Ux7.scss'

Im getting this:

    /home/tirengarfio/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'compass' (>= 0) among 14 total gem(s) (Gem::LoadError)
    Checked in 'GEM_PATH=/tmp/.gem/ruby/2.1.0:/home/tirengarfio/.rvm/rubies/ruby-2.1.5/lib/ruby/gems/2.1.0', execute `gem env` for more information
        from /home/tirengarfio/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:324:in `to_spec'
        from /home/tirengarfio/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:58:in `gem'
        from /usr/bin/compass:22:in `<main>'

This is my configuration:

    rvm rubies
   
    =* ruby-2.1.5 [ x86_64 ]
   
    # => - current
    # =* - current && default
    #  * - default


And these are the symlinks to `/usr/bin/ruby` and `/usr/bin/sass` and `/usr/bin/compass`:

    /usr/bin/sass -> /home/tirengarfio/.rvm/gems/ruby-2.1.5/bin/sass
    /usr/bin/ruby -> /home/tirengarfio/.rvm/rubies/ruby-2.1.5/bin/ruby
    /usr/bin/compass -> /home/tirengarfio/.rvm/gems/ruby-2.1.5/bin/compass

Here you have also the `gem env` output:

    RubyGems Environment:
      - RUBYGEMS VERSION: 2.4.3
      - RUBY VERSION: 2.1.5 (2014-11-13 patchlevel 273) [x86_64-linux]
      - INSTALLATION DIRECTORY: /home/tirengarfio/.rvm/gems/ruby-2.1.5
      - RUBY EXECUTABLE: /home/tirengarfio/.rvm/rubies/ruby-2.1.5/bin/ruby
      - EXECUTABLE DIRECTORY: /home/tirengarfio/.rvm/gems/ruby-2.1.5/bin
      - SPEC CACHE DIRECTORY: /home/tirengarfio/.gem/specs
      - SYSTEM CONFIGURATION DIRECTORY: /etc
      - RUBYGEMS PLATFORMS:
        - ruby
        - x86_64-linux
      - GEM PATHS:
         - /home/tirengarfio/.rvm/gems/ruby-2.1.5
         - /home/tirengarfio/.rvm/gems/ruby-2.1.5@global
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - https://rubygems.org/
      - SHELL PATH:
         - /home/tirengarfio/.rvm/gems/ruby-2.1.5/bin
         - /home/tirengarfio/.rvm/gems/ruby-2.1.5@global/bin
         - /home/tirengarfio/.rvm/rubies/ruby-2.1.5/bin
         - /home/tirengarfio/.rvm/bin
         - /usr/local/sbin
         - /usr/local/bin
         - /usr/sbin
         - /usr/bin
         - /sbin
         - /bin
         - /usr/games
         - /usr/local/games

I have been 'fighting' with this error for hours. I have tried with another ruby version.

Any help?

Steve Schwarz

unread,
Nov 27, 2014, 9:35:02 PM11/27/14
to compas...@googlegroups.com
Hi Javier,

Have you tried compass alone? I've never invoked ruby to run the compass executable. I do:

/usr/bin/compass compile /tmp --boring --config ....


--
You received this message because you are subscribed to the Google Groups "Compass" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compass-user...@googlegroups.com.
To post to this group, send email to compas...@googlegroups.com.
Visit this group at http://groups.google.com/group/compass-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages