ruby on rails - Bundle install installs gems in ./mysql2 folder -


i upgraded mysql on machine. result i'm attempting update mysql2 gem accordingly. in process of doing that, run "bundle install", , reason of gems in gemfile getting installed in ./mysql2 directory??

ruby-1.9.2-p180 [dev]:project.git$ bundle install note: gem.source_index deprecated, use specification. removed on or after 2011-11-01. gem.source_index called /users/al/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:3. note: gem.source_index deprecated, use specification. removed on or after 2011-11-01. gem.source_index called /users/al/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/source.rb:162. note: gem::sourceindex#each deprecated no replacement. removed on or after 2011-11-01. gem::sourceindex#each called /users/al/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/source.rb:162. note: gem.source_index deprecated, use specification. removed on or after 2011-11-01. gem.source_index called /users/al/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/source.rb:162. note: gem::sourceindex#each deprecated no replacement. removed on or after 2011-11-01. gem::sourceindex#each called /users/al/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/source.rb:162. fetching source index http://rubygems.org/ installing rake (0.8.7)  installing zentest (4.5.0)  installing abstract (1.0.0) warning: abstract-1.0.0 has invalid nil value @cert_chain  installing activesupport (3.0.7)  installing builder (2.1.2) warning: builder-2.1.2 has invalid nil value @cert_chain  installing i18n (0.5.0)  installing activemodel (3.0.7)  installing erubis (2.6.6)  . . . installing typhoeus (0.2.4) native extensions  installing webrat (0.7.3)  installing will_paginate (2.3.15)  bundle complete! installed ./mysql2 

for reason, .bundle dir contains config file indicates bundle_path mysql2? don't know came or how got there...

ruby-1.9.2-p180 [dev]:project.git$ ls gemfile     readme      app     config.ru   doc     log     mysql2      script      test gemfile.lock    rakefile    config      db      lib     misc        public      spec        vendor ruby-1.9.2-p180 [dev]:project.git$ ls -a .       .git        gemfile     rakefile    config.ru   lib     mysql2      spec ..      .gitignore  gemfile.lock    app     db      log     public      test .bundle     .rspec      readme      config      doc     misc        script      vendor ruby-1.9.2-p180 [dev]:project.git$ cd .bundle ls ruby-1.9.2-p180 [dev]:.bundle$ ls config ruby-1.9.2-p180 [dev]:.bundle$ cat config ---  bundle_disable_shared_gems: "1" bundle_path: mysql2 

here's gemfile:

source 'http://rubygems.org'  gem 'rake' gem 'rails' gem 'mysql2', '0.2.6' gem 'legacy_data' gem 'htmlentities' gem 'httparty' gem 'net-ssh' gem 'net-sftp' gem 'rsolr' gem 'activerecord-import' gem 'ar-extensions' gem 'typhoeus' gem 'composite_primary_keys' gem 'devise' gem 'authlogic' gem 'will_paginate' gem 'json_pure' # note installing 'json' gem results in "[bug] unknown type 0x22 (0xc given)" error when loading rails console gem "friendly_id", "~> 3.2.1"  # use unicorn web server # gem 'unicorn'  # deploy capistrano # gem 'capistrano'  # use debugger (ruby-debug ruby 1.8.7+, ruby-debug19 ruby 1.9.2+) # gem 'ruby-debug' # gem 'ruby-debug19'  # bundle gems: # gem 'bj' # gem 'nokogiri' # gem 'sqlite3-ruby', :require => 'sqlite3' # gem 'aws-s3', :require => 'aws/s3'  # gems rspec # bundle gems local environment. make sure # put test-only gems in group generators # , rake tasks available in development mode: group :search_development, :test   gem 'rspec-rails', "~> 2.4"   gem 'webrat'   gem 'rspec' end  gem 'autotest' 

i've been spinning wheels on time. ahead of time ideas or thoughts how proceed. (also, second time i've bundle installed mysql2 dir, i've decided stop before dig deeper hole)

it's deprecated behavior had problem couple weeks ago. it's ran command bundle install mysql, runs bundle install --path mysql , permanently sets install directory ./mysql2 (as little makes sense). easiest way fix happening running bundle install --system, , should restore default install directory. next time if want upgrade single gem, use command bundle update mysql.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -