Skip to content

Instantly share code, notes, and snippets.

@trobrock
Created March 2, 2013 04:44
Show Gist options
  • Save trobrock/5069734 to your computer and use it in GitHub Desktop.
Save trobrock/5069734 to your computer and use it in GitHub Desktop.
Gem path problems with bundler clean env, notice the executable dir in `gem env` and that it does not point to ree
# Run from rbenv 1.9.3-p392
require 'open3'
Bundler.with_clean_env do
stdin, stdout, stderr, wait_thr = Open3.popen3 <<-SH
eval "$(rbenv init -)" ;
rbenv shell ree-1.8.7-2012.02 ;
gem env
SH
while !stdout.eof? && line = stdout.readline
puts line
end
end
-> % bundle exec ruby debug.rb
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.15
- RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin12.2.0]
- INSTALLATION DIRECTORY: /Users/trobrock/Sites/tensai/vendor/ruby/1.9.1
- RUBY EXECUTABLE: /usr/local/opt/rbenv/versions/ree-1.8.7-2012.02/bin/ruby
- EXECUTABLE DIRECTORY: /Users/trobrock/Sites/tensai/vendor/ruby/1.9.1/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-12
- GEM PATHS:
- /Users/trobrock/Sites/tensai/vendor/ruby/1.9.1
- /Users/trobrock/.gem/ruby/1.8
- /usr/local/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
@trobrock
Copy link
Author

trobrock commented Mar 2, 2013

@danryan and @Peeja this is the current issue with running Tensai locally for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment