Difference between revisions of "Update2.02"

From mx Help Wiki
Jump to: navigation, search
(Problems and solutions)
(Problems and solutions)
Line 18: Line 18:
 
   * '''sudo gem install mysql''' resulted in the error '''uninitialized constant Gem::GemRunner (NameError)'''
 
   * '''sudo gem install mysql''' resulted in the error '''uninitialized constant Gem::GemRunner (NameError)'''
 
   * had to add this line '''require 'rubygems/gem_runner'''' to my gem file before could run the command to do this
 
   * had to add this line '''require 'rubygems/gem_runner'''' to my gem file before could run the command to do this
       * first  type cd /usr/bin/
+
       * first  type cd /usr/bin/ or the path your gem is installed could be /usr/local/bin/
 
       * '''sudo emacs gem'''  Type the line so the file looks like the image below, then type ctrl-x ctrl-c to exit emacs.  
 
       * '''sudo emacs gem'''  Type the line so the file looks like the image below, then type ctrl-x ctrl-c to exit emacs.  
 
[[Image:Rubygems_require.png]]
 
[[Image:Rubygems_require.png]]

Revision as of 19:25, 6 March 2008

Steps to update developers versions of mx from 1.6 to 2.02

working on a mac 10.4. just the steps listed as I go through them to update. seems the errors I was getting requiring fixes do not always happen when trying to update. Includes the steps Matt emailed on Feb. 29th. You may not need to sudo every step


Basic Steps

Step 1: type sudo gem update --system

Step 2: type sudo gem install rails --include-dependencies # will update to rails 2.02

Step 3: type sudo gem install mysql #2 comes without adapters, this installs the mysql one

Step 4: type sudo gem cleanup

Step 5: type sudo gem cleanup #suggested to run this command twice

Problems and solutions

  * sudo gem install mysql resulted in the error uninitialized constant Gem::GemRunner (NameError)
  * had to add this line require 'rubygems/gem_runner' to my gem file before could run the command to do this
     * first  type cd /usr/bin/ or the path your gem is installed could be /usr/local/bin/
     * sudo emacs gem  Type the line so the file looks like the image below, then type ctrl-x ctrl-c to exit emacs. 
Error creating thumbnail: Unable to save thumbnail to destination

You are modifying a file that is usually write protected. Just a warning. Type man emacs in the command line for more hints.

     * then continued with Step 3.
Personal tools