-
-
Notifications
You must be signed in to change notification settings - Fork 2k
bundler trying to install to system gems instead of GEM_HOME #5915
Comments
Hi @mockdeep! 👋🏽 Could you please enter the output of |
Sure, the short version when I'm not in a project directory: Environment
And the long version when I am in one (this is after setting the local bundle path): Environment
Bundler settings
GemfileGemfilesource 'https://rubygems.org'
# Specify your gem's dependencies in email_repair.gemspec
gemspec
gem 'rake'
gem 'rspec'
gem 'rubocop', '~> 0.27.0'
gem 'travis'
gem 'coveralls' Gemfile.lock
Gemspecsemail_repair.gemspec# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'email_repair/version'
require 'English'
Gem::Specification.new do |spec|
spec.name = 'email_repair'
spec.version = EmailRepair::VERSION
spec.authors = ['Holman Gao', 'JT Bowler']
spec.email = ['holman@golmansax.com', 'jbowler2400@gmail.com']
spec.summary = 'Library to fix invalid emails'
spec.homepage = 'https://github.com/ChalkSchools/email-repair'
spec.license = 'MIT'
spec.files = Dir['{lib}/**/*', 'LICENSE', 'README.md']
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
spec.test_files = Dir['spec/**/*']
spec.require_paths = ['lib']
end |
I'm also experiencing this problem. Trying with old versions of bundler, this works fine until |
Please try with the latest version, 1.15.3 |
Just tried with the latest bundler and still having the same issue:
Bundler settings
GemfileGemfilesource 'https://rubygems.org'
# Specify your gem's dependencies in email_repair.gemspec
gemspec
gem 'rake'
gem 'rspec'
gem 'rubocop', '~> 0.27.0'
gem 'travis'
gem 'coveralls' Gemfile.lock
Gemspecsemail_repair.gemspec# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'email_repair/version'
require 'English'
Gem::Specification.new do |spec|
spec.name = 'email_repair'
spec.version = EmailRepair::VERSION
spec.authors = ['Holman Gao', 'JT Bowler']
spec.email = ['holman@golmansax.com', 'jbowler2400@gmail.com']
spec.summary = 'Library to fix invalid emails'
spec.homepage = 'https://github.com/ChalkSchools/email-repair'
spec.license = 'MIT'
spec.files = Dir['{lib}/**/*', 'LICENSE', 'README.md']
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
spec.test_files = Dir['spec/**/*']
spec.require_paths = ['lib']
end |
Does it also happen without |
Yeah, still see it after uninstalling: Environment
|
I can't repro this locally, things are defaulting to |
@segiddins Okay, what can I do to help get more useful info? If there's anything I can try on my end, I'd be happy to. Otherwise, I'll see if I can find some time to dig through bundler myself and figure out why things aren't working as expected. |
Can you tell us where Bundler is installing instead of the gem home? |
Hmm, if I put in my sudo password, it actually ends up just installing them into the same location, just as
Maybe the issue isn't that it doesn't respect |
Okay, so I went and imploded rvm. There were some directories that had the wrong permissions and not sure if they were that way before I put in my password for |
Well, I'm not using RVM. But I'll check if I may also have a permission problem. |
maybe you have 2 rvm in your system try
|
Closing because I feel confident this is ruby installation issue rather than a bundler issue. |
I'm having trouble installing gems on my system. I'm using RVM (version
1.29.2
) and would expect gems to be installed in my home.rvm
directory rather than needing to be installed as super user. It seems to happen only on repos I haven't touched in a while, but when I runbundle
, I get the following error:GEM_HOME
is configured as/home/fletch/.rvm/gems/ruby-2.3.3
ruby:
I checked the permissions on the
$GEM_HOME
directory and they're all my user. I can fix the issue on a per-repo basis by typingbundle --path $GEM_HOME
, but that gets awkward when we upgrade ruby versions. What am I missing?Another side note, I can't seem to uninstall gems. Not sure if it's related, but when I run
gem uninstall typhoeus
, I get no output and the gem is still there.The text was updated successfully, but these errors were encountered: