mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Changed LIB/SHARE to CDIR/LDIR.
This commit is contained in:
parent
d55a5826e8
commit
7dace4af7e
@ -65,26 +65,26 @@ the package scheme will likely already have been answered.
|
|||||||
|
|
||||||
<p> On Unix systems, the standard distribution uses two base
|
<p> On Unix systems, the standard distribution uses two base
|
||||||
directories, one for system dependent files, and another for system
|
directories, one for system dependent files, and another for system
|
||||||
independent files. Let's call these directories <tt><LIB></tt>
|
independent files. Let's call these directories <tt><CDIR></tt>
|
||||||
and <tt><SHARE></tt>, respectively.
|
and <tt><LDIR></tt>, respectively.
|
||||||
For instance, in my laptop, I use '<tt>/usr/local/lib/lua/5.0</tt>' for
|
For instance, in my laptop, I use '<tt>/usr/local/lib/lua/5.0</tt>' for
|
||||||
<tt><LIB></tt> and '<tt>/usr/local/share/lua/5.0</tt>' for
|
<tt><CDIR></tt> and '<tt>/usr/local/share/lua/5.0</tt>' for
|
||||||
<tt><SHARE></tt>. On Windows, sometimes only one directory is used, say
|
<tt><LDIR></tt>. On Windows, sometimes only one directory is used, say
|
||||||
'<tt>c:\program files\lua\5.0</tt>'. Here is the standard LuaSocket
|
'<tt>c:\program files\lua\5.0</tt>'. Here is the standard LuaSocket
|
||||||
distribution directory structure:</p>
|
distribution directory structure:</p>
|
||||||
|
|
||||||
<pre class=example>
|
<pre class=example>
|
||||||
<SHARE>/compat-5.1.lua
|
<LDIR>/compat-5.1.lua
|
||||||
<SHARE>/ltn12.lua
|
<LDIR>/ltn12.lua
|
||||||
<SHARE>/socket.lua
|
<LDIR>/socket.lua
|
||||||
<LIB>/socket/core.dll
|
<CDIR>/socket/core.dll
|
||||||
<SHARE>/socket/http.lua
|
<LDIR>/socket/http.lua
|
||||||
<SHARE>/socket/tp.lua
|
<LDIR>/socket/tp.lua
|
||||||
<SHARE>/socket/ftp.lua
|
<LDIR>/socket/ftp.lua
|
||||||
<SHARE>/socket/smtp.lua
|
<LDIR>/socket/smtp.lua
|
||||||
<SHARE>/socket/url.lua
|
<LDIR>/socket/url.lua
|
||||||
<SHARE>/mime.lua
|
<LDIR>/mime.lua
|
||||||
<LIB>/mime/core.dll
|
<CDIR>/mime/core.dll
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p> Naturally, on Unix systems, <tt>core.dll</tt>
|
<p> Naturally, on Unix systems, <tt>core.dll</tt>
|
||||||
@ -96,7 +96,7 @@ environment variables need to be set. The first environment variable tells
|
|||||||
the interpreter to load the <tt>compat-5.1.lua</tt> module at startup: </p>
|
the interpreter to load the <tt>compat-5.1.lua</tt> module at startup: </p>
|
||||||
|
|
||||||
<pre class=example>
|
<pre class=example>
|
||||||
LUA_INIT=@<SHARE>/compat-5.1.lua
|
LUA_INIT=@<LDIR>/compat-5.1.lua
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -106,8 +106,8 @@ directories and with the appropriate filename extensions.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre class=example>
|
<pre class=example>
|
||||||
LUA_PATH=<SHARE>/?.lua;?.lua
|
LUA_PATH=<LDIR>/?.lua;?.lua
|
||||||
LUA_CPATH=<LIB>/?.dll;?.dll
|
LUA_CPATH=<CDIR>/?.dll;?.dll
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p> Again, naturally, on Unix systems the shared library extension would be
|
<p> Again, naturally, on Unix systems the shared library extension would be
|
||||||
|
Loading…
Reference in New Issue
Block a user