Page 1 of 1

[resolved] Can't find out libluajit-5.1.so.2

Posted: Wed Aug 20, 2014 8:45 am
by gargamel79
In order to install Löve 0.9.1 I ran :
# make install
The result in /usr/bin/ is:
........
-rwxr-xr-x 1 root root 14K août 20 09:39 love
-rwxr-xr-x 1 root root 1,5M janv. 27 2013 love-0.8
........
But when I launch
$ love
love: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory

So I have a look at /usr/local/lib :
lrwxrwxrwx 1 root staff 22 août 19 16:12 libluajit-5.1.so.2 -> libluajit-5.1.so.2.0.3

I add /usr/local/lib in my path (echo $PATH is OK)
But it stays not possible to launch love (same message).
Maybe love doesn't look for libluajit at this place (/usr/local/lib) ?

Resolved : new complete installalation of wheezy from scratch :halloween:

Re: Can't find out libluajit-5.1.so.2

Posted: Wed Aug 20, 2014 9:04 am
by bartbes
It's not love's job to look for it, it's the dynamic linker's. So this means you compiled it wrong and/or have configuration issues on your system. The temporary way to solve it is adding /usr/local/lib to your LD_LIBRARY_PATH, the good way of solving this is adding it to your /etc/ld.so.conf (see the manpage for ldconfig).

Additionally, are you sure the symlink for libluajit-5.1.so.2 actually points to an existing file?

Re: Can't find out libluajit-5.1.so.2

Posted: Thu Aug 21, 2014 6:14 am
by gargamel79
I ran
# /sbin/ldconfig -v
Now when I launch love, I get the out:
Error: No available video device
stack traceback:
[C]: at 0xb75dace0
[C]: in function 'require'
[string "boot.lua"]:324: in function <[string "boot.lua"]:241>
[C]: in function 'xpcall'
I am perplexed...

Re: Can't find out libluajit-5.1.so.2

Posted: Thu Aug 21, 2014 6:32 am
by slime
SDL generates that error message when it's unable to initialize any video/windowing backend (e.g. X11, Wayland, etc.)

Re: Can't find out libluajit-5.1.so.2

Posted: Fri Aug 22, 2014 7:28 am
by gargamel79
I guess it's helpless ...
Anyway thank you for your help.

Re: Can't find out libluajit-5.1.so.2

Posted: Fri Aug 22, 2014 8:50 am
by bartbes
Are you trying to run love on an exotic platform?

Re: Can't find out libluajit-5.1.so.2

Posted: Fri Aug 22, 2014 12:34 pm
by gargamel79
I don't think so, it's a wheezy debian with xfce..

Re: Can't find out libluajit-5.1.so.2

Posted: Sat Aug 23, 2014 9:05 am
by gargamel79
When I run: ldconfig -v > result , I obtain, with a filter
/usr/local/lib:
libluajit-5.1.so.2 -> libluajit-5.1.so.2.0.3
libSDL2-2.0.so.0 -> libSDL2.so
but also
/usr/lib/i386-linux-gnu:
libSDL-1.2.so.0 -> libSDL.so
I am afraid it's this last one that is taking into account.
Because it's the native version used by my wheezy debian...

I have in
/etc/ld.so.conf.d/i486-linux-gnu.conf
# Multiarch support
/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu
/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu

And in
/etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib

How to get rid of this doubt

Re: Can't find out libluajit-5.1.so.2

Posted: Sat Aug 23, 2014 9:44 am
by bartbes
They have different names, that won't happen. In any case, using 'ldd' on the executable should give you the list of libraries actually being used. Are you sure you have drivers installed that support OpenGL?

Re: Can't find out libluajit-5.1.so.2

Posted: Sat Aug 23, 2014 1:14 pm
by gargamel79
I have just installed the package : libhugs-opengl-bundled
but without a good result.
Have you got a package to recommend. It exists a lot a ...opengl.. packages

The following command gives
ldd /usr/bin/love
................
libSDL2-2.0.so.0 => /usr/local/lib/libSDL2-2.0.so.0 (0xb6efd000)
.............
It seems OK for that point.