- 論壇徽章:
- 2
|
本人菜鳥(niǎo),還沒(méi)有接觸過(guò)ruby,但是現(xiàn)在有些測(cè)試涉及到ruby
想了解一下bundle --local這個(gè)命令有什么用?
本人的系統(tǒng)是redhat enterprise linux 6.4
ruby版本是1.8.7
gem版本是1.8.16
bundle版本是1.0.21
在執(zhí)行bundle --local命令的時(shí)候出現(xiàn)了以下的錯(cuò)誤
1013452ii80ibh8i0hl4zi.png (5.64 KB, 下載次數(shù): 59)
下載附件
2013-10-01 09:44 上傳
嘗試過(guò)用rvm的安裝方法安裝了ruby1.9.3,運(yùn)行了bundle后再運(yùn)行bundle --local,成功了,
不知道這樣做有沒(méi)有問(wèn)題?
但是在后續(xù)的測(cè)試過(guò)程中出錯(cuò)了,因?yàn)槲覀冞@個(gè)軟件是要用1.8.7做。
希望有人能夠指點(diǎn)一下。
目錄中Gemfile內(nèi)容如下:
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' |
|