Codekit外部罗盘编译器路径 [英] codekit external compass compiler path

查看:119
本文介绍了Codekit外部罗盘编译器路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究别人的项目,该项目是在wordpress和带指南针的基础上构建的.我只需要更改一行CSS,但是每当我保存.scss文件时,Codekit都会不断抛出无法编译文件"消息.

I'm working on someone else's project that was built in wordpress and foundation with compass. I only need to change one line of css, but Codekit keeps throwing up "unable to compile files" messages whenever I save the .scss file.

我知道这是项目的config.rb文件中的require语句的结果,并且该代码包不能与rvm很好地配合使用.解决方案应该是将codekit的高级编译器设置更改为我通过命令行在系统文件(/usr/bin/compass)中安装的罗盘gem.问题是,当我这样做时,它只会引发无法切换编译器"消息.

I know that this is a result of the require statement in the project's config.rb file and that codekit doesn't play well with rvm. The solution should be to change codekit's advanced compiler settings to the compass gem I've installed via the command line in my system files (/usr/bin/compass). The problem is that when I do this it just throws up a "Failed to switch compiler" message.

我是一个拥有红宝石,宝石,rvm和命令行内容的菜鸟,所以我无法确定我是否在这里遗漏了一些非常明显的东西.任何见识将不胜感激,我迷路了!

I'm a noob with ruby, gems, rvm and command line stuff so I can't tell if I'm missing something painfully obvious or not here. Any insight would be greatly appreciated, I'm lost!

推荐答案

我假设您在使用rvm标记问题时使用它,所以您需要做的是:

I assume you use rvm as you tagged your question with it, so what you need to do is:

  1. 确保rvm是最新的:

  1. make sure rvm is up to date:

rvm get stable

  • 确保已选择(并安装)ruby:

  • make sure ruby is selected (and installed):

    rvm use ruby --install
    

  • 确保已安装gem:

  • make sure the gem is installed:

    gem install compass
    

  • 现在将路径打印到compass包装器:

  • now print the path to compass wrapper:

    ls $GEM_HOME/wrappers/compass
    

    使用此路径设置指南针.

    Use this path to setup your compass.

    请务必阅读所有输出上的消息,它们很重要,如果有错误或警告,请确保在继续操作之前已解决这些消息.

    Make sure to read messages on all the outputs, they are important, if there are errors or warnings make sure they are resolved before you continue.

    这篇关于Codekit外部罗盘编译器路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