Installing from source (Mandrake 2008)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Locked
Mavi
Prole
Posts: 3
Joined: Mon Jul 14, 2008 8:11 pm

Installing from source (Mandrake 2008)

Post by Mavi »

hello, i have a problem on installing love from source. i added all needing lib files to my system. and the make procedure also works fine, but after make i change to the bin folder and start love i get the following message:

Code: Select all

./love: error while loading shared libraries: liblua5.1.so: cannot open shared object file: No such file or directory
i copied the lua libs from scratch http://luabinaries.luaforge.net/installation.html. thus the lua libs are located in /usr/local/lib and includes in /usr/local/include.

can someone give me a hint?
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Installing from source (Mandrake 2008)

Post by rude »

Hi!

In the makefile, try changing this:

Code: Select all

# Linker flags.
LD_LUA = -llua5.1
to this:

Code: Select all

# Linker flags.
LD_LUA = -llua
(Disclaimer: I only use Windows and Ubuntu, so no guarantees.)
Mavi
Prole
Posts: 3
Joined: Mon Jul 14, 2008 8:11 pm

Re: Installing from source (Mandrake 2008)

Post by Mavi »

hi, i changed the Makefile and run make again with the following failure:

Code: Select all

/usr/bin/ld: cannot find -llua
any other hints? thx

EDIT: i dont have a folder

Code: Select all

/usr/include/lua5.1
as defined in the Makefile. as i sad i copied from scratch to

Code: Select all

/usr/local/include
the include files from lua.

when i do make i get no errors...
Last edited by Mavi on Mon Jul 14, 2008 8:41 pm, edited 1 time in total.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Installing from source (Mandrake 2008)

Post by rude »

Ah ... ok. Lame.

There are lots of Linux guys here, but alas I am not one of them.
surtic
Citizen
Posts: 74
Joined: Sat Jul 12, 2008 12:18 am

Re: Installing from source (Mandrake 2008)

Post by surtic »

My suggestion:
  1. Make sure /usr/local/lib is in /etc/ld.so.conf
  2. Run (with root permissions) /sbin/ldconfig
It's not enough to copy the libraries, the loader needs to know about them (it doesn't automatically look in /usr/local/lib).
Mavi
Prole
Posts: 3
Joined: Mon Jul 14, 2008 8:11 pm

Re: Installing from source (Mandrake 2008)

Post by Mavi »

thx you. that worked!! the ldconfig is the loader ??
surtic
Citizen
Posts: 74
Joined: Sat Jul 12, 2008 12:18 am

Re: Installing from source (Mandrake 2008)

Post by surtic »

The loader is called ld.so, and /etc/ld.so.conf is its config file. ldconfig compiles /etc/ld.so.conf into a file called /etc/ld.so.cache which ld.so can use directly (it contains every dynamic libraries available to the loader).

If you're interested, have a look at the manpage of ld.so (for example here).
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Installing from source (Mandrake 2008)

Post by rude »

Woo~ ... Go Team/surtic!

Is this what apt-get does each time I install a library?
User avatar
Merkoth
Party member
Posts: 186
Joined: Mon Feb 04, 2008 11:43 pm
Location: Buenos Aires, Argentina

Re: Installing from source (Mandrake 2008)

Post by Merkoth »

rude wrote:Woo~ ... Go Team/surtic!

Is this what apt-get does each time I install a library?
Exactly, if you expand the "console" view while installing something with Synaptic, you can even read something like "Triggered deferred ldconfig". That way, if you're installing many libs, you don't have to rebuild ld's cache a gazillion times. Neato.
Locked

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest