VLC-2.1.2 - lua error activating the HTTP interface

*nix specific usage questions
rezils
New Cone
New Cone
Posts: 4
Joined: 27 Dec 2013 20:28

VLC-2.1.2 - lua error activating the HTTP interface

Postby rezils » 27 Dec 2013 20:44

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby Rémi Denis-Courmont » 28 Dec 2013 12:09

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).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rezils
New Cone
New Cone
Posts: 4
Joined: 27 Dec 2013 20:28

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby rezils » 28 Dec 2013 20:50

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 :)

limiteddi
Blank Cone
Blank Cone
Posts: 28
Joined: 12 Dec 2013 18:10

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby limiteddi » 06 Jan 2014 06:08

rezils, how did you fix it? I have the same issue in 64 bit ubuntu

rezils
New Cone
New Cone
Posts: 4
Joined: 27 Dec 2013 20:28

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby rezils » 06 Jan 2014 12:12

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.

limiteddi
Blank Cone
Blank Cone
Posts: 28
Joined: 12 Dec 2013 18:10

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby limiteddi » 06 Jan 2014 17:35

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

rezils
New Cone
New Cone
Posts: 4
Joined: 27 Dec 2013 20:28

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby rezils » 06 Jan 2014 17:56

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.

limiteddi
Blank Cone
Blank Cone
Posts: 28
Joined: 12 Dec 2013 18:10

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby limiteddi » 06 Jan 2014 18:48

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

User avatar
jiapei100
Blank Cone
Blank Cone
Posts: 33
Joined: 06 Aug 2009 02:17
VLC version: 4.0.0-dev
Operating System: Ubuntu
Location: Surrey, BC, Canada
Contact:

Re: VLC-2.1.2 - lua error activating the HTTP interface

Postby jiapei100 » 07 Jul 2016 16:38

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
Welcome to Vision Open
http://www.visionopen.com


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests