[WARN] Can't find ruby interpreter

Discussion in 'Bug Reports' started by aemadrid, Apr 10, 2007.

  1. aemadrid

    aemadrid New Member

    I have installed Litespeed Web Server Standard v3.0.1 succesfully on a Solaris box (Joyent Connector) but I get a warning saying:

    Code:
    [config:server:rails] Cannot find ruby interpreter, Rails easy configuration is turned off
    I know Ruby is installed and available on this machine. Aything I can do to make LS know where the ruby interpreter is?

    Hre is some information about my system:

    Code:
    # uname -X
    System = SunOS
    Node = XXXXX
    Release = 5.11
    KernelID = snv_56
    Machine = i86pc
    BusType = <unknown>
    Serial = <unknown>
    Users = <unknown>
    OEM# = 0
    Origin# = 1
    NumCPU = 4
    Code:
    # ruby -v
    ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-solaris2.8]
    
    Code:
    $ gem environment
    RubyGems Environment:
      - VERSION: 0.9.2 (0.9.2)
      - INSTALLATION DIRECTORY: /opt/csw/lib/ruby/gems/1.8
      - GEM PATH:
         - /opt/csw/lib/ruby/gems/1.8
      - REMOTE SOURCES:
         - [url]http://gems.rubyforge.org[/url]
    
    Code:
    # pg ls
        root 15711 15708   0 17:48:22 ?           0:00 lscgid
    webservd 15712 15708   0 17:48:22 ?           0:06 ./lshttpd
        root 15708 12137   0 17:48:22 ?           0:09 ./lshttpd
    Hope this helps to debug.

    Sincerely,


    Adrian Madrid
  2. mistwang

    mistwang LiteSpeed Staff

    You need to find out the location of the "ruby" executable, and tell LSWS where it is. Please try "which ruby" or "whereis ruby".
    Maybe it is "/opt/csw/bin/ruby", I guess.
  3. aemadrid

    aemadrid New Member

    Thaks for replying. It is under /opt/csw/bin/ruby.

    $ which ruby
    ruby is /opt/csw/bin/ruby

    How do I tell LSWS where it is? Some ENV variable? Sorry but I'm new to Solaris and I'm finding my way.

    Thanks again,


    Adrian Madrid
  4. mistwang

    mistwang LiteSpeed Staff

    Login to our admin console, change "Ruby Path" configuration under "server"->"ruby rails" tab.
  5. aemadrid

    aemadrid New Member

    Thanks!

    That fixed the warning.

    Sincerely,


    Adrian Madrid
  6. jrmarino

    jrmarino New Member

    In my case, I don't have ruby installed, and I do not intend to install it.

    Is there any way that I can tell Litespeed not to check for this? I really don't want to live with a permanent warning.
  7. mistwang

    mistwang LiteSpeed Staff

    We will have this issue addressed in 3.0.3 release.

Share This Page