When I installed MacPorts 1.8.2 on MacOS X 10.5.8, it automatically changed my PATH in my .bash_profile file. To fix the “rubygems (LoadError)” error message, I moved the “/opt/local/bin” from the beginning of the PATH to the end as follows:
Tags: bash, console, environment variable, load, LoadError, macos, macports, port, profile, rails, Ruby, rubygems
Posts Tagged “LoadError”
Sep
16
2009
./lib/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — rdoc/rdoc (LoadError)Posted by alex in ErrorsWhen attempting to install rubygems on a fresh Amazon Web Services EC2 instance I received the below error. Ruby had been installed by default on the instance and I was installing rubygems manually. The below error was received when attempting to run the setup.rb script with ruby. Tags: amazon web services, AWS, ec2, error, install, LoadError, rdoc, Ruby, ruby-libs, rubygems, setup, setup.rb
Mar
27
2009
ruby.exe: No such file or directory — /cygdrive/c/ruby/bin/gem (LoadError)Posted by alex in ErrorsWhen attempting to install a gem using cygwin on a Windows XP machine I received the below error. I was hoping I wasn’t going to have to reinstall RubyGems underneath cygwin because it would have just been a pain. I had Ruby installed and operational underneath cygwin but for some reason rubygems was not working. I decided to instead make an alias to point to the gem command that I had installed straight to Windows. Use the below command to add an alias to cygwin to make gem an available command. Error: ruby.exe: No such file or directory — /cygdrive/c/ruby/bin/gem (LoadError) To resolve use the below command from your cygwin bash prompt to create an alias for gem. On my laptop Ruby is installed in C:\ruby so the commands are located in C:\ruby\bin. Tags: bash, cygwin, gem, LoadError, Ruby, ruby.exe, rubygems, windows, xp
Mar
26
2009
MySQL Ruby Gem: `require’: no such file to load — mysql (LoadError)Posted by alex in Code SnippetsI am starting to learn ruby and am working on a test script to import some data into a MySQL database. I am using the below code found on kitebird.com to first get the MySQL connection from Ruby working. The code was producing an error which I figured might be because I installed the MySQL Ruby gem instead of installing the MySQL Ruby module from source. The below code attempts to connect to the MySQL server to return the MySQL server version. Tags: .rb, database, gem, LoadError, module, mysql, require, Ruby, rubygems |









Entries (RSS)