0
我試圖獲得在Cloud9 IDE/VM上運行的Symfony 2項目。我已經安裝了所有必需的庫,但由於某些原因,Assetic無法編譯SASS文件。資產SASS編譯錯誤
[Assetic\Exception\FilterException]
An error occurred while running:
'/usr/local/rvm/rubies/ruby-2.1.1/bin/ruby' '/mnt/shared/sbin/sass' '--load-path' '/home/ubuntu/workspace/lossless-webapp/app/../web/css' '--scss'
'--cache-location' '/tmp' '/tmp/assetic_sassoc5zv2'
Error Output:
/mnt/shared/sbin/sass:1: unknown regexp options - hard
/mnt/shared/sbin/sass:1: no .<digit> floating literal anymore; put 0 before dot
..._PATH=/mnt/shared/lib/ruby/1.9.1 /nix/store/yrs58pvf72cn1mca...
... ^
/mnt/shared/sbin/sass:1: syntax error, unexpected tINTEGER, expecting '('
...PATH=/mnt/shared/lib/ruby/1.9.1 /nix/store/yrs58pvf72cn1mcax...
... ^
/mnt/shared/sbin/sass:1: no .<digit> floating literal anymore; put 0 before dot
...n1mcax0s685yw2dqzzvqv-ruby-1.9.3-p484/bin/sass "[email protected]"
... ^
/mnt/shared/sbin/sass:1: syntax error, unexpected tINTEGER, expecting '('
...1mcax0s685yw2dqzzvqv-ruby-1.9.3-p484/bin/sass "[email protected]"
... ^
/mnt/shared/sbin/sass:1: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
...zvqv-ruby-1.9.3-p484/bin/sass "[email protected]"
... ^
Input:
...
從我認爲它是由資產的SASS呼叫的問題,但我不知道如何解決這個問題。
Symfony 2本身工作得很好,只有SASS通過資產量似乎沒有編譯。我不確定這是否是Cloud9 VM,Ruby,SASS或Assetic中的問題... – wowpatrick 2014-09-03 07:10:50
Cloud9 vm是否使用RVM(Ruby版本管理器)?這可能會導致問題,請看這裏:http://stackoverflow.com/a/19416750/461992 – wowpatrick 2014-09-03 07:21:02
是的,Cloud9正在使用RVM,所以我建議通過wowpatrick測試鏈接中提供的解決方案。 – 2014-09-03 10:26:55