Gems use proxies in two ways:
Mode one:
>>set http_proxy=http://ip_or_host:port
>>gem Install The_package_name
>>gem list-p Http://user:passwd@ip_or_host:8080-r
Install Ruby-debug-base19
There are 2 different ways:
Method One:
download the. gem file first, then install the. gem file directly, which requires compilation, so you need to take the With-ruby-include parameter, which is the Ruby development package
>>curl-ol Http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
>>curl-ol http:// Rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
>>gem Install Linecache19-0.5.13.gem Ruby-debug-base19-0.11.26.gem----with-ruby-include= $rvm _path/src/ruby-1.9.3-p125/
Method Two:
Download the ruby-debug version of Windows free of compilation.
Finally, use the agent to install Ruby-debug-base19
Copy Code code as follows:
>>gem install ruby-debug-base19-p http://ip_or_host:8080-r----with-ruby-include=d:/ruby-1.9.3-p125/
Gems can also view Remote Installation library packages to distinguish the local installation library
Gem list-r
gem Install-r gem_package_name
Configuration in the RubyMine IDE
in RubyMine, if the Ruby interpreter chooses 1.9.3, then the ruby-debug-base19x must be installed when debugging, and no other installation is possible, even if it is ruby-debug-base193, but the installation is often an error. Find the answer on the stackoverflow.com website.
Curl-l "Http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem"-o/tmp/linecache19-0.5.13.gem
Gem install Linecache19-0.5.13.gem----with-ruby-include=d:\ruby-1.9.3-p125
gem install ruby-debug-base19x-v 0.11.30.pre10
gem install ruby-debug-ide-v 0.4.17.BETA14
If the also reported is wrong, then uninstall all the Ruby-debug-base versions and reinstall them.
In RubyMine, if the Ruby interpreter chooses 1.9.3, then the ruby-debug-base19x must be installed when debugging, and no other installation is possible, even if it is ruby-debug-base193, but the installation is often an error. Find the answer on the stackoverflow.com website.
Curl-l "Http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem"-o/tmp/linecache19-0.5.13.gem
Gem install Linecache19-0.5.13.gem----with-ruby-include=d:\ruby-1.9.3-p125
gem install ruby-debug-base19x-v 0.11.30.pre10
gem install ruby-debug-ide-v 0.4.17.BETA14
If the also reported is wrong, then uninstall all the Ruby-debug-base versions and reinstall them.