Ruby由rbenv安裝。爲什麼在輸入(LoadError)中找不到Ruby腳本?
$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]
$ which ruby
/home/user/.rbenv/shims/ruby
$ which sass
/home/user/.rbenv/shims/sass
$ gem list
*** LOCAL GEMS ***
bigdecimal (1.1.0)
bundler (1.2.4)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.4)
sass (3.2.5)
這是我config.yml:
# Assetic Configuration
assetic:
// ...
ruby: /home/user/.rbenv/shims/ruby
filters:
cssrewrite: ~
sass:
bin: /home/user/.rbenv/shims/sass
// ...
這是錯誤我得到:
[message] An error occurred while running:
'/home/user/.rbenv/shims/ruby' '/home/user/.rbenv/shims/sass' '--load-path' '/path/to/symfony2/src/My/AnyBundle/Resources/public/css' '--cache-location' '/tmp' '/tmp/assetic_sassYbl6MI'
Error Output:
ruby: no Ruby script found in input (LoadError)
我在其他設置中的錯誤:
config.yml:
# Assetic Configuration
assetic:
// ...
ruby: /home/user/.rbenv/shims/ruby
filters:
cssrewrite: ~
sass: ~
// ...
這是我的錯誤:
Error Output:
ruby: No such file or directory -- /usr/bin/sass (LoadError)
薩斯不起作用。這是引用寶石的問題嗎?
本文幫助我解決了這個問題:http://vvv.tobiassjosten.net/symfony/compass-loaderror-in-assetic-and-symfony2/?utm_source=feedburner&utm_campaign=Feed%3A+symfony%2Fplanet+%28Symfony+博客+行星%29&utm_medium =進料 – scones 2017-01-17 17:05:09