<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pmdo.pmdcollab.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3AUpgrading_Lua_Debug</id>
	<title>Tutorial:Upgrading Lua Debug - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pmdo.pmdcollab.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3AUpgrading_Lua_Debug"/>
	<link rel="alternate" type="text/html" href="https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;action=history"/>
	<updated>2026-07-31T10:18:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=5281&amp;oldid=prev</id>
		<title>Imbion at 18:27, 24 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=5281&amp;oldid=prev"/>
		<updated>2025-11-24T18:27:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:27, 24 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l129&quot;&gt;Line 129:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 129:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: Maintenance]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: Maintenance]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Tutorial]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Imbion</name></author>
	</entry>
	<entry>
		<id>https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=4650&amp;oldid=prev</id>
		<title>Imbion: Imbion moved page Upgrading Lua Debug to Tutorial:Upgrading Lua Debug</title>
		<link rel="alternate" type="text/html" href="https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=4650&amp;oldid=prev"/>
		<updated>2025-10-16T16:36:55Z</updated>

		<summary type="html">&lt;p&gt;Imbion moved page &lt;a href=&quot;/Upgrading_Lua_Debug&quot; class=&quot;mw-redirect&quot; title=&quot;Upgrading Lua Debug&quot;&gt;Upgrading Lua Debug&lt;/a&gt; to &lt;a href=&quot;/Tutorial:Upgrading_Lua_Debug&quot; title=&quot;Tutorial:Upgrading Lua Debug&quot;&gt;Tutorial:Upgrading Lua Debug&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:36, 16 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Imbion</name></author>
	</entry>
	<entry>
		<id>https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=2553&amp;oldid=prev</id>
		<title>IDK at 18:58, 8 November 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=2553&amp;oldid=prev"/>
		<updated>2024-11-08T18:58:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:58, 8 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l128&quot;&gt;Line 128:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 128:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;https://studio.zerobrane.com/doc-remote-debugging&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;https://studio.zerobrane.com/doc-remote-debugging&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Maintainers&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Maintenance&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>IDK</name></author>
	</entry>
	<entry>
		<id>https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=2552&amp;oldid=prev</id>
		<title>IDK at 18:47, 8 November 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=2552&amp;oldid=prev"/>
		<updated>2024-11-08T18:47:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:47, 8 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l128&quot;&gt;Line 128:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 128:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;https://studio.zerobrane.com/doc-remote-debugging&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;https://studio.zerobrane.com/doc-remote-debugging&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Maintaining&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Maintainers&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>IDK</name></author>
	</entry>
	<entry>
		<id>https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=2551&amp;oldid=prev</id>
		<title>IDK: First post dump</title>
		<link rel="alternate" type="text/html" href="https://wiki.pmdo.pmdcollab.org/wiki/index.php?title=Tutorial:Upgrading_Lua_Debug&amp;diff=2551&amp;oldid=prev"/>
		<updated>2024-11-08T18:45:42Z</updated>

		<summary type="html">&lt;p&gt;First post dump&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page documents the steps to take to get lua debugging to work for PMDO, as a source code level developer.&lt;br /&gt;
