3
我試圖設置Assetic PHP資產編譯器,並且使用CoffeeScript,Stylus和Less(所有NPM包完美工作)。但是,對於Sass,我有一個問題。這裏是我到目前爲止所採取的步驟:使用Assetic PHP安裝後,Sass被破壞使用Assetic PHP
- 我使用Ruby 1.9.3一起安裝RVM跑創業板安裝薩斯。
- 我跑其中sass。這返回/home/jon/.rvm/gems/ruby-1.9.3-p0/bin/sass。
- 我將該位置複製到了Assetic中的SassFilter.php中,它在構造函數中說$ sassPath =''。這是相同的方式我做咖啡等
現在,當我從我的主編譯文件解析PHP,我得到這個消息:
PHP Fatal error: Uncaught exception 'RuntimeException' with message '/home/jon/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find sass (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
from /home/jon/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /home/jon/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:1208:in `gem'
from /home/jon/.rvm/gems/ruby-1.9.3-p0/bin/sass:18:in `<main>'
' in /home/jon/www/compilers/Assetic/Filter/Sass/SassFilter.php:158
Stack trace:
#0 /home/jon/www/compilers/Assetic/Filter/FilterCollection.php(62): Assetic\Filter\Sass\SassFilter->filterLoad(Object(Assetic\Asset\FileAsset))
#1 /home/jon/www/compilers/Assetic/Asset/BaseAsset.php(83): Assetic\Filter\FilterCollection->filterLoad(Object(Assetic\Asset\FileAsset))
#2 /home/jon/www/compilers/Assetic/Asset/FileAsset.php(57): Asseti in /home/jon/www/compilers/Assetic/Filter/Sass/SassFilter.php on line 158
我使用Ubuntu 11.10,PHP 5.3.6 ,RVM 1.10.2和Ruby 1.9.3。我的外殼是ZSH。
我有同樣的問題,直接適當的環境之外運行這個二進制文件的效果,你解決了這個問題嗎? – ChocoDeveloper