Posts

Showing posts from October, 2008

Ruby for dummies - Nine Steps for NetBeans and Net::SSH

Image
----------- Hello World ----------- The system cannot find the path specified total 32 drwx------ 2 root root 16384 Mar 28 2008 lost+found drwxrwx--- 3 oracle oracle 4096 May 8 02:29 oracle drwxr-xr-x 7 test test 4096 Mar 28 2008 test ------------- Goodbye World ------------- Above is the final product after some frustration with JRuby and Netbeans detailed in previous postings. I've been trying to follow simple Ruby SSH tutorials with little or no luck. The primary cause is due to net/ssh and Ruby's reliance on the PuTTY pageant service when running in Windows, explained --> here (the dl/import issue). For me, the message "The system cannot find the path specified" threw a flag that things were not working when in fact they actually were. So in lieu of my efforts and time spent, I'm writing a tutorial for a JRuby beginner trying to obtain the same results. Install Netbeans 6.5 (6.1 should work also) If its not already install the two required...

Ruby - Trying it again

Image
This issue has been resolved --> Here Still issues running JRuby with NetBeans and Windows. I've upgraded NetBeans from version 6.1 to 6.5 beta to see if the latest and greatest fixes my issues. I find this especially irritating given the amount of hype around the framework as a whole. ( IntelliJ demo , Netbeans 10-minute JRuby Blog ). It seems most of the issues lie in platform-specific gems, and net-ssh seems to be written for use with PuTTY's pageant, which requires "native interfacing" or "native extensions". Is it possible? Well, I'm starting off trying to ssh into a remote device using Ruby samples from this script inside the NetBeans IDE. Upon first try, I got the following: failed to load dl/import Using this tutorial from Juan Pablo I was able to modify: C:\Program Files\NetBeans 6.5 Beta\ruby2\jruby-1.1.3\lib\ruby\gems\1.8\gems\net-ssh-2.0.4\lib\net\ssh\authentication\pageant.rb and C:\Program Files\NetBeans 6.5 Beta\ruby2\jruby-1.1.3\...