在Mac上安装Rails [英] Rails installation on mac

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

问题描述

我试图学习最近4个月的Ruby on Rails.但是问题是,只要我有时间,我就会把所有的时间都浪费在尝试将其安装到Mac机器上.仅由一个安装程序在窗口中安装很容易.但是在Mac中,我尝试了Ruby和Rails版本的许多组合.但无法运行它.总是会收到不同类型的错误,例如找不到gem sqlite3-ruby(> = 0)ruby"或捆绑安装程序等.

I'm trying to learn Ruby on Rails for last 4 month. But Problem is whenever i got time my all time got waste to try to install it in my Mac Machine. It's easy to install in window only by a single installer. But in mac i try many combination of Ruby and Rails versions. But not able to run it. Always getting different types of errors like 'Could not find gem sqlite3-ruby (>= 0) ruby' or Bundle installer, etc.

我知道这类问题的讨论形式很多.我关注其中的许多问题,但问题仍然存在.有人可以给我解决我的问题的永久方法.

I know this types of problem is discussed in many forms. I follow many of them but problem is still there. Can someone please give me a permanent solution of my problem.

推荐答案

RVM 是您的朋友:)

只需一个命令即可安装Ruby,Rails都可以:)

Just one command to install Ruby, Rails both :)

 curl -L https://get.rvm.io | bash -s stable --rails

其他可选内容:

您可能希望查看 JewelryBox

这篇关于在Mac上安装Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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