Error Cannot Find Rubygems Update Path
Contents |
(Guest) on 2009-01-09 07:37 Hello! I cannot force a new application to run, it cannot update gems to the required version. Could you
Operation Not Permitted - /usr/bin/update_rubygems
suggest a solution? $ lsb_release -a No LSB modules are available. Distributor gem remove ID: Ubuntu Description: Ubuntu 7.10 Release: 7.10 Codename: gutsy $ ruby -v ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux] $ rbenv gem -v 1.2.0 $ sudo gem install rubygems-update Successfully installed rubygems-update-1.3.1 1 gem installed $ sudo gem update --system Updating RubyGems Nothing to update $ script/console Rails requires RubyGems >= 1.3.1 (you have 1.1.0). Please `gem update --system` and try again. Report post Edit Move Delete topic Reply with quote Re: gem update problem MaD (Guest) on 2009-01-09 09:29 after installing rubygems-update, just run sudo update_rubygems Report post Edit Delete Reply with quote Re: gem update problem Konstantin (Guest) on 2009-01-09 13:40 No success :( $ sudo update_rubygems sudo: update_rubygems: command not found $ sudo update-rubygems sudo: update-rubygems: command not found Report post Edit Delete Reply with quote Re: gem update problem MaD (Guest) on 2009-01-09 13:55 well, that's odd. gem list should show you rubygems-update (1.3.1) with that there should be the command update_rubygems available. if not check your gem-directory which can be found by running gem environment for me it is "/usr/lib/ruby/gems/1.8/gems/rubygems-update-1.3.1/bin/ update_rubygems" Report post Edit Delete Reply with quote Re: gem update problem Konstantin (Guest) on 2009-01-09 14:09 Ah, I guess the problem is in the paths! I have changed the standard "gem" command to work by default with Passenger. So, I guess, I should update the Passenger now? Here is an output of your commands: $ gem list -l ... rubygems-update (1.3.1) ... $ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.6 (2008-08-08 patchlevel 286) [i686-linux] - INSTALLATION DIRECTORY: /opt/ruby-enterprise-1.8.6-20080810/lib/ ruby/gems/1.8 - RUBY EXECUTABLE: /opt/ruby-enterprise-1.8.6-20080810/bin/ruby - EXECUTABLE DIRECTORY: /opt/ruby-enterprise-1.8.6-20080810/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace =
Sign in Pricing Blog Support Search GitHub This repository Watch 1 Star 9 Fork 9 wycats/rubygems forked from bmaland/rubygems Code Pull requests 0 Projects 0 Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags faster_index master trunk Nothing to show start release_0_8_1 release_0_8_0 release_0_7_0 release_0_6_1 release_0_6_0 release_0_5_0 release_0_4_0 release_0_3_0 release_0_3_0_pre release_0_2_0 Rakefile REL_1_3_3 REL_1_3_2 REL_1_3_1 REL_1_3_0 REL_1_2_0 REL_1_1_1 REL_1_1_0 REL_1_0_1 REL_1_0_0 REL_0_9_5 REL_0_9_4_7 REL_0_9_4_6 REL_0_9_4_5 REL_0_9_4_4 REL_0_9_4_2 REL_0_9_4_1 REL_0_9_4 REL_0_9_3 REL_0_9_2 REL_0_9_1 REL_0_9_0_8 REL_0_9_0 REL_0_8_40_8_4 REL_0_8_11 REL_0_8_10 REL_0_8_9 https://www.ruby-forum.com/topic/175268 REL_0_8_8 REL_0_8_7 REL_0_8_6 REL_0_8_5 REL_0_8_3_ REL_0_8_3b REL_0_8_3a REL_0_8_2 Nothing to show Find file Copy path rubygems/bin/update_rubygems 404d401 Feb 26, 2008 drbrain Add --version to update_rubygems, bug #16842. 0 contributors Users who have contributed to this file Raw Blame History executable file 39 lines (33 sloc) 1017 Bytes #!/usr/bin/env ruby #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, https://github.com/wycats/rubygems/blob/master/bin/update_rubygems Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ require 'rubygems' if ARGV.include? '-h' or ARGV.include? '--help' then puts "rubygems_update [options]" puts puts "This will install the latest version of RubyGems." puts puts "\t--version=X.Y\tUpdate rubygems from the X.Y version." exit end unless ARGV.grep(/--version=([\d\.]*)/).empty? then exec "#{Gem.ruby} -S #{$PROGRAM_NAME} _#{$1}_" end update_dir = $LOAD_PATH.find { |fn| fn =~ /rubygems-update/ } if update_dir.nil? puts "Error: Cannot find RubyGems Update Path!" puts puts "RubyGems has already been updated." puts "The rubygems-update gem may now be uninstalled." puts "E.g. gem uninstall rubygems-update" else update_dir = File.dirname(update_dir) Dir.chdir update_dir update_dir =~ /([0-9.]*)$/ RGVERSION = $1 puts "Installing RubyGems #{RGVERSION}" system "#{Gem.ruby} setup.rb #{ARGV.join(' ')}" end Jump to Line Go Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Sign in Pricing Blog Support Search GitHub This repository Watch 140 Star 1,616 Fork https://github.com/rubygems/rubygems/issues/1533 829 rubygems/rubygems Code Issues 106 Pull requests 39 Projects 0 Pulse Graphs New issue Running update_rubygems may happen to fail on Windows #1533 Open gallelli opened this Issue Mar 4, 2016 · 1 comment Projects None yet Labels category: install platform: windows Milestone No milestone Assignees No error cannot one assigned 4 participants gallelli commented Mar 4, 2016 After installing/updating the rubygems-update gem, update_rubygems script execution may happen to fail on Windows with the following error: Cannot find RubyGems Update Path! In my opinion this happens in the following scenario: Install Ruby 2.2.4 on Windows, 32 or 64 bit error cannot find version does not matter Install the rubygems-update gem, say version 2.5.2 Run update_rubygems: it works fine Install and configure the appropriate Ruby Dev Kit for Windows: ruby dk.rb init ruby dk.rb install Update to rubygems-update version 2.6.1 Run update_rubygems: now it fails with the above error The reason for the failure is that the following line is missing from the update_rubygems script under the Ruby bin directory when updating to 2.6.1: gem 'rubygems-update', version I believe such line is missing only after installing the Ruby Dev Kit for Windows, Here are my current envrionment details: O.S.: Windows 10 64-bit version - Italian language RubyGems Environment: RUBYGEMS VERSION: 2.6.1 RUBY VERSION: 2.2.4 (2015-12-16 patchlevel 230) [i386-mingw32] INSTALLATION DIRECTORY: E:/ruby22/lib/ruby/gems/2.2.0 USER INSTALLATION DIRECTORY: C:/Users/gallelli/.gem/ruby/2.2.0 RUBY EXECUTABLE: E:/ruby22/bin/ruby.exe EXECUTABLE DIRECTORY: E:/ruby22/bin SPEC CACHE DIRECTORY: C:/Users/gallelli/.gem/specs SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData RUBYGEMS PLATFORMS: ruby x86-mingw32 GEM PATHS: E:/ruby22/lib/ruby/gems/2.2.0 C:/Users/gallelli/.gem/ruby/2.2.0 GEM CONFIGURATION: :update_sources => true