免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 14087 | 回复: 1

bundle --local作用 [复制链接]

论坛徽章:
2
巨蟹座
日期:2014-02-27 17:34:312015年辞旧岁徽章
日期:2015-03-03 16:54:15
发表于 2013-10-01 09:44 |显示全部楼层
本人菜鸟,还没有接触过ruby,但是现在有些测试涉及到ruby
想了解一下bundle --local这个命令有什么用?
本人的系统是redhat enterprise linux 6.4
ruby版本是1.8.7
gem版本是1.8.16
bundle版本是1.0.21

在执行bundle --local命令的时候出现了以下的错误
1013452ii80ibh8i0hl4zi.png

尝试过用rvm的安装方法安装了ruby1.9.3,运行了bundle后再运行bundle --local,成功了,
不知道这样做有没有问题?

但是在后续的测试过程中出错了,因为我们这个软件是要用1.8.7做。
希望有人能够指点一下。



目录中Gemfile内容如下:
source 'http://rubygems.org'

gem 'rails', '~> 3.2.8'
gem 'rails'
gem 'json'
gem 'json_pure'
gem 'parseconfig'
gem 'xml-simple'
gem 'rack'
gem 'regin'
gem 'open4'
gem 'systemu'
gem 'mongoid'
gem 'bson'
gem 'bson_ext'
gem 'pry', :require => 'pry' if ENV['PRY']

# For performance reasons, the following scripts will not be
# refactored to use mongoid exclusively:
#  * broker-util/oo-admin-chk
#  * broker-util/oo-admin-fix-sshkeys
#  * broker-util/oo-stats
# These scripts use the OpenShift:ataStore API, and thus depend on
# the mongo rubygem:
gem 'mongo'

if ENV['SOURCE']
  gem 'openshift-origin-common', :path => '../common'
  gem 'openshift-origin-controller', :path => '../controller'
  gem 'netrc' # rest-client has an undeclared prereq on netrc
else
  gem 'openshift-origin-controller'
end

# Load plugin gems.
Dir["/etc/openshift/plugins.d/*.conf"].delete_if{ |x| x.end_with? "-dev.conf" }.map{|x| File.basename(x, ".conf"}.each {|plugin| gem plugin}

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'

# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'

论坛徽章:
3
寅虎
日期:2013-11-27 07:53:29申猴
日期:2014-09-12 09:24:152015年迎新春徽章
日期:2015-03-04 09:48:31
发表于 2013-10-02 10:59 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP