Skip to content

Conversation

jerome-pouiller
Copy link

This patch fix installation issue at least on Debian and Ubuntu.

In lua5.1.pc delivered in debian package, variable to be used to install lua
binary module is INSTALL_CMOD:

The following are intended to be used via "pkg-config --variable".

Install paths for Lua modules. For example, if a package wants to install

Lua source modules to the /usr/local tree, call pkg-config with

"--define-variable=prefix=/usr/local" and "--variable=INSTALL_LMOD".

INSTALL_LMOD=${prefix}/share/lua/${major_version}
INSTALL_CMOD=${prefix}/lib/${deb_host_multiarch}/lua/${major_version}

This patch fix installation issue at least on Debian and Ubuntu.

In lua5.1.pc delivered in debian package, variable to be used to install lua
binary module is INSTALL_CMOD:

 # The following are intended to be used via "pkg-config --variable".
 # Install paths for Lua modules.  For example, if a package wants to install
 # Lua source modules to the /usr/local tree, call pkg-config with
 # "--define-variable=prefix=/usr/local" and "--variable=INSTALL_LMOD".
 INSTALL_LMOD=${prefix}/share/lua/${major_version}
 INSTALL_CMOD=${prefix}/lib/${deb_host_multiarch}/lua/${major_version}
@wrzasa
Copy link

wrzasa commented Feb 24, 2016

It helped if I run
./configure LUA_CFLAGS=-I/usr/include/lua5.1 LUA_LIBS=-llua5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants