Markaby + Litespeed LSAPI: "warning already initialized constant ENV"

S

Scott Mathieson

I'm trying to get a basic markaby script to work via litespeeds lsapi, but it
keeps throwing the following error:

/usr/local/lib/ruby/site_ruby/1.8/i686-linux/lsapi.so: warning: already
initialized constant ENV

it seems to be something related to requiring gems but i've had no luck
finding a solution

#the script
require "rubygems"
require "markaby"

mab = Markaby::Builder.new
mab.html {
head { title "Markaby Test" }
body {
p "Some Text"
}
}

output is as expected in irb, i have rails app's running flawlessly and erb is
working using lsapi as a script handler - can anyone shed any light?

tried with:
ruby 1.8.4
markaby 0.3 & 0.4
litespeed 2.2.2 Standard
lsapi 1.8 & 1.9


tia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top