使用时gem install gem_name我可以通过--no-rdoc并--no-ri切换到跳过为安装时的gem生成RDoc/RI文档.
是否有类似的方法来做到这一点bundle install?
这个问题有很多答案可以在旧版本的rubygems下工作,但是Rubygems 1.8.x的推荐程序是什么?我有一个/etc/gemrc看起来像这样的文件:
gem: --no-rdoc --no-ri
Run Code Online (Sandbox Code Playgroud)
在任何期间似乎都忽略了这些选项gem install.
更新:
在做了一些挖掘之后,似乎问题与rvm哪个分区不仅仅是各种版本的ruby,还有它们的相关配置文件有关.要检查配置文件的位置,请使用irb:
require 'rubygems'
Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE
# => "/opt/local/rvm/rubies/ruby-1.9.2-p180/etc/gemrc"
Run Code Online (Sandbox Code Playgroud) 我从不使用ri和rdoc,安装时间太长.是否有一个配置文件可以让我这样做
我已经gem install rails -v 4.1.0在我的服务器上运行,但不知怎的,它仍然坚持
Parsing documentation for rails-4.1.0
Installing ri documentation for rails-4.1.0
Run Code Online (Sandbox Code Playgroud)
我可以放弃这个吗?我需要什么ri文档?真的需要吗?
我正在尝试安装'''sudo gem install soap4r'''
但面对以下问题..
Successfully installed httpclient-2.2.4
Successfully installed soap4r-1.5.8
2 gems installed
Installing ri documentation for httpclient-2.2.4...
RDoc failure in lib/httpclient.rb at or around line 405 column 16
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
ERROR: While executing gem ... (NoMethodError)
undefined method `name' for #<RubyToken::TkLPAREN:0xb6598024>
Run Code Online (Sandbox Code Playgroud) 这些错误意味着什么?
[root@localhost config]# gem install bluecloth
Building native extensions. This could take a while...
ERROR: Error installing bluecloth:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
can't find header files for ruby.
Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/bluecloth-2.0.7 for
inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/bluecloth-2.0.7/ext/gem_make.out
[root@localhost config]#
Run Code Online (Sandbox Code Playgroud)
还有这个
[root@localhost config]# gem install chronic
Successfully installed json_pure-1.4.3
Successfully installed rubyforge-2.0.4
Successfully installed hoe-2.6.0
Successfully installed chronic-0.2.3
4 gems installed
/usr/lib64/ruby/gems/1.8/gems/rdoc-2.5.8/lib/rdoc/ruby_lex.rb:67: warning:
parenthesize argument(s) for future version
ERROR: While executing gem …Run Code Online (Sandbox Code Playgroud)