rubygems
A Note Before BeginningIf you made it here after trying to install "fast debugging" or some other feature... the headache that awaits you below is NOT necessary. ONLY follow the below instructions if you REALLY, REALLY
want to let NetBeans manage your gems. If you only want to use fast
debugging or some other absent gem, save yourself the trouble, drop to
a command line, and type "sudo gem install ruby-debug-ide" (in the case
of fast debugging). If you don't have sudo access, you'll have to su to
root. After installing the gem(s) you need, restart NetBeans and you
should be good to go.
Now...that said...
You can install Ruby functionality called "gems" using the Ruby Gems Manager from the Tools menu.
The feature is described in a bit more detail in the projects document.
TroubleshootingYou might encounter some problems during the Ruby Gems Manager usage:
Thus, some things can go wrong, and this document attempts to describe some solutions.
RubyGems needs to be installedYour Ruby installation needs to have the gem command available. If you are using the
bundled JRuby installation, that is already the case.
TBD - describe how or put a link to appropriate document. Permissions problemsYou also need to have permission to run the gem command to install, upgrade or uninstall gems.
If you have switched to for example /usr/bin/ruby on your Linux box, the gem installation
directory is probably not writable without root privileges. NetBeans will inform you of
this problem, linking to this wiki page, with the following dialog:
![]() There are several ways to solve this:
joe@rubycomp:~$ cd /var/lib/gems/
Problem with installing Gems which use native extensionsSome RubyGems use native extension, i.e. they are (partially) written in C and thus need to be compiled during installation. If you encounter kind of failed to build native extensions problems during Gem installation, be sure:
sudo apt-get install build-essential autoconfIn the case you are using Ruby package from Ubuntu repository, be sure you also install ruby<version>-dev package, like ruby1.8-dev or ruby1.9-dev. Otherwise you can't compile any native extensions. E.g. sudo apt-get install ruby1.8-dev Please update this Wiki page section for your OS which is not mentioned here yet.
Installing your own private copy of RubyTake a look at this page to see how to install own Ruby on some systems.
Installing FastDebugger on Debian (testing).Not sure it's the best solution, but you can setup fast debugger in a few simple steps without creating your own gems repository.Install ruby-debug-ide:
spectator:/$ sudo gem install ruby-debug-ide Make symbolic link:
spectator:/$ sudo ln -s /var/lib/gems /usr/lib/ruby/gems That's all! Your NetBeans will detect installed fast debugger and will use it by default.
本文出自 51CTO.COM技术博客 |



fsjoy1983
博客统计信息
热门文章
最新评论
友情链接