Ruby Cygwin:compass命令没有';安装指南针后不能工作

Ruby Cygwin:compass命令没有';安装指南针后不能工作,ruby,windows,rubygems,cygwin,compass,Ruby,Windows,Rubygems,Cygwin,Compass,我在windows上使用cygwin64。我已经使用命令安装了compass gem install compass 取得了以下成果: Successfully installed compass-1.0.3 Parsing documentation for compass-1.0.3 Done installing documentation for compass after 1 seconds 1 gem installed 但是当我尝试使用compass命令时,它说该命令不存在 与

我在windows上使用cygwin64。我已经使用命令安装了compass

gem install compass
取得了以下成果:

Successfully installed compass-1.0.3
Parsing documentation for compass-1.0.3
Done installing documentation for compass after 1 seconds
1 gem installed
但是当我尝试使用compass命令时,它说该命令不存在

与我在CMD中安装cygwin相比,cygwin的安装有所不同,在CMD中它可以工作。如果我这样做

gem install compass
从cmd,我得到了一个不同类型的安装,包括8个宝石:

C:\Windows\System32>gem install compass
Fetching: chunky_png-1.3.5.gem (100%)
Successfully installed chunky_png-1.3.5
Fetching: multi_json-1.11.2.gem (100%)
Successfully installed multi_json-1.11.2
Fetching: compass-core-1.0.3.gem (100%)
Successfully installed compass-core-1.0.3
Fetching: compass-import-once-1.0.5.gem (100%)
Successfully installed compass-import-once-1.0.5
Fetching: rb-fsevent-0.9.7.gem (100%)
Successfully installed rb-fsevent-0.9.7
Fetching: ffi-1.9.10-x86-mingw32.gem (100%)
Successfully installed ffi-1.9.10-x86-mingw32
Fetching: rb-inotify-0.9.7.gem (100%)
Successfully installed rb-inotify-0.9.7
Fetching: compass-1.0.3.gem (100%)
    Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!
Successfully installed compass-1.0.3
Parsing documentation for chunky_png-1.3.5
Installing ri documentation for chunky_png-1.3.5
Parsing documentation for multi_json-1.11.2
Installing ri documentation for multi_json-1.11.2
Parsing documentation for compass-core-1.0.3
Installing ri documentation for compass-core-1.0.3
Parsing documentation for compass-import-once-1.0.5
Installing ri documentation for compass-import-once-1.0.5
Parsing documentation for rb-fsevent-0.9.7
Installing ri documentation for rb-fsevent-0.9.7
Parsing documentation for ffi-1.9.10-x86-mingw32
Installing ri documentation for ffi-1.9.10-x86-mingw32
Parsing documentation for rb-inotify-0.9.7
Installing ri documentation for rb-inotify-0.9.7
Parsing documentation for compass-1.0.3
Installing ri documentation for compass-1.0.3
Done installing documentation for chunky_png, multi_json, compass-core, compass-import-once, rb-fsevent, ffi, rb-inotify, compass after 8 seconds
8 gems installed
那么,这个安装对cygwin来说不应该是一样的吗? 我在rubygems.org的compass页面上看到 列出了一些“运行时依赖项”——也许这就是原因?所以cygwin不下载依赖项,而我必须手动下载

最大的问题是,为什么compass不能作为cygwin安装程序包提供

顺便说一句,ruby已经从cygwin安装程序包中安装,sass已经安装,并且可以正常工作

罗盘文件位于两个位置:

C:\cygwin64\home\(my username)\bin\compass
C:\cygwin64\home\(my username)\.gem\ruby\gems\compass-1.0.3\bin\compass
但当我尝试运行
compass
命令时,它甚至没有查找此文件


更新:

我安装了这些宝石: 矮胖的 多线程json 罗盘磁芯 罗盘导入一次 rb fsevent 外国金融机构 铷诱变

现在,当我运行compass时,它会查找文件,但会显示:

C:\Ruby22\bin\ruby.exe: No such file or directory -- /cygdrive/c/Ruby22/bin/compass (LoadError)
这是朝着正确方向迈出的一步。但是它在ruby的windows安装中寻找它,而不是在cygwin安装中

此命令
其中-指南针
给出:

/cygdrive/c/Ruby22/bin/compass
/cygdrive/c/Ruby22/bin/compass

^这应该是
usr\bin\gem
我想..

我也有类似的问题。注意不要混淆您可能安装在Windows上的Ruby实例和Cygwin Ruby。您需要将Ruby bin目录添加到您的路径中。我是这样做的(在我用gem安装sass之后):


如果使用compass命令键入路径,会发生什么情况?例如,
/cygdrive/c/Ruby22/bin/compass
$ sass
-bash: sass: command not found

$ vi .bashrc

$ tail -2 .bashrc

export PATH=$PATH:/home/luca/bin/

$ source .bashrc

$ sass -v
Sass 3.4.23 (Selective Steve)