在 OSX 上运行 Compass/Sass 的最简单方法
我首先必须遵循此处的说明确保我安装了 Ruby 和 Gems。然后我使用 Gems 安装了指南针。
然后我尝试运行指南针并出现一些错误......
“警告:无法加载 CarbonCore。 FSEvents 将无法使用指南针”
我此处找到了解决方案< /a>,但它要求我首先通过 gems 安装 RVM,然后按照上面链接中的说明进行操作
是否有更简单的方法在 OSX 上设置/运行 compass/sass?
I first had to follow the instructions here to make sure that I had Ruby and Gems installed. Then I installed compass using Gems.
Then I tried to run compass and had some errors...
"Warning: Unable to load CarbonCore.
FSEvents will be unavailable compass"
I found a solution here, but it required me to install RVM via gems first and then following the instructions in the link above.
Is there an easier way to setup/run compass/sass on OSX?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
指南针问题跟踪器中描述了此问题。它不是一个精彩的节目,因为它会退回到另一种(效率较低)的方法来监视不依赖于 fsevents 的文件更改。不过,如果能修复一下就好了,对吧?
由于您编译了自己的 ruby 版本,因此还需要为其启用共享库。 rubycocoa 入门页面对此进行了描述。
更多详细信息,请参阅此 Google 网上论坛讨论,特别是布兰登·马西斯的建议。
This problem is described in the compass issue tracker. It's not a showtopper because it falls back to another (less efficient) method of watching for file changes that doesn't depend of fsevents. Still, it would be nice to fix, right?
Since you compiled your own version of ruby, you need to enable shared libraries for it as well. This is described on the rubycocoa getting started page.
More details can be found in this google groups discussion, particularly the advice from Brandon Mathis.
安装最新版本的 Compass gem (0.11.5) 似乎可以解决问题:
gem install compass
Installing last version of Compass gem (0.11.5) seems to solve the problem:
gem install compass
您必须更新您的宝石:
You have to update your gems: