Portable Ruby and one more question

Reply

Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

Portable Ruby and one more question

 
0
  #1
Mar 17th, 2007
1) Is it possible to install Ruby (the compiler) onto a flashdrive and run it on another machine without adding the registry edits? Is there like a portable copy of the compiler that I can use? I need Ruby at school, but I can't install anything.


2) I think my Ruby is dead. I try to run a really simple program and Ruby hangs whenever I use gets()... For example:

  1. name = gets("What is your name? ")
  2. puts name

Inputted in SciTE makes the command line for Ruby pop up, then it freezes, only to let me exit Ruby and continue working. I can use puts() and other commands fine. What is wrong I NEED RUBY TO WORK!
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Portable Ruby and one more question

 
0
  #2
Mar 18th, 2007
Hmm... I got both of them fixed, with a little work. I copied the whole directory for Ruby onto my flashdrive, and it works! And for the other, it was SciTE that was hanging it.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 523
Reputation: pty is on a distinguished road 
Solved Threads: 37
pty's Avatar
pty pty is offline Offline
Posting Pro

Re: Portable Ruby and one more question

 
0
  #3
Mar 19th, 2007
Originally Posted by linux View Post
Hmm... I got both of them fixed, with a little work. I copied the whole directory for Ruby onto my flashdrive, and it works! And for the other, it was SciTE that was hanging it.
Afraid I never tried to run Scite from a flash drive. Have you tried Notepad++? When I was at uni I ran that from my flash cos the text editor installed on the Windows workstations was annoying (so bad that most people just used notepad).
Note to self... pocket cup
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 51
Reputation: tom curren is an unknown quantity at this point 
Solved Threads: 3
tom curren's Avatar
tom curren tom curren is offline Offline
Unverified User

Re: Portable Ruby and one more question

 
0
  #4
Jul 9th, 2009
Originally Posted by linux View Post
I copied the whole directory for Ruby onto my flashdrive, and it works!
So flash drives don't make registry references?
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 60
Reputation: HiHe is an unknown quantity at this point 
Solved Threads: 4
HiHe's Avatar
HiHe HiHe is offline Offline
Junior Poster in Training
 
0
  #5
Oct 5th, 2009
I think it is SciTE's output windows that hangs the input.
Last edited by HiHe; Oct 5th, 2009 at 6:37 pm.
In C you can code our own bugs, in C++ you can inherit them.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 60
Reputation: HiHe is an unknown quantity at this point 
Solved Threads: 4
HiHe's Avatar
HiHe HiHe is offline Offline
Junior Poster in Training
 
0
  #6
Oct 7th, 2009
The Geany IDE works very well with Ruby.
Last edited by HiHe; Oct 7th, 2009 at 1:43 pm.
In C you can code our own bugs, in C++ you can inherit them.
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Ruby Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC