[WARN] Can't find ruby interpreter

aemadrid

Well-Known Member
#1
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
 

mistwang

LiteSpeed Staff
#2
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.
 

aemadrid

Well-Known Member
#3
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.
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
 

jrmarino

Well-Known Member
#6
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.
 
Top