• Subject: Re: [ANNOUNCE]: LuaSocket 2.0.2
• From: "Evan DeMond" <evan.demond@...>
• Date: Mon, 15 Oct 2007 13:55:02 -0400

On 10/15/07, Evan DeMond <evan.demond@gmail.com> wrote:

>> 2) The Manual lists where the files should be installed, including:
>>    <CDIR>/socket/core.dll
>>    <CDIR>/mime/core.dll
>> But my build didn't produce these DLLs, it produced socket.dll and
>> mime.dll, and I put them into <CDIR>. Should the manual be corrected?
>
> any explanation on the websites for how to install on
> Win32 - are these intended to replace mime/core.dll and
> socket/core.dll?

Yes. Copy mime.dll into mime/core.dll and socket.dll into
socket/core.dll.  You can't just dump these in CDIR. It will
not work as expected. If you do that, require"socket" will
and they should load the higher level socket.lua and
mime.lua. You will be missing high-level functionality.

Regards,
Diego

Sorry, I'm afraid I still don't understand - I've tried it with quite a few different arrangements and I still can't get it to load version 2.0.2. Here's my setup:

* Using the LuaBinaries distribution of Lua 5.1.2
* All other LuaSocket files placed as in "Directory structure" on  http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/installation.html

C:\Lua\ as LDIR
C:\Lua\lib\ as CDIR

If I understood you correctly, you said to replace core.dll in <CDIR>/mime/ with mime.dll and core.dll in <CDIR>/socket/ with socket.dll. For me this yields:

> sock = require("socket")
no file 'C:\Lua\socket\core.lua'
no file 'socket\core.lua'
no file 'C:\Lua\lib\socket\core.dll'
no file 'socket\core.dll'
no file 'C:\Lua\lib\socket.dll'
no file 'socket.dll'

If you can shed some light on what I'm doing wrong, I would appreciate it!

Thanks,

Evan

In addition, I tried renaming mime.dll in <CDIR>/mime/ to core.dll and socket.dll in <CDIR>/socket to core.dll, this yields:

> sock = require("socket")