Ruby宝石主页在Windows上
发布时间:2020-12-17 02:36:11 所属栏目:百科 来源:网络整理
导读:我安装了 ruby for windows然后rubygems但是在尝试使用rubygems来安装bundler时出现以下错误. C:UserstgandrewsRubyrubygems-1.8.24gem install bundler --verbose --debugException `NameError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/comma
我安装了
ruby for windows然后rubygems但是在尝试使用rubygems来安装bundler时出现以下错误.
C:UserstgandrewsRubyrubygems-1.8.24>gem install bundler --verbose --debug Exception `NameError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::InstallCommand Exception `Errno::ENOENT' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:54 - No such file or directory - Z:/ ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - Z:/ C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:54:in `stat' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:54:in `initialize' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:43:in `new' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:43:in `fetcher' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:110:in `find_gems_with_sources' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:228:in `find_spec_by_name_and_version' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:259:in `install' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:121:in `block in execute' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:115:in `each' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:115:in `execute' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:in `process_args' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `run' C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run' C:/Ruby193/bin/gem:30:in `<main>' 我的gem env返回以下内容 C:UserstgandrewsRubyrubygems-1.8.24>gem env RubyGems Environment: - RUBYGEMS VERSION: 1.8.24 - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby193/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: C:/Ruby193/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby193/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby193/lib/ruby/gems/1.9.1 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ 解决方法
这可能是由网络驱动器和HOME,HOMEDRIVE和/或HOMEPATH等环境变量的错误配置引起的
请参阅RubyInstaller故障排除部分的以下部分: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-network_drive_home (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ruby-on-rails – 如何将routes.rb分割成较小的文件
- AVSpeechSynthesizer – 如何检测点毫秒暂停(iPHONE – iPA
- xxx.hbm.xml关系映射模板
- 【Cocos2d-X(2.x) 游戏开发系列之一】cocos2dx(v2.x)与(v1.
- c# – 在VS2010中创建WCF项目时,我得到“错误:无法打开Wcf
- 我怎么能克隆/复制某种UIView for iOS?
- 为你的项目依赖加星
- swfit学习函数
- ruby-on-rails – 向FormBuilder添加一个方法,该方法调用一
- ruby-on-rails-3 – 限制速率以防止DOS攻击(Heroku)