-1

I installed Ruby 1.9.1 and verified it is installed. According to Software Manager it's installed. Search Ruby or Ruby 1.9.1 comes up empty. Browsing folders nothing is found either. How do I find this program and others that are lost in space as well?

Donald
  • 1
  • 4

2 Answers2

0

The command which ruby will tell you the location of the ruby executable that is run when you type ruby into the command line.

Langston
  • 1,083
  • 10
  • 26
0

Open up a shell and type in

ruby -v

If that gives you a version number, then it is successfully installed. To find where the binary is installed, do

which ruby

This will return the full path of the compiled ruby interpreter.

Martin Konecny
  • 57,827
  • 19
  • 139
  • 159
  • Thank You very much. I found it. However. It wouldn't open. So I tried xdg-open usr/bin/ruby1.9.1 and it came up with. No application is registered as handling this application. So what application do I need to work with Ruby? – Donald Apr 26 '15 at 23:44
  • You don't "open" ruby in a window if that's what you are trying to do. You simply do `ruby myapp.rb`, where the file myapp.rb is a simple text file that you created/populated with any editor of your choice (for example `gedit`). You can also run `irb` which is an interactive prompt where you can test running ruby one-liners. – Martin Konecny Apr 26 '15 at 23:47
  • Maybe I downloaded the wrong thing. I want a Ruby IDE. – Donald Apr 26 '15 at 23:50
  • There's a ton to choose from: http://stackoverflow.com/questions/16991/what-ruby-ide-do-you-prefer – Martin Konecny Apr 26 '15 at 23:51
  • Ok. Thank You. I do have Eclipse. I can write and compile Ruby in that? – Donald Apr 26 '15 at 23:54
  • Yes, you can use that: http://stackoverflow.com/questions/524021/preferred-ruby-plugin-for-eclipse – Martin Konecny Apr 26 '15 at 23:55
  • P.S - you don't "compile" ruby code. The source code is interpreted at run-time. – Martin Konecny Apr 26 '15 at 23:57
  • Ok. Thank You. I briefly read beginning paragraphs of five Ruby tutorials to find the one I want to use. However, I feel none of those five are explaining it properly. It's all, here, write this code, but not... this is what you do with it. The first one I tried was simply explaining how to do it in dos (before I switched to linux) and no IDE. Any opinion on the "best" Ruby tutorial? – Donald Apr 27 '15 at 00:10
  • I accepted your answer. I appreciate the help! :) I would vote for it, but I need 5 reputation points first lol – Donald Apr 27 '15 at 00:12
  • Check out the "introduction" section here: http://stackoverflow.com/tags/ruby/info – Martin Konecny Apr 27 '15 at 00:14