Project

General

Profile

Actions

Bug #7779

closed

embedded rubygems 2.0.0.rc.2 mangles --user-install

Added by jonforums (Jon Forums) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2013-02-04 trunk 39035) [i686-linux]
Backport:
[ruby-core:51832]

Description

This is low priority for my usage, and while I'm not investigating the issue anytime soon, I'm surfacing it here in case it's not my system issue and it affects 2.0.0 readiness. I didn't see anything similar on RG's GH issue tracker.

system: ubuntu server 12.10 32bit running in virtualbox vm

jon@ubusvr:~/downloads$ uname -a
Linux ubusvr 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:05:29 UTC 2013 i686 i686 i686 GNU/Linux

jon@ubusvr:~/downloads$ env | grep GEM

jon@ubusvr:~/downloads$ gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 2.0.0.rc.2
  • RUBY VERSION: 2.0.0 (2013-02-04 patchlevel -1) [i686-linux]
  • INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.0.0
  • RUBY EXECUTABLE: /usr/local/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/local/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/local/lib/ruby/gems/2.0.0
    • /home/jon/.gem/ruby/2.0.0
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :backtrace => false
    • :bulk_threshold => 1000
    • "gem" => "--no-ri --no-rdoc"
  • REMOTE SOURCES:

nothing of interest in ~/.gem

jon@ubusvr:~/downloads$ ll ~/.gem/
total 4
drwxrwxr-x 3 jon jon 4096 2013-01-23 18:31:19 specs/

user install fail (also fails from a network install)

jon@ubusvr:~/downloads$ gem i rdiscount-2.0.7.gem --user-install
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/bin directory.

partial install creates new dirs in ~/.gem

jon@ubusvr:~/downloads$ ll ~/.gem/ruby/2.0.0/
total 20
drwxrwxr-x 2 jon jon 4096 2013-02-03 19:29:24 build_info/
drwxrwxr-x 2 jon jon 4096 2013-02-03 19:29:24 cache/
drwxrwxr-x 2 jon jon 4096 2013-02-03 19:29:24 doc/
drwxrwxr-x 3 jon jon 4096 2013-02-03 19:29:24 gems/
drwxrwxr-x 2 jon jon 4096 2013-02-03 19:29:24 specifications/

rdiscount partially installed into ~/.gem

jon@ubusvr:~/downloads$ ll ~/.gem/ruby/2.0.0/gems/
total 4
drwxrwxr-x 7 jon jon 4096 2013-02-03 19:29:24 rdiscount-2.0.7/

try again...force the user-install

jon@ubusvr:~/downloads$ sudo gem i rdiscount-2.0.7.gem --user-install
[sudo] password for jon:
Building native extensions. This could take a while...
Successfully installed rdiscount-2.0.7
Done installing documentation for rdiscount (0 sec).
1 gem installed

gem installed to ~/.gem but command installed to /usr/local/bin

jon@ubusvr:~/downloads$ which rdiscount
/usr/local/bin/rdiscount

jon@ubusvr:~/downloads$ ll /usr/local/lib/ruby/gems/2.0.0/specifications/
total 24
drwxr-xr-x 2 root root 4096 2013-02-03 16:11:47 default/
-rw-r--r-- 1 root root 1364 2013-01-23 18:35:29 json-1.7.6.gemspec
-rw-r--r-- 1 root root 4528 2013-01-23 18:35:38 minitest-4.5.0.gemspec
-rw-r--r-- 1 root root 3697 2013-01-23 18:36:01 rake-10.0.3.gemspec
-rw-r--r-- 1 root root 1581 2013-01-23 18:36:12 test-unit-2.5.4.gemspec


Related issues 2 (0 open2 closed)

Related to Backport200 - Backport #7880: Backport r39307 to Ruby 2.0.0Closeddrbrain (Eric Hodel)02/19/2013Actions
Related to Backport200 - Backport #7889: Backport 39327 to ruby 2.0.0 to fix gem update --user-installCloseddrbrain (Eric Hodel)02/20/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0