Page 1 of 1
VLC-2.1.2 - lua error activating the HTTP interface
Posted: 27 Dec 2013 20:44
by rezils
Hi everybody,
I'm new to the forum so I take this opportunity to greet all the forum members
I've successfully compiled the VLC-2.1.2 sources on a Debian-testing up-to-date OS
but when I try to launch the vlc application with the http interface, I get this error:
Code: Select all
lua error: Error loading script /home/debian/tmp/vlc-git/vlc/share/lua/intf/http.luac: /home/debian/tmp/vlc-git/vlc/share/lua/intf/http.luac: bad header in precompiled chunk
and the interface obviously doesn't work.
I've "googled" the error looking for a solution/workaround with no success.
Does anyone know how to fix this?
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 28 Dec 2013 12:09
by RĂ©mi Denis-Courmont
You have compiled LUAC files for 64-bits and tried to run them on 32-bits, or vice versa. Or you have mismatched Lua compiler and run-time versions (say 5.1 and 5.2).
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 28 Dec 2013 20:50
by rezils
Thank you!
I've just checked and, as you pointed out, I had a mismatch in the Lua compiler and run-time versions.
More precisely, I had the dev libraries of the 5.1 version whereas there was a
symbolic link for the lua compiler (/usr/bin/luac) to the 5.2 version (/usr/bin/luac5.2).
Again thank you very much
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 06 Jan 2014 06:08
by limiteddi
rezils, how did you fix it? I have the same issue in 64 bit ubuntu
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 06 Jan 2014 12:12
by rezils
If you have both lua5.1 and lua5.2 installed (more precisely, the packages
lua5.1 liblua5.1-0 liblua5.1-0-dev lua5.2 liblua5.2-0 liblua5.2-dev),
just change the symbolic link /usr/bin/luac to point to /usr/bin/luac5.1 as below:
usr@deb01> ls -l /usr/bin/luac*
lrwxrwxrwx 1 root root 16 Dec 28 20:37 /usr/bin/luac -> /usr/bin/luac5.1*
-rwxr-xr-x 1 root root 111680 Aug 13 12:35 /usr/bin/luac5.1*
-rwxr-xr-x 1 root root 129456 Nov 25 13:01 /usr/bin/luac5.2
and then re-configure and re-compile vlc.
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 06 Jan 2014 17:35
by limiteddi
Here is what I have
-rwxr-xr-x 1 root root 174920 Apr 8 2012 /usr/bin/lua5.1
-rwxr-xr-x 1 root root 191288 Apr 15 2012 /usr/bin/lua5.2
lrwxrwxrwx 1 root root 16 Jan 6 11:27 /usr/bin/luac -> /usr/bin/luac5.2
-rwxr-xr-x 1 root root 125312 Apr 15 2012 /usr/bin/luac5.2
I didnt have luac5.1 so I changed it to 5.2
Recompiled vlc, still no go
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 06 Jan 2014 17:56
by rezils
You need to install luac5.1 and change the link of the lua compiler to /usr/bin/luac5.1.
The packages you need should be
lua5.1 liblua5.1-0 liblua5.1-0-dev
Again, you will need then to reconfigure and recompile.
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 06 Jan 2014 18:48
by limiteddi
No go
Stops at the same error
[0x20d3038] [cli] lua interface error: Error loading script /usr/local/lib/vlc/lua/intf/cli.luac: /usr/local/lib/vlc/lua/intf/cli.luac: bad header in precompiled chunk
/usr/local/bin# ls
root@streamer-Eu1:/usr/local/bin# ls -l /usr/bin/luac*
lrwxrwxrwx 1 root root 16 Jan 6 12:32 /usr/bin/luac -> /usr/bin/luac5.1
-rwxr-xr-x 1 root root 113048 Apr 8 2012 /usr/bin/luac5.1
-rwxr-xr-x 1 root root 125312 Apr 15 2012 /usr/bin/luac5.2
did the following:
apt-get autoremove apt-get install lua5.1 liblua5.1-0 liblua5.1-0-dev
apt-get install apt-get install lua5.1 liblua5.1-0 liblua5.1-0-dev
ln -s -f /usr/bin/luac5.1 /usr/bin/luac
cd vlc
./configure
make
make install
Re: VLC-2.1.2 - lua error activating the HTTP interface
Posted: 07 Jul 2016 16:38
by jiapei100
Have the same issue with current VLC-3.0.0-git.
I'm thinking it is the time to try lua5.3, but it seems VLC-3.0.0-git is still based on lua5.1 ???
Cheers
Pei