[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: cannot locate the package socket
- From: Duck <duck@...>
- Date: Sat, 25 Aug 2007 11:10:07 +1000 (EST)
I am trying to create a lua socket. when i run the
program i find the error: "Cannot find the package
Have a look at the "installation.html" file in the doc directory of the
LuaSocket distribution. It explains what you need where.
On Windows I'd suggest KISS - try setting your LUA_CPATH and LUA_PATH to
the same directory, e.g.
Then place the following LuaSocket files in this directory, which is the
"root" of all installed packages:
Create a subdirectory socket and place the following in it:
And a subdirectory mime containing:
Consider how the packaging works -- the instruction to:
will look in LUA_PATH to find "socket.lua". This in turn requires
"socket.core", which looks for core.dll in LUA_CPATH\socket (the dot in
the name of the item to be required becomes a subdirectory in the layout
of the package files on disk).
If you want to add other packages, their top-level files (.lua or .dll) go
into C:\Program Files\OPPR\Packages and any subfiles into the appropriate
subdirectory. Many packages are self-contained, so there's just a .dll (or
a .lua) file to place in C:\Program Files\OPPR\Packages.