📄 howto
字号:
To rebuild the Lua interpreter, you need the Lua source distribution (ofcourse), and the uClibc library. The uClibc library is used to provideroutines needed by the downloadable interpreter.uClibc can be found here: http://www.uclibc.orgThe version used was 0.9.16.You need to build with MMU enabled and no shared libraries, otherwise itwill use mmap instead of sbrk to obtain more memory (which we don'tsupport) and will not create a libc.a without shared library hooks(which we also don't support).Lua can be found here: http://www.tecgraf.puC-rio.br/lua/The version used is 4.0.1.You need to build a luac compiler separately, say in /usr/local. Youwill need to build it with LUA_NUM_TYPE=long (in config) andNUMBER_FMT=%ld. This is not the default as distributed. If you don'tchange the settings as shown, then you will get a sizeof mismatch whenyou try to execute Lua binary scripts. (To fix this to use the defaultof LUA_NUM_TYPE=double, I need to figure out how to implement %g inprintf.)Then unpack Lua again in the directory above this one and then apply thepatch in this directory to it. I.e., if you have the distribution in/usr/local/src/lua-4.0.1.tar.gz, tar zxvf /usr/local/src/lua-4.0.1.tar.gz cd lua-4.0.1 patch -p1 < ../luabuild/luapatch.txt makeand hopeully everything will compile ok. If not, check the settings inconfig and the various Makefiles.The program is in lua-4.0.1/bin/lua, which is copied to lua andthence to the library directory by a make install on mknbi.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -