Skip to content

Instantly share code, notes, and snippets.

@ginjo
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save ginjo/d91e4637bd4b21c98878 to your computer and use it in GitHub Desktop.

Select an option

Save ginjo/d91e4637bd4b21c98878 to your computer and use it in GitHub Desktop.
Rvm attempted wrapper generation & repair fails
user@host01:~$ rvm get head
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz
Upgrading the RVM installation in /usr/local/rvm/
Can not update 'scripts/zsh/Completion/_rvm', it's a conflict between Zsh and multiuser installation, prefix the command with 'rvmsudo' to update this file.
Can not update 'scripts/extras/completion.zsh/_rvm', it's a conflict between Zsh and multiuser installation, prefix the command with 'rvmsudo' to update this file.
Found 5384 files not belonging to 'rvm',
use `--debug` to see the list, run `rvmsudo rvm get stable` to fix it., prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Found 1103 directories with mode different then '775',
use `--debug` to see the list, run `rvmsudo rvm get stable` to fix it., prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Found 108 files with mode different then '664' or '775',
use `--debug` to see the list, run `rvmsudo rvm get stable` to fix it., prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Upgrade of RVM in /usr/local/rvm/ is complete.
# wbr,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
Upgrade Notes:
* No new notes to display.
RVM reloaded!
user@host01:~$ rvm use 1.8.7-head
Using /usr/local/rvm/gems/ruby-1.8.7-head
user@host01:~$ rvm wrapper current passenger
Regenerating ruby-1.8.7-head wrappers..............
Could not find file 'ruby' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/ruby'.
Could not find file 'gem' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/gem'.
Could not find file 'irb' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/irb'.
Could not find file 'ri' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/ri'.
Could not find file 'rdoc' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/rdoc'.
Could not find file 'rake' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/rake'.
Could not find file 'erb' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/erb'.
Could not find file 'testrb' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/testrb'.
user@host01:~$ rvm reinstall 1.8.7-head
ruby-1.8.7-head - #removing src/ruby-1.8.7-head..
ruby-1.8.7-head - #removing rubies/ruby-1.8.7-head..
Checking requirements for debian.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.8.7-head, this may take a while depending on your cpu(s)...
HEAD is now at f48ae0d merge revision(s) 44717:
remote: Counting objects: 28, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 28 (delta 22), reused 12 (delta 6)
Unpacking objects: 100% (28/28), done.
From git://github.com/ruby/ruby
135fb02..ba63472 trunk -> origin/trunk
From git://github.com/ruby/ruby
* branch ruby_1_8_7 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
ruby-1.8.7-head - #applying patch /usr/local/rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch.
ruby-1.8.7-head - #applying patch /usr/local/rvm/patches/ruby/1.8.7/no_sslv2.diff.
ruby-1.8.7-head - #applying patch /usr/local/rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.8.7-head - #autoreconf.
ruby-1.8.7-head - #configuring...............................
ruby-1.8.7-head - #post-configuration..
ruby-1.8.7-head - #compiling.........................................................................
ruby-1.8.7-head - #installing.
ruby-1.8.7-head - #making binaries executable..
ruby-1.8.7-head - #downloading rubygems-2.0.14
ruby-1.8.7-head - #extracting rubygems-2.0.14.....
ruby-1.8.7-head - #removing old rubygems.........
ruby-1.8.7-head - #installing rubygems-2.0.14..................................................................................
ruby-1.8.7-head - #gemset created /usr/local/rvm/gems/ruby-1.8.7-head@global
ruby-1.8.7-head - #importing gemset /usr/local/rvm/gemsets/ruby/1.8.7/global.gems........................................ GNU nano 2.2.6
<terminal & screen cut off a bunch of output here, but install completed without errors>
user@host01:~$ rvm current
ruby-1.8.7-head
user@host01:~$ rvm wrapper current passenger
Regenerating ruby-1.8.7-head wrappers..............
Could not find file 'ruby' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/ruby'.
Could not find file 'gem' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/gem'.
Could not find file 'irb' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/irb'.
Could not find file 'ri' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/ri'.
Could not find file 'rdoc' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/rdoc'.
Could not find file 'rake' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/rake'.
Could not find file 'erb' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/erb'.
Could not find file 'testrb' nor '/usr/local/rvm/wrappers/ruby-1.8.7-head/testrb'.
user@host01:~$ rvm repair wrappers
Regenerating all wrappers...
Regenerating wrappers for ruby-1.8.7-head..............................................................
Error running '__rvm_with ruby-1.8.7-head run_gem_wrappers_regenerate',
showing last 15 lines of /usr/local/rvm/log/1411599200/wrappers.regenerate.ruby-1.8.7-head.log
+ gem install gem-wrappers -v '>=1.2.4' --no-ri --no-rdoc
ERROR: Error installing gem-wrappers:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-head/bin/ruby extconf.rb
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.8.7-head/gems/gem-wrappers-1.2.5 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.8.7-head/gems/gem-wrappers-1.2.5/ext/wrapper_generator/gem_make.out
Building native extensions. This could take a while...
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
Regenerating wrappers for ruby-1.8.7-head@global..............................................................
Error running '__rvm_with ruby-1.8.7-head@global run_gem_wrappers_regenerate',
showing last 15 lines of /usr/local/rvm/log/1411599200/[email protected]
+ gem install gem-wrappers -v '>=1.2.4' --no-ri --no-rdoc
ERROR: Error installing gem-wrappers:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-head/bin/ruby extconf.rb
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.8.7-head@global/gems/gem-wrappers-1.2.5 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.8.7-head@global/gems/gem-wrappers-1.2.5/ext/wrapper_generator/gem_make.out
Building native extensions. This could take a while...
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
Regenerating wrappers for ruby-1.8.7-p374..............................................................
Error running '__rvm_with ruby-1.8.7-p374 run_gem_wrappers_regenerate',
showing last 15 lines of /usr/local/rvm/log/1411599200/wrappers.regenerate.ruby-1.8.7-p374.log
+ gem install gem-wrappers -v '>=1.2.4' --no-ri --no-rdoc
ERROR: Error installing gem-wrappers:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-p374/bin/ruby extconf.rb
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.8.7-p374/gems/gem-wrappers-1.2.5 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.8.7-p374/gems/gem-wrappers-1.2.5/ext/wrapper_generator/gem_make.out
Building native extensions. This could take a while...
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
Regenerating wrappers for ruby-1.8.7-p374@global...............................................................
Error running '__rvm_with ruby-1.8.7-p374@global run_gem_wrappers_regenerate',
showing last 15 lines of /usr/local/rvm/log/1411599200/[email protected]
+ gem install gem-wrappers -v '>=1.2.4' --no-ri --no-rdoc
ERROR: Error installing gem-wrappers:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-p374/bin/ruby extconf.rb
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.8.7-p374@global/gems/gem-wrappers-1.2.5 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.8.7-p374@global/gems/gem-wrappers-1.2.5/ext/wrapper_generator/gem_make.out
Building native extensions. This could take a while...
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
+ return 1
Regenerating wrappers for ruby-2.1.3........................................................
Regenerating wrappers for ruby-2.1.3@global........................................................
Error running '__rvm_with ruby-2.1.3@global run_gem_wrappers_regenerate',
showing last 15 lines of /usr/local/rvm/log/1411599200/[email protected]
+ rvm_log 'gem gem-wrappers >=1.2.4 is already installed'
+ rvm_pretty_print stdout
+ case "${rvm_pretty_print_flag:=auto}" in
+ case "${TERM:-dumb}" in
+ case "$1" in
+ [[ -t 1 ]]
+ return 1
+ printf %b 'gem gem-wrappers >=1.2.4 is already installed\n'
gem gem-wrappers >=1.2.4 is already installed
+ return 0
+ gem wrappers regenerate
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/rvm/gems/ruby-2.1.3@global/wrappers directory.
+ return 1
+ return 1
Wrappers regeneration failed for:
user@host01:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment