The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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 ?
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    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

     
Loading...

Share This Page