Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Running df in Linux  (Read 1079 times)

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Running df in Linux
« on: July 17, 2010, 09:52:24 am »

I'm trying to run df natively under a new gentoo machine, and I think I'm missing something. Double clicking the file tells me it's an executable text file (a bash script), asking me if I want to view its contents, run it, or run it in a terminal. I run it in terminal, of course, but I get this error:
Code: [Select]
jdoe@Tux ~/downloads/df_linux $ ./df
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory
Do I need sdl in the libs directory or something? And if I do, where do i get it?

'emerge libsdl' (Downloading sdl through the package manager) does nothing.
« Last Edit: July 17, 2010, 10:01:05 am by ILikePie »
Logged

Phmcw

  • Bay Watcher
  • Damn max 500 characters
    • View Profile
Re: Running df in Linux
« Reply #1 on: July 17, 2010, 10:01:59 am »

Yes you need a library (you will need that library a lot anyway, if I'm not mistaken.)
Use your package manager to get it, I think.
I don't know which one is used by gentoo, and how it work, so I can't help you any further.
Logged
Quote from: toady

In bug news, the zombies in a necromancer's tower became suspicious after the necromancer failed to age and he fled into the hills.

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Running df in Linux
« Reply #2 on: July 17, 2010, 10:03:50 am »

Well, I think libsdl is the one, it said so in the description, but it still doesn't work.
Logged

Phmcw

  • Bay Watcher
  • Damn max 500 characters
    • View Profile
Re: Running df in Linux
« Reply #3 on: July 17, 2010, 10:14:03 am »

No, I don't know which package manager Gentoo use.

So you installed lidsdl?
Is it the right version? Hmm. There is a lot of those in the package manager (a lot of thing that begin by libsdl. You're sure that
libsdl-image1.2 is installed?
Logged
Quote from: toady

In bug news, the zombies in a necromancer's tower became suspicious after the necromancer failed to age and he fled into the hills.

HideousBeing

  • Bay Watcher
    • View Profile
Re: Running df in Linux
« Reply #4 on: July 17, 2010, 10:17:26 am »

Install sdl-image. It is separate from the base sdl.
Logged

Mr.Elendig

  • Bay Watcher
  • [TWISTED][INSANE][CANT_SPELL]
    • View Profile
Re: Running df in Linux
« Reply #5 on: July 17, 2010, 10:19:07 am »

http://gentoo-portage.com/media-libs/sdl-image
^ is probably the right package. If you are on a 64bit install tho, then you will need to build a 32bit version of that, or use a chroot.
Logged

Phmcw

  • Bay Watcher
  • Damn max 500 characters
    • View Profile
Re: Running df in Linux
« Reply #6 on: July 17, 2010, 10:22:43 am »

I think you should type
emerge libsdl-image1.2
or
emerge sdl-image-1.2.10
Logged
Quote from: toady

In bug news, the zombies in a necromancer's tower became suspicious after the necromancer failed to age and he fled into the hills.

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Running df in Linux
« Reply #7 on: July 17, 2010, 11:04:38 am »

emerge sdl-image did the trick, thanks guys.


Now to set up sound...
« Last Edit: July 18, 2010, 07:10:00 am by ILikePie »
Logged