On Thu, Oct 23, 2014 at 7:00 AM, David Crayford <[email protected]> wrote:

> On 23/10/2014 7:46 PM, John McKown wrote:
>
>> Thank you. I guess this means that I need to learn lua now <grin/>.
>>
>
> That shouldn't be too difficult for a man of your abilities 8^)
>
> Scripting languages are generally very easy to learn. Lua is has an almost
> identical feature set to Javascript. They both share a common design goal
> and were heavily influenced by scheme, although Lua predates Javascript by
> two years.
>
> It's very fast!


​Well, I got it installed. I ran into a "problem" with the
./lua4z​-1.0.0.bin when I ran it a second time. The first time, it said it
couldn't find the PDSEs (LOADLIB and SAMPLIB) and did I want to define
them? All is good. I reply "Y" and they are allocated. When I ran the
script a second time, it did the same. It did _not_ properly detect that
the PDSEs existed. It tried to allocate them again, and I got error
messages from that allocation. The script continued to run. All in all, I
got what I needed, but it seems to point out a problem with the
installation script. Oh, I entered the data set names in lower case, which
might be the problem.

The lua4z/examples/ivp.lua fails when I run it from my UNIX shell.

====

LIH1:TSH009:/HM/lua4z/examples$
lua ivp.lua
Lua4z installation verification procedure (IVP)

Checking LUA_PATH configuration: passed
Checking LUA_CPATH configuration: failed

Test results:
  1 passed
  1 failed

LIH1:TSH009:/HM/lua4z/examples$
printenv | grep LUA_
LUA_PATH=/HM/lua4z/share/lua/5.1/?.lua;./?.lua;/HM/lua4z/share/lua/5.1/?/init.lua;/HM/lua4z/lua/5.1/?.lua;/HM/lua4z/install/?.lua
LUA_CPATH=./?.so;/HM/lua4z/lib/lua/5.1/?.so
LIH1:TSH009:/HM/lua4z/examples$

====

​I looked at the ivp.lua. It references a variable "modules" which contains
"cjson" and "socket". There exists an cjson.so in the LUA_CPATH. But
"socket" is a directory in /HM/lua4z/lib/lua/5.1, not an ".so" file.
Granted, I need to read up on lua, but given the results, this seems like
it may be a problem in the ivp.lua script.​

Minor nits, but thought I'd give you a heads up.


-- 
The temperature of the aqueous content of an unremittingly ogled
culinary vessel will not achieve 100 degrees on the Celsius scale.

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to