Jump to content

How to start Ruby on linux system.


veeraa2003

Steps to start Ruby  

  1. 1. Steps to start Ruby

    • Lampp
      0
    • linux with ruby
      0


Recommended Posts

Hello every body,

 

 

I'm new person to linux. I already installed PHP5 and MYSql on my system. Now I installed Ruby on the same system. I dont know how to start Ruby in my system . Cos when I create a file with the extension of .rb in my localhost directory (/var/www/html/XXX.rb). And run through my browser but It show my ruby code only not the output.

 

I followed the same steps as viewing a PHP file, to view my ruby file like

 

Starting apache.

viewing through localhost...etc.

 

Is there any other procedure to view my output of the ruby file

 

But when I try with shell prompt I got the output like.

 

[root@dhcppc0 ~]#env ruby

 

print "Hello\n";

^D

Hello

[root@dhcppc0 ~]#

 

And my ruby installation details;

 

[root@dhcppc0 ~]# rpm -qa | grep ruby

ruby-devel-1.8.5.2-1.fc6

ruby-mode-1.8.5.2-1.fc6

eruby-libs-1.0.5-6.1

eruby-1.0.5-6.1

ruby-libs-1.8.5.2-1.fc6

ruby-1.8.5.2-1.fc6

[root@dhcppc0 ~]#

 

 

Thanks in advance...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.