This means building out all the necessary libraries and dependencies for the correct platforms.&lt;br /&gt;
&lt;br /&gt;
If you are a modder and just want to activate this feature, refer to the [https://www.youtube.com/watch?v=sctsPY2iowI Tutorial]&lt;br /&gt;
&lt;br /&gt;
Components:&lt;br /&gt;
* NLua https://github.com/audinowho/NLua/tree/development&lt;br /&gt;
* KeraLua https://github.com/audinowho/KeraLua/tree/development&lt;br /&gt;
* lua https://github.com/audinowho/lua/tree/development&lt;br /&gt;
* luasocket https://github.com/lunarmodules/luasocket&lt;br /&gt;
* mobdebug https://github.com/pkulchenko/MobDebug&lt;br /&gt;
* zbrane https://studio.zerobrane.com/support&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NLua and KeraLua ==&lt;br /&gt;
&lt;br /&gt;
This is a project within PMDO&amp;#039;s solution.  It&amp;#039;s currently forked to a development build instead of using a nuget package.  This allows us to specify the lua54 binaries to include in PMDC/PMDC/runtimes&lt;br /&gt;
This will need to be updated if lua updates and we have reason to update.&lt;br /&gt;
&lt;br /&gt;
== Lua ==&lt;br /&gt;
This is a development branch of the lua binaries with a fix to DLOpen.  This PR was not accepted into NLua&amp;#039;s lua repo so we had to build it ourselves.  This will need to be updated if lua updates and we have reason to update.&lt;br /&gt;
&lt;br /&gt;
Build instructions are actually in KeraLua/build/targets, in each platform&amp;#039;s vcproject.  However they only activate on the respective OS they compile for.&lt;br /&gt;
You will need to uncomment the respective line in KeraLua.net.6.0.csproj matching your os:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;!--Import Project=&amp;quot;..\targets\BuildLua.Windows.targets&amp;quot; /--&amp;gt;&lt;br /&gt;
  &amp;lt;!--Import Project=&amp;quot;..\targets\BuildLua.OSX.targets&amp;quot; /--&amp;gt;&lt;br /&gt;
  &amp;lt;!--Import Project=&amp;quot;..\targets\BuildLua.Linux.targets&amp;quot; /--&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Build the project and it will build the lua binaries.  The output should tell you where they are released to.  It should also include the lua executable.  They seem to require cmake.&lt;br /&gt;
&lt;br /&gt;
Here in windows, the output has been transferred to lua32 and lua64 respectively.&lt;br /&gt;
&lt;br /&gt;
=== For linux ===&lt;br /&gt;
You can also just follow the exact commands in that csproj file to do the cmake if you dont want to mess with any vs stuff&lt;br /&gt;
&lt;br /&gt;
after creating the lua installation, you should have the following directories:&lt;br /&gt;
* include (always there)&lt;br /&gt;
* lib64 (newly added, holds libraries for linking)&lt;br /&gt;
* bin64 (newly added, holds the lua interpreter)&lt;br /&gt;
 &lt;br /&gt;
HOWEVER,&lt;br /&gt;
* the lua static lib must have been generated using -fPIC beforehand&lt;br /&gt;
* you do this by using export CFLAGS=&amp;quot;-m64 -fPIC&amp;quot; instead of export CFLAGS=-m64&lt;br /&gt;
 &lt;br /&gt;
then follow the instructions from the csproj as normal&lt;br /&gt;
&lt;br /&gt;
you will create a liblua54.so in lib64&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== luasocket ==&lt;br /&gt;
This is the vanilla luasocket module with a C component that needs to be built for the OS you&amp;#039;re currently on.  For windows, this is done by opening the sln and building just the socket project in Release mode for x86 and x64.  This will need to be updated with lua updates.  Maybe.  We&amp;#039;ll have to see if a new version gets planned for a new lua lib.  And also if it&amp;#039;ll just work for the old one.&lt;br /&gt;
&lt;br /&gt;
* To build, you will need Windows SDK 8.1.  Otherwise it will complain about toolset missing.&lt;br /&gt;
* You will also need to include lua library headers in the header paths, and the lua libs folder for libs.  Or else you will get header not found errors and linker errors.&lt;br /&gt;
* One issue spotted with VC++ compilation in particular is that the stddef.h could not be found, because windows macros were incorrectly set up.  I had to add C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ manually to the project ot point it to the right .h file.  Same with the libs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== For linux ===&lt;br /&gt;
use luarocks&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
create a new directory, I named it luarocks&lt;br /&gt;
install luarocks here&lt;br /&gt;
&lt;br /&gt;
wget https://luarocks.org/releases/luarocks-3.9.2.tar.gz&lt;br /&gt;
tar zxpf luarocks-3.9.2.tar.gz&lt;br /&gt;
 &lt;br /&gt;
#yes, a second one&lt;br /&gt;
mkdir luarocks&lt;br /&gt;
cd luarocks-3.9.2&lt;br /&gt;
 &lt;br /&gt;
#we will configure our install to specifically point to the lua we just created so we don&amp;#039;t mess with anything computer-wide&lt;br /&gt;
 &lt;br /&gt;
./configure --with-lua=/home/user/Documents/lua --with-lua-include=/home/user/Documents/lua/include --with-lua-lib=/home/user/Documents/lua/lib64 --prefix=/home/user/Documents/luarocks/luarocks&lt;br /&gt;
&lt;br /&gt;
then,&lt;br /&gt;
&lt;br /&gt;
make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
go up one level and go into luarocks, go into bin subdir&lt;br /&gt;
&lt;br /&gt;
sudo ./luarocks install luasocket&lt;br /&gt;
&lt;br /&gt;
once installation is done, go into ../share/socket.  I need the core.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
THE ABOVE DOESNT WORK BECAUSE IT GENERATES A DYNAMICALY LINKED CORE.SO WITH LUA FUNCTIONS DECLARED BUT NOT DEFINED (use nm core.so to see them)&lt;br /&gt;
&lt;br /&gt;
instead... go to the luasocket directory&lt;br /&gt;
&lt;br /&gt;
edit the src/makefile to use version 5.4, and change the paths&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
-LUAV?=5.1&lt;br /&gt;
+LUAV?=5.4&lt;br /&gt;
 &lt;br /&gt;
-LUAINC_linux_base?=/usr/include&lt;br /&gt;
-LUAINC_linux?=$(LUAINC_linux_base)/lua/$(LUAV) $(LUAINC_linux_base)/lua$(LUAV)&lt;br /&gt;
-LUAPREFIX_linux?=/usr/local&lt;br /&gt;
-CDIR_linux?=lib/lua/$(LUAV)&lt;br /&gt;
-LDIR_linux?=share/lua/$(LUAV)&lt;br /&gt;
+LUAINC_linux?=/home/user/Documents/lua/include&lt;br /&gt;
+LUAPREFIX_linux?=/home/user/Documents/lua/bin&lt;br /&gt;
+CDIR_linux?=/home/user/Documents/luasocket/lib&lt;br /&gt;
+LDIR_linux?=/home/user/Documents/luasocket/share&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
run &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
but then go into src to perform the last compile step yourself&lt;br /&gt;
&lt;br /&gt;
copy liblua54_static.a to this directory and run&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
gcc luasocket.o timeout.o buffer.o io.o auxiliar.o compat.o options.o inet.o usocket.o except.o select.o tcp.o udp.o -L. -llua54_static -O -shared -fPIC -ocore.so&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== mobdebug ==&lt;br /&gt;
This is a single lua file for debugging with sockets.  Just update this when lua updates, for safety.&lt;br /&gt;
&lt;br /&gt;
== zbrane ==&lt;br /&gt;
&lt;br /&gt;
You just need to download this separately.  The zip will do just fine.  Follow the instructions and then start the game.  You should see breakpoints hit.&lt;br /&gt;
https://studio.zerobrane.com/doc-remote-debugging&lt;br /&gt;
&lt;br /&gt;
[[Category: Maintaining]]&lt;/div&gt;</summary>
		<author><name>IDK</name></author>
	</entry>
</feed>