Closed hmslima closed 6 years ago
Hi there! Sorry for the delayed response.
Yes, this does look very similar to bug #480. I'm not sure why this is happening. Could you try forcing the issue by running with the LUA
variable set directly: e.g. ./configure LUA=/usr/bin/lua
?
Could you also try putting the following code into a file (e.g. testlua.sh):
for ax_cv_pathless_LUA in lua lua5.2 lua52 lua5.1 lua51 lua50 none; do
test "x$ax_cv_pathless_LUA" = 'xnone' && break
if $ax_cv_pathless_LUA -e "print('Hello ' .. _VERSION .. '!')"; then :
else
continue
fi
if $ax_cv_pathless_LUA 2>/dev/null -e '
function norm (v)
i,j=v:match "(%d+)%.(%d+)" if i then return 100 * i + j end
end
v, toobig=norm (_VERSION), norm "" or math.huge
os.exit ((v >= norm ("5.1") and v < toobig) and 0 or 1)'; then :
break
fi
done
(this is the test that configure does internally) and then try running sh -x testlua.sh
and telling me the output? That would highlight where and why it is failing.
THE PROBLEM WAS SOLVED! And the reason was very stupid...
See what I did:
Could you try forcing the issue by running with the LUA variable set directly: e.g. ./configure LUA=/usr/bin/lua?
Same thing...
Could you also try putting the following code into a file (e.g. testlua.sh): (this is the test that configure does internally) and then try running sh -x testlua.sh and telling me the output? That would highlight where and why it is failing.
$ sh -x testlua.sh
+ test xlua = xnone
+ lua -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua: not found
+ continue
+ test xlua5.2 = xnone
+ lua5.2 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua5.2: not found
+ continue
+ test xlua52 = xnone
+ lua52 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua52: not found
+ continue
+ test xlua5.1 = xnone
+ lua5.1 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua5.1: not found
+ continue
+ test xlua51 = xnone
+ lua51 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua51: not found
+ continue
+ test xlua50 = xnone
+ lua50 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua50: not found
+ continue
+ test xnone = xnone
+ break
Then I installed the packages: liblua50-dev
, liblua50
, liblualib50
and lua50
$ sh -x testlua.sh
+ test xlua = xnone
+ lua -e print('Hello ' .. _VERSION .. '!')
Hello Lua 5.0.3!
+ :
+ lua -e
function norm (v)
i,j=v:match "(%d+)%.(%d+)" if i then return 100 * i + j end
end
v, toobig=norm (_VERSION), norm "" or math.huge
os.exit ((v >= norm ("5.1") and v < toobig) and 0 or 1)
+ test xlua5.2 = xnone
+ lua5.2 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua5.2: not found
+ continue
+ test xlua52 = xnone
+ lua52 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua52: not found
+ continue
+ test xlua5.1 = xnone
+ lua5.1 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua5.1: not found
+ continue
+ test xlua51 = xnone
+ lua51 -e print('Hello ' .. _VERSION .. '!')
testlua.sh: 4: testlua.sh: lua51: not found
+ continue
+ test xlua50 = xnone
+ lua50 -e print('Hello ' .. _VERSION .. '!')
Hello Lua 5.0.3!
+ :
+ lua50 -e
function norm (v)
i,j=v:match "(%d+)%.(%d+)" if i then return 100 * i + j end
end
v, toobig=norm (_VERSION), norm "" or math.huge
os.exit ((v >= norm ("5.1") and v < toobig) and 0 or 1)
+ test xnone = xnone
+ break
And then I noticed that I didn't install the packages lua5.1
, lua5.2
and lua5.3
. I thought that they were already installed once I installed their lib relatives.
$ sh -x testlua.sh
+ test xlua = xnone
+ lua -e print('Hello ' .. _VERSION .. '!')
Hello Lua 5.2!
+ :
+ lua -e
function norm (v)
i,j=v:match "(%d+)%.(%d+)" if i then return 100 * i + j end
end
v, toobig=norm (_VERSION), norm "" or math.huge
os.exit ((v >= norm ("5.1") and v < toobig) and 0 or 1)
+ :
+ break
How could I be so inattentive?! What was missing was precisely the main packages of Lua. (¬¬)
Oh, oops! We should be able to trust that when ./configure says there’s no lua, there’s no lua. But autoconf has its own, uh, idiosyncracies so often that I can’t really trust it... Anyway, glad you got it working and have fun playing with SILE!
Sorry for openning a second topic, but it's another problem. Seems that someone already made similar question here, but the problem was unsolved...
As the title says, I can't ./configure SILE. I am using Lubuntu 18.04 64bits:
$ ./configure
$pkg-config --list-all | grep harf
$pkg-config --list-all | grep -i lua
config.log