尝试在Mac上为Ruby on Rails上安装Homebrew时发生错误 [英] Error occurs when trying to install Homebrew on a Mac for Ruby on Rails

查看:108
本文介绍了尝试在Mac上为Ruby on Rails上安装Homebrew时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在OS 10.8.5的Mac上安装Homebrew,但出现错误.

I am trying to install Homebrew on my mac with OS 10.8.5 and I am getting an error.

我在终端中输入以下内容:

I enter the following into terminal:

    ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)"

我得到以下错误

    /Users/marlonmarescia/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory

推荐答案

我已经解决了这个问题.这是我的application.yml文件中的空白问题.我没有正确格式化此文件,因为YAML与Ruby不同,它对空格敏感.使用制表符或双倍空格对文件进行格式化后,Rails服务器将再次运行.

I have solved this issue. It was a whitespace issue in my application.yml file. I did not format this file correctly as YAML is whitespace sensitive unlike Ruby. Once the file was formatted using tabs or double spaces the rails server worked again.

这篇关于尝试在Mac上为Ruby on Rails上安装Homebrew时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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