English 中文(简体)
我怎么能够正确把Rubuk安装在铁路、酒吧等新鲜的MacOS X上?
原标题:How can I correctly install Ruby on Rails, bundler, etc on a fresh Mac OS X?

我最近重述了我的MacOS X(10.6.8),并想在此适当安装。 我过去曾遇到过一些麻烦,因此我只想提出正确的东西。

尤其是,我想在铁路、酒吧等地安装Ruby,但当我“安装 b”时,我有以下错误:

c-69-181-106-62:~ dave$ gem install bundler
WARNING:  Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
    /usr/bin aren t both writable.
WARNING:  You don t have /Users/dave/.gem/ruby/1.8/bin in your PATH,
    gem executables will not run.
ERROR:  Error installing bundler:
    bundler requires RubyGems version >= 1.3.6

I m confused... can someone help me out, or point me to an article saying "OK, first, add this to this file, then download this, then do this..."?

增 编

最佳回答

第一项警告是,你是t root。 第二项警告是,你没有在您的<代码>上做任何事。 PATH (但我认为如果你重新编号<>root,这将是一个问题)。 第三个错误是,因为你已经过时。 为此:

sudo gem update --system
sudo gem install bundler
问题回答

The easiest way is to first install RVM, then install bundler and Rails.

这样做的干净方法,也把宝石放在你的当地使用者身上。

  • For that just create a gems directory with:

~/gems

(you can use any directory you have access at)

  • Then configure the gems environment adding these lines to your shell start script (.bash_profile, .bashrc or .zshrc for instance):

export GEM_HOME=~/gems export GEM_PATH=~/gems export PATH=$GEM_PATH/bin:$PATH

  • 重开机车

  • 1. 检查你的环境和指挥

echo $PATH

(它应当包含新的宝石路线双版)

  • Update your rubygems with:

www.un.org/Depts/DGACM/index_spanish.htm

(需要召回传票)

  • Update the current gems:

  • Install bundler (optional):

!

NOTE: 还确保安装Xcode突击装置(如果不是大部分地段无法在本地建造)





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签