Hi,
I want to try out rails but I can not load rubygems.
I have tried two different linux versions. I am now working on my Aspire
One netbock using Linpus which is based on Fedora 7 i think.
Anyhow I have managed to install ruby okay. rubygems fails to load I get
the error message below. I think its something to do with the librarys.
Any help anyone? it must be something be very simple.
[user@localhost rubygems]$ ruby setup.rb
./rubygems.rb:8:in require': no such file to load -- rubygems/defaults (LoadError) from ./rubygems.rb:8 from setup.rb:24:in
require’
from setup.rb:24
Thanks in advance.
MC
On Fri, Oct 30, 2009 at 06:49:08AM +0900, Melvin Clarkson wrote:
Any help anyone? it must be something be very simple.
What version of rubygems are you trying to install?
[user@localhost rubygems]$ ruby setup.rb
./rubygems.rb:8:in require': no such file to load -- rubygems/defaults (LoadError) from ./rubygems.rb:8 from setup.rb:24:in
require’
from setup.rb:24
How did you unpack this tarball? Can you do a “pwd” and an “ls -al” in
the directory where you’re running setup.rb?
From: [email protected] [mailto:mpclarkson@aspire-
Hi,
I have tried two different linux versions. I am now working on my
Aspire
One netbock using Linpus which is based on Fedora 7 i think.
My experience is entirely with Ubuntu so if I’m wrong I apologize
from setup.rb:24:in `require'
from setup.rb:24
Thanks in advance.
Two things:
- What version of ruby are you using? If you are using 1.9+ it is no
longer
necessary to require rubygems before requiring a gem. You can check
your
version with ruby --version
- Are you installing from source or through the package manager? If
Fedora is like Ubuntu, you actually install ruby and rubygems
separately.
(My guess would be: yum install rubygems).
If you are installing 1.8.7 from source you will need to install
rubygems
separately as well. See http://rubyforge.org/projects/rubygems/.
Hope this helps!
On Fri, Oct 30, 2009 at 08:09:02AM +0900, Melvin Clarkson wrote:
from setup.rb:24
How did you unpack this tarball? Can you do a “pwd” and an “ls -al” in
the directory where you’re running setup.rb?
Hi,
I have lists the output below, thanks
I downloaded rubygems-1.3.5.tgz
Looks like you unzipped rubygems incorrectly. After you unzip rubygems,
it should look something like this:
Skitch | Evernote
Try unzipping rubygems like this:
$ tar zxvf rubygems-1.3.5.tgz
Aaron P. wrote:
On Fri, Oct 30, 2009 at 06:49:08AM +0900, Melvin Clarkson wrote:
Any help anyone? it must be something be very simple.
What version of rubygems are you trying to install?
[user@localhost rubygems]$ ruby setup.rb
./rubygems.rb:8:in require': no such file to load -- rubygems/defaults (LoadError) from ./rubygems.rb:8 from setup.rb:24:in
require’
from setup.rb:24
How did you unpack this tarball? Can you do a “pwd” and an “ls -al” in
the directory where you’re running setup.rb?
Hi,
I have lists the output below, thanks
I downloaded rubygems-1.3.5.tgz
[user@localhost rubygems]$ pwd
/home/user/Downloads/rubygems
[user@localhost rubygems]$ ls -al
total 1504
drwxr-xr-- 2 user user 8192 2009-10-29 21:16 .
drwxrwxr-x 3 user user 4096 2009-10-27 22:48 …
-rw-r–r-- 1 user user 555 2009-06-22 23:54 .autotest
-rw-r–r-- 1 user user 188 2009-06-22 23:54 bogussources.rb
-rw-r–r-- 1 user user 1134 2009-06-22 23:54 build_command.rb
-rw-r–r-- 1 user user 1286 2009-06-22 23:54 builder.rb
-rw-r–r-- 1 user user 2848 2009-06-22 23:54 cert_command.rb
-rw-r–r-- 1 user user 203092 2009-06-26 01:43 ChangeLog
-rw-r–r-- 1 user user 2176 2009-06-22 23:54 check_command.rb
-rwxr-xr-x 1 user user 1159 2009-06-22 23:54 CL2notes
-rw-r–r-- 1 user user 2699 2009-06-22 23:54 cleanup_command.rb
-rw-r–r-- 1 user user 4292 2009-06-22 23:54 command_manager.rb
-rw-r–r-- 1 user user 12126 2009-06-22 23:54 command.rb
-rw-r–r-- 1 user user 7551 2009-06-25 22:37 config_file.rb
-rw-r–r-- 1 user user 549 2009-06-22 23:54 configure_builder.rb
-rw-r–r-- 1 user user 2442 2009-06-22 23:54 contents_command.rb
-rw-r–r-- 1 user user 968 2009-06-22 23:54 cruise_config.rb
-rwxr-xr-x 1 user user 1200 2009-06-22 23:54 custom_require.rb
-rw-r–r-- 1 user user 637 2009-06-22 23:54 datadir.rb
-rw-r–r-- 1 user user 2307 2009-06-22 23:54 defaults.rb
-rw-r–r-- 1 user user 4952 2009-06-22 23:54 dependency_command.rb
-rw-r–r-- 1 user user 8291 2009-06-22 23:54 dependency_installer.rb
-rw-r–r-- 1 user user 3844 2009-06-22 23:54 dependency_list.rb
-rw-r–r-- 1 user user 3249 2009-06-22 23:54 dependency.rb
-rwxr-xr-x 1 user user 1000 2009-06-22 23:54 digest_adapter.rb
-rw-r–r-- 1 user user 0 2009-06-22 23:54 discover.rb
-rw-r–r-- 1 user user 5602 2009-06-22 23:54 doc_manager.rb
-rw-r–r-- 1 user user 45 2009-06-23 00:03 .document
-rw-r–r-- 1 user user 2022 2009-06-22 23:54 entry.rb
-rw-r–r-- 1 user user 3923 2009-06-22 23:54 environment_command.rb
-rw-r–r-- 1 user user 2216 2009-06-22 23:54 exceptions.rb
-rw-r–r-- 1 user user 522 2009-06-22 23:54 ext_conf_builder.rb
-rw-r–r-- 1 user user 379 2009-06-22 23:54 ext.rb
-rw-r–r-- 1 user user 1400 2009-06-22 23:54 fetch_command.rb
-rw-r–r-- 1 user user 1961 2009-06-22 23:54 format.rb
-rw-r–r-- 1 user user 378 2009-06-22 23:54 f_sync_dir.rb
-rw-r–r-- 1 user user 2475 2009-06-22 23:54 functional.rb
-rw-r–r-- 1 user user 1415 2009-06-22 23:54 gauntlet_rubygems.rb
-rwxr-xr-x 1 user user 546 2009-06-22 23:54 gem
-rw-r–r-- 1 user user 2573 2009-06-22 23:54
gem_installer_test_case.rb
-rw-r–r-- 1 user user 2331 2009-06-22 23:54 gem_openssl.rb
-rw-r–r-- 1 user user 3497 2009-06-22 23:54
gem_package_tar_test_case.rb
-rw-r–r-- 1 user user 2766 2009-06-22 23:54 gem_path_searcher.rb
-rw-r–r-- 1 user user 7344 2009-06-22 23:54 gem_prelude.rb.template
-rw-r–r-- 1 user user 1679 2009-06-22 23:54 gem-private_key.pem
-rw-r–r-- 1 user user 1176 2009-06-22 23:54 gem-public_cert.pem
-rw-r–r-- 1 user user 2291 2009-06-22 23:54 gem_runner.rb
-rw-r–r-- 1 user user 15239 2009-06-22 23:54 gemutilities.rb
-rw-r–r-- 1 user user 4387 2009-06-22 23:54 generate_index_command.rb
-rw-r–r-- 1 user user 17989 2009-06-22 23:54 GPL.txt
-rw-r–r-- 1 user user 4667 2009-06-22 23:54 help_command.rb
-rw-r–r-- 1 user user 32533 2009-07-22 00:46 History.txt
-rw-r–r-- 1 user user 19380 2009-06-23 00:00 indexer.rb
-rw-r–r-- 1 user user 5267 2009-06-22 23:54 install_command.rb
-rw-r–r-- 1 user user 16939 2009-06-22 23:54 installer.rb
-rw-r–r-- 1 user user 4043 2009-06-22 23:54 install_update_options.rb
-rw-r–r-- 1 user user 1269 2009-06-22 23:54 insure_session.rb
-rw-r–r-- 1 user user 2323 2009-06-22 23:54 LICENSE.txt
-rw-r–r-- 1 user user 696 2009-06-22 23:54 list_command.rb
-rw-r–r-- 1 user user 3188 2009-06-22 23:54 local_remote_options.rb
-rw-r–r-- 1 user user 2768 2009-06-22 23:54 lock_command.rb
-rw-r–r-- 1 user user 5779 2009-06-26 01:46 Manifest.txt
-rwxr-xr-x 1 user user 431 2009-06-22 23:54 md5.rb
-rw-r–r-- 1 user user 3116 2009-06-22 23:54 mirror_command.rb
-rw-r–r-- 1 user user 935 2009-06-22 23:54 mockgemui.rb
-rw-r–r-- 1 user user 3770 2009-06-22 23:54 old_format.rb
-rw-r–r-- 1 user user 187 2009-06-22 23:54 openssl.rb
-rw-r–r-- 1 user user 773 2009-06-22 23:54 outdated_command.rb
-rw-r–r-- 1 user user 2517 2009-06-22 23:54 package.rb
-rw-r–r-- 1 user user 3710 2009-06-22 23:54 package_task.rb
-rw-r–r-- 1 user user 5280 2009-06-22 23:54 platform.rb
-rw-r–r-- 1 user user 2491 2009-06-22 23:54 pristine_command.rb
-rw-r–r-- 1 user user 1679 2009-06-22 23:54 private_key.pem
-rw-r–r-- 1 user user 1176 2009-06-22 23:54 public_cert.pem
-rw-r–r-- 1 user user 7449 2009-06-22 23:54 query_command.rb
-rw-r–r-- 1 user user 904 2009-06-22 23:54 rake_builder.rb
-rw-r–r-- 1 user user 5111 2009-06-27 00:00 Rakefile
-rw-r–r-- 1 user user 1819 2009-06-22 23:54 rdoc_command.rb
-rw-r–r-- 1 user user 1212 2009-06-26 01:43 README
-rw-r–r-- 1 user user 9928 2009-06-22 23:54 remote_fetcher.rb
-rw-r–r-- 1 user user 3970 2009-06-22 23:54 requirement.rb
-rw-r–r-- 1 user user 514 2009-06-22 23:54 require_paths_builder.rb
-rw-r–r-- 1 user user 301 2009-06-22 23:54 rubygems_plugin.rb
-rw-r–r-- 1 user user 29096 2009-07-22 00:46 rubygems.rb
-rw-r–r-- 1 user user 582 2009-06-22 23:54 search_command.rb
-rw-r–r-- 1 user user 28984 2009-06-22 23:54 security.rb
-rw-r–r-- 1 user user 1803 2009-06-22 23:54 server_command.rb
-rw-r–r-- 1 user user 22293 2009-06-22 23:54 server.rb
-rw-r–r-- 1 user user 10051 2009-06-26 01:43 setup_command.rb
-rw-r–r-- 1 user user 813 2009-06-22 23:54 setup.rb
-rwxr-xr-x 1 user user 377 2009-06-22 23:54 sha1.rb
-rwxr-xr-x 1 user user 385 2009-06-22 23:54 sha2.rb
-rw-r–r-- 1 user user 1819 2009-06-22 23:54 simple_gem.rb
-rw-r–r-- 1 user user 15182 2009-06-23 00:00 source_index.rb
-rw-r–r-- 1 user user 1204 2009-06-22 23:54
source_info_cache_entry.rb
-rw-r–r-- 1 user user 9167 2009-06-22 23:54 source_info_cache.rb
-rw-r–r-- 1 user user 4167 2009-06-22 23:54 sources_command.rb
-rw-r–r-- 1 user user 395 2009-06-22 23:54 sources.gemspec
-rw-r–r-- 1 user user 58 2009-06-22 23:54 sources.rb
-rw-r–r-- 1 user user 6737 2009-06-23 00:00 spec_fetcher.rb
-rw-r–r-- 1 user user 2859 2009-06-22 23:54 specification_command.rb
-rw-r–r-- 1 user user 36767 2009-06-22 23:59 specification.rb
-rw-r–r-- 1 user user 680 2009-06-22 23:54 stale_command.rb
-rw-r–r-- 1 user user 6357 2009-06-22 23:54 tar_header.rb
-rw-r–r-- 1 user user 6365 2009-06-22 23:54 tar_input.rb
-rw-r–r-- 1 user user 3831 2009-06-22 23:54 tar_output.rb
-rw-r–r-- 1 user user 2023 2009-06-22 23:54 tar_reader.rb
-rw-r–r-- 1 user user 4463 2009-06-22 23:54 tar_writer.rb
-rw-r–r-- 1 user user 416 2009-06-22 23:54 test_config.rb
-rw-r–r-- 1 user user 688 2009-06-22 23:54 test_gem_builder.rb
-rw-r–r-- 1 user user 5863 2009-06-22 23:54
test_gem_command_manager.rb
-rw-r–r-- 1 user user 4276 2009-06-22 23:54 test_gem_command.rb
-rw-r–r-- 1 user user 1749 2009-06-22 23:54
test_gem_commands_build_command.rb
-rw-r–r-- 1 user user 3158 2009-06-22 23:54
test_gem_commands_cert_command.rb
-rw-r–r-- 1 user user 542 2009-06-22 23:54
test_gem_commands_check_command.rb
-rw-r–r-- 1 user user 3279 2009-06-22 23:54
test_gem_commands_contents_command.rb
-rw-r–r-- 1 user user 4309 2009-06-23 00:00
test_gem_commands_dependency_command.rb
-rw-r–r-- 1 user user 3144 2009-06-22 23:54
test_gem_commands_environment_command.rb
-rw-r–r-- 1 user user 1260 2009-06-22 23:54
test_gem_commands_fetch_command.rb
-rw-r–r-- 1 user user 3520 2009-06-22 23:54
test_gem_commands_generate_index_command.rb
-rw-r–r-- 1 user user 7364 2009-06-22 23:54
test_gem_commands_install_command.rb
-rw-r–r-- 1 user user 743 2009-06-22 23:54
test_gem_commands_list_command.rb
-rw-r–r-- 1 user user 1291 2009-06-22 23:54
test_gem_commands_lock_command.rb
-rw-r–r-- 1 user user 1647 2009-06-22 23:54
test_gem_commands_mirror_command.rb
-rw-r–r-- 1 user user 1102 2009-06-22 23:54
test_gem_commands_outdated_command.rb
-rw-r–r-- 1 user user 2567 2009-06-22 23:54
test_gem_commands_pristine_command.rb
-rw-r–r-- 1 user user 8144 2009-06-22 23:54
test_gem_commands_query_command.rb
-rw-r–r-- 1 user user 1427 2009-06-22 23:54
test_gem_commands_server_command.rb
-rw-r–r-- 1 user user 6091 2009-06-22 23:54
test_gem_commands_sources_command.rb
-rw-r–r-- 1 user user 2945 2009-06-22 23:54
test_gem_commands_specification_command.rb
-rw-r–r-- 1 user user 1052 2009-06-22 23:54
test_gem_commands_stale_command.rb
-rw-r–r-- 1 user user 2038 2009-06-23 00:00
test_gem_commands_uninstall_command.rb
-rw-r–r-- 1 user user 2378 2009-06-22 23:54
test_gem_commands_unpack_command.rb
-rw-r–r-- 1 user user 4461 2009-06-22 23:54
test_gem_commands_update_command.rb
-rw-r–r-- 1 user user 7558 2009-06-22 23:54 test_gem_config_file.rb
-rw-r–r-- 1 user user 17526 2009-06-22 23:54
test_gem_dependency_installer.rb
-rw-r–r-- 1 user user 4538 2009-06-22 23:54
test_gem_dependency_list.rb
-rw-r–r-- 1 user user 4765 2009-06-22 23:54 test_gem_dependency.rb
-rwxr-xr-x 1 user user 1367 2009-06-22 23:54 test_gem_digest.rb
-rw-r–r-- 1 user user 860 2009-06-22 23:54 test_gem_doc_manager.rb
-rw-r–r-- 1 user user 2242 2009-06-22 23:54
test_gem_ext_configure_builder.rb
-rw-r–r-- 1 user user 3084 2009-06-22 23:54
test_gem_ext_ext_conf_builder.rb
-rw-r–r-- 1 user user 2116 2009-06-22 23:54
test_gem_ext_rake_builder.rb
-rw-r–r-- 1 user user 1632 2009-06-22 23:54 test_gem_format.rb
-rw-r–r-- 1 user user 1560 2009-06-22 23:54
test_gem_gem_path_searcher.rb
-rw-r–r-- 1 user user 1225 2009-06-22 23:54 test_gem_gem_runner.rb
-rw-r–r-- 1 user user 21917 2009-06-23 00:02 test_gem_indexer.rb
-rw-r–r-- 1 user user 25171 2009-06-22 23:54 test_gem_installer.rb
-rw-r–r-- 1 user user 1926 2009-06-22 23:54
test_gem_install_update_options.rb
-rw-r–r-- 1 user user 2163 2009-06-22 23:54
test_gem_local_remote_options.rb
-rw-r–r-- 1 user user 4887 2009-06-22 23:54
test_gem_package_tar_header.rb
-rw-r–r-- 1 user user 3128 2009-06-22 23:54
test_gem_package_tar_input.rb
-rw-r–r-- 1 user user 2332 2009-06-22 23:54
test_gem_package_tar_output.rb
-rw-r–r-- 1 user user 2324 2009-06-22 23:54
test_gem_package_tar_reader_entry.rb
-rw-r–r-- 1 user user 1188 2009-06-22 23:54
test_gem_package_tar_reader.rb
-rw-r–r-- 1 user user 3885 2009-06-22 23:54
test_gem_package_tar_writer.rb
-rw-r–r-- 1 user user 2474 2009-06-22 23:54 test_gem_package_task.rb
-rw-r–r-- 1 user user 9370 2009-06-22 23:54 test_gem_platform.rb
-rw-r–r-- 1 user user 18435 2009-07-05 18:26 test_gem.rb
-rw-r–r-- 1 user user 20325 2009-06-22 23:54
test_gem_remote_fetcher.rb
-rw-r–r-- 1 user user 6057 2009-06-22 23:54 test_gem_requirement.rb
-rw-r–r-- 1 user user 8963 2009-06-22 23:54 test_gem_server.rb
-rw-r–r-- 1 user user 12132 2009-06-23 00:00 test_gem_source_index.rb
-rw-r–r-- 1 user user 2091 2009-06-22 23:54
test_gem_source_info_cache_entry.rb
-rw-r–r-- 1 user user 12913 2009-06-22 23:54
test_gem_source_info_cache.rb
-rw-r–r-- 1 user user 11317 2009-06-23 00:00 test_gem_spec_fetcher.rb
-rw-r–r-- 1 user user 32417 2009-06-22 23:54 test_gem_specification.rb
-rw-r–r-- 1 user user 2698 2009-06-22 23:54 test_gem_stream_ui.rb
-rw-r–r-- 1 user user 3804 2009-06-22 23:54 test_gem_uninstaller.rb
-rw-r–r-- 1 user user 1639 2009-06-22 23:54 test_gem_validator.rb
-rw-r–r-- 1 user user 1847 2009-06-22 23:54
test_gem_version_option.rb
-rw-r–r-- 1 user user 10613 2009-06-22 23:54 test_gem_version.rb
-rw-r–r-- 1 user user 1578 2009-06-22 23:54 test_kernel.rb
-rw-r–r-- 1 user user 2652 2009-06-22 23:54 test_utilities.rb
-rw-r–r-- 1 user user 556 2009-06-22 23:54 text.rb
-rwxr-xr-x 1 user user 587 2009-06-22 23:54 timer.rb
-rw-r–r-- 1 user user 268 2009-06-22 23:54 ubygems.rb
-rw-r–r-- 1 user user 2220 2009-06-22 23:54 uninstall_command.rb
-rw-r–r-- 1 user user 7048 2009-06-22 23:54 uninstaller.rb
-rw-r–r-- 1 user user 2657 2009-06-22 23:54 unpack_command.rb
-rw-r–r-- 1 user user 5430 2009-06-22 23:54 update_command.rb
-rwxr-xr-x 1 user user 1017 2009-06-22 23:54 update_rubygems
-rw-r–r-- 1 user user 7438 2009-06-22 23:54 user_interaction.rb
-rwxr-xr-x 1 user user 6600 2009-06-22 23:54 validator.rb
-rw-r–r-- 1 user user 1350 2009-06-22 23:54 version_option.rb
-rw-r–r-- 1 user user 5617 2009-06-22 23:54 version.rb
-rw-r–r-- 1 user user 1951 2009-06-22 23:59 which_command.rb
Aaron P. wrote:
On Fri, Oct 30, 2009 at 08:09:02AM +0900, Melvin Clarkson wrote:
from setup.rb:24
How did you unpack this tarball? Can you do a “pwd” and an “ls -al” in
the directory where you’re running setup.rb?
Hi,
i
I have lists the output below, thanks
I downloaded rubygems-1.3.5.tgz
Looks like you unzipped rubygems incorrectly. After you unzip rubygems,
it should look something like this:
Skitch | Evernote
Try unzipping rubygems like this:
$ tar zxvf rubygems-1.3.5.tgz
Hi Aaron,
A real big thankyou. The instructions on the ruby website must be wrong
because I followed them on two different machines.
I now have gems installed, so I can start to have a play with rails.
MPC.
Try including the gem version at the end- ‘gem1.3’
Sent from Mobil
On Oct 29, 2009, at 5:09 PM, Melvin Clarkson
<[email protected]