2014-09-02 6 views
4

Ruby Compass가 작동하지 않으며 코드가 뒤죽박죽이며 웹에서 10-20 가지 방법을 시도했습니다. 당신이 거기에서 뭔가를 먹고 싶어 경우에 당신이 나의 보석과 오류의 터미널 덤프를 읽을 수있는 쉬운 방법을 찾을 수있는 스크린 샷에서 Ruby Compass 컴파일러가 작동하지 않습니다. 오류가 있습니다. [54]

는, 당신은

감사합니다 스크린 샷 아래에있는 텍스트를 찾을 수 있습니다 , 건배, 로버트 다음 나침반 확장을 설치하여 고정

enter image description here

RubyGems is a sophisticated package manager for Ruby. This is a 
basic help message containing pointers to more information. 

    Usage: 
    gem -h/--help 
    gem -v/--version 
    gem command [arguments...] [options...] 

    Examples: 
    gem install rake 
    gem list --local 
    gem build package.gemspec 
    gem help install 

    Further help: 
    gem help commands   list all 'gem' commands 
    gem help examples   show some examples of usage 
    gem help gem_dependencies gem dependencies file guide 
    gem help platforms   gem platforms guide 
    gem help <COMMAND>   show help on COMMAND 
            (e.g. 'gem help install') 
    gem server     present a web page at 
           http://localhost:8808/ 
           with info about installed gems 
    Further information: 
    http://guides.rubygems.org 
sh-3.2# gem list 

*** LOCAL GEMS *** 

bigdecimal (1.2.5, 1.2.0) 
CFPropertyList (2.2.8, 2.2.0) 
chunky_png (1.3.1) 
compass (1.0.1) 
compass-core (1.1.0.alpha.0, 1.0.1) 
compass-import-once (1.0.5) 
ffi (1.9.3) 
io-console (0.4.2) 
json (1.8.1, 1.7.7) 
libxml-ruby (2.7.0, 2.6.0) 
mini_portile (0.6.0) 
minitest (5.4.1, 4.3.2) 
multi_json (1.10.1) 
nokogiri (1.6.3.1, 1.5.6) 
power_assert (0.1.3) 
psych (2.0.5, 2.0.0) 
rake (10.3.2, 0.9.6) 
rb-fsevent (0.9.4) 
rb-inotify (0.9.5) 
rdoc (4.1.1, 4.0.0) 
rubygems-update (2.4.1) 
sass (3.4.2) 
sqlite3 (1.3.9, 1.3.7) 
test-unit (3.0.1, 2.0.0.0) 
sh-3.2# compass compile -e production --force 
LoadError on line ["54"] of /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- rgbapng 
Run with --trace to see the full backtrace 

답변

7

:

gem install compass-normalize 
gem install compass-rgbapng 
gem install toolkit 
+6

다른 사람들에게도 알려주고 싶습니다. 요세미티를 새로 설치할 때와 같은 문제가 있습니다. 문제가 해결되지 않았습니다. –

1

그게 나를 위해 해결되지 않았습니다. 그러나, 나는 당신이 아마 gem update compass을 사용하여 최신 버전으로 나침반 보석을 업데이트하여 더욱 쉽게 문제를 해결할 수 있다고 생각

gem uninstall compass 
gem install compass 

사용하여 나침반 보석을 다시 설치하여 문제를 해결할 수 있었다.

참고 : 레일을 사용하는 경우 compass-rails 보석을 업데이트해야 할 수도 있습니다. 그렇지 않으면 compass watch 명령이 중단되기 시작합니다. 이 부분을 참조하십시오 issue on github