Opened 18 years ago

Closed 15 years ago

Last modified 7 years ago

#2173 closed enhancement (duplicate)

Lua-5.1.3

Reported by: Luca Owned by: blfs-book@…
Priority: normal Milestone: x-future
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Kdelibs supports lua extensions to kate (from what I read kde-3.5.4 should support lua-5.1=> instead of lua-5.0.

Lua latest version lua-5.1.1 from http://www.lua.org

Dependencies: NCurses and Readline.

make linux
make test
make install INSTALL_TOP=/usr

There are some customizations possible using

make MYCFLAGS="-DLUA_USE_MKSTEMP -DLUA_USE_DLOPEN -DLUA_COMPAT_GETN" linux

It is also possible to set -DLUA_COMPAT_LSTR 2 for the old long compatibily string nesting. Dynamic loading is enabled by default in platforms supported.

Attachments (3)

lua-5.1.1-install-1.patch (1.1 KB ) - added by Luca 18 years ago.
Install the shared library along with the static and fixes install to use install insted of cp
lua-5.1.1-makeso-1.patch (921 bytes ) - added by Luca 18 years ago.
Create liblua.so shared library in addition to the static lib.
lua-5.0.3-config-1.patch (3.8 KB ) - added by Luca 18 years ago.
Enables use of readline and ncurses, fixes layout to use /usr, makes use of mkstemp instead of tmpnam, enabled dynamic loading, enables fast rounding conversion method, enables use of popen and pclose and fixes make install to use install instead of cp

Download all attachments as: .zip

Change History (8)

by Luca, 18 years ago

Attachment: lua-5.1.1-install-1.patch added

Install the shared library along with the static and fixes install to use install insted of cp

by Luca, 18 years ago

Attachment: lua-5.1.1-makeso-1.patch added

Create liblua.so shared library in addition to the static lib.

comment:1 by Luca, 18 years ago

Build instructions for lua-5.0.3 version (http://www.lua.org)

Dependencies: NCurses and Readline.

patch -Np1 -i ../lua-5.0.3-config-1.patch
make
make so
make test
make install
make soinstall

It is possible to pass make sobin before make install to let interpreter and compiler use shared libraries.

by Luca, 18 years ago

Attachment: lua-5.0.3-config-1.patch added

Enables use of readline and ncurses, fixes layout to use /usr, makes use of mkstemp instead of tmpnam, enabled dynamic loading, enables fast rounding conversion method, enables use of popen and pclose and fixes make install to use install instead of cp

comment:2 by Randy McMurchy, 18 years ago

Milestone: 6.2future

What other package is there than can link to the shared LUA libraries? Why do the shared libraries need to be installed?

My feeling is that patches that link optional package into the build can be mentioned on a Wiki page, but are not appropriate for a BLFS page. Instead, on a BLFS page, there should just be a mention on how to modify the build to link these optional packages.

Changing the Milestone to future instead of 6.2. Discussion is required before this package is added into BLFS, simply due to its small user base. Would a Wiki page suit this package better?

comment:3 by Ag. Hatzimanikas, 16 years ago

Summary: Lua-5.1.1Lua-5.1.3

I didn't realized until now, that we've had a ticket about one of the simplest and fastest scripting object oriented languages. Anyway, current version is 5.1.3.

By the way. If someone is looking for a programming language for a package management implementation, Lua and Python are possible the best suited for that job, but Lua binary with the possible addition of the Luasocket module for network support is 200+ kb.

Sorry for this academic post in Track, but I thought I could drop a note to encourage people to have a look in that small jewel. Hopefully someone can pick it up and add it in the book, I wish I had the time to do it myself.

comment:4 by Ag. Hatzimanikas, 15 years ago

Resolution: duplicate
Status: newclosed

I am setting this as duplicate, as I opened #2926 for reasons that got explained in a post to one of our mailing lists, If Luca still wants to participate, his input would be we very valuable. Many thanks to him anyway who worked in that ticket and his name should be credited into the changelog.

comment:5 by bdubbs@…, 7 years ago

Milestone: futurex-future

Milestone renamed

Note: See TracTickets for help on using tickets.