English 中文(简体)
宝石:LoadError 安装红宝石1.9.2, 装在黄皮纸雪豹中
原标题:Gem::LoadError installing ruby 1.9.2, in macbook snow leopard

我一直试图在我的《雪白利奥帕》10.6.8中安装和运行红宝石,配有Ruby 1.9.2-p290。

当我在有问题的情况下写 bundle 安装 时, 不只是 Postgres 也存在 SQLite 和 MySQL 的问题 。

安装pg (0.1.1.0) /User/用户/felipelasquez/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/安装者.rb:585 :在 初始化:权限被剥夺 -- -- /users/felipelvelasquez/.rvm/gems/ruby-1.9.2-p290/gems/pg-0.11.0/Rakefiles'(Errno:EACCES)

当我写下 sudo bagly安裝 时,我有这个:

/用户/felipelvelasquez/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/depidence.rb:247:在[米型-1.16、微型试验1.60、Rack-1.3.2、rake-0.8.7、rdoc-2.5.8、休息客户-1.6.7、后继-3.20.0、sinatra-1.0、sqlite3-1.3.4、sqlite3-ruby-1.3.3、下接-0.3.23]中找不到捆绑( & gt;LoadError)

问题回答

造成这个问题的原因是:这可能是一个Rvm错误,我经历得太早了。

书写目录没有权限, 当你提升特权时, 宝石信封和 PATH 信息不被传递到它中 。

您可以尝试安装 rvm 和 Ruby 。 或导出您带有 sudo 命令的 env 和 路径 。 例如 :

sudo export GEM_HOME = /path/to/gem_home && bundle install




相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

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 ...

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?

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

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

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 ...

热门标签