Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Ruby not working

Discussion in 'General Discussion' started by seby, Jan 21, 2011.

  1. seby

    seby Well-Known Member

    Joined:
    Oct 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    We have installed ruby (/usr/bin/ruby) on our linux server

    Using cPanel WHM 11.28.64 CENTOS 5.5 x86_64 standard

    test.rb file uploaded with following content.

    #!/usr/bin/env ruby

    print "What is your name? "
    name = gets.chomp
    puts "Hello #{name}!"

    When we call test.rb file, it prompts to download the page.

    Can someone help me on this ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    459
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    How did you install ruby. I would recommend you to go through the twiki link below to install RubyonRails and see if this finishes without error.

    Ruby on Rails and cPanel & WHM

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice