Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help: Dwarf Fortress wont start in ubuntu 12.10 64 bits  (Read 4095 times)

ChairmanPoo

  • Bay Watcher
  • Send in the clowns
    • View Profile
Help: Dwarf Fortress wont start in ubuntu 12.10 64 bits
« on: November 11, 2012, 09:23:24 am »

I get this error

Quote
loading bindings from data/init/interface.txt
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
The program 'Dwarf_Fortress' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 30 error_code 11 request_code 154 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.
« Last Edit: November 20, 2012, 11:37:47 pm by ChairmanPoo »
Logged
Everyone sucks at everything. Until they don't. Not sucking is a product of time invested.

hermes

  • Bay Watcher
    • View Profile
Re: Help: Dwarf Fortress wont start in Xubuntu 12.10
« Reply #1 on: November 11, 2012, 09:41:20 am »

Check out the Linux.README file in the df directory.

You'll probably need to go into Synaptic (or "apt-get install <package>" from the terminal, with root permission and check the package names) to install some packages listed in that readme, like...

libgl
libglu

...and possibly some more.

Love the avatar BTW.

edit - oh, 64bit versions required

Edit - yes, thanks trif. Heh, early onset senility is curable right?
« Last Edit: November 11, 2012, 07:08:45 pm by hermes »
Logged
We can only guess at the longing of the creator. Someone who would need to create one such as you. - A Computer
I've been working on this type of thing...

Trif

  • Bay Watcher
  • the Not-Quite-So-Great-as-Toady One
    • View Profile
Re: Help: Dwarf Fortress wont start in Xubuntu 12.10 64 bits
« Reply #2 on: November 11, 2012, 12:19:39 pm »

I'm sure you meant 32bit versions required. DF is compiled for 32-bit systems, so it can't use 64-bit libraries. No big deal, you'll just have to download the 32-bit versions of a few libraries, which is fairly easy using Ubuntu and the likes.
The wiki is helpful.
Logged
Quote from: Toady One
I wonder if the game has become odd.

Panthera Leo

  • Bay Watcher
    • View Profile
Re: Help: Dwarf Fortress wont start in Xubuntu 12.10 64 bits
« Reply #3 on: November 13, 2012, 11:46:50 am »

No, it's not a large issue to download the 32 packages for a 64 machines. It does waste the space, and create a separate string packages that have to be maintained just DF.

There is no 64bit compile of DF for Linux? iirc, it's just a single switch with the gcc (-m32 or -m64) to clue it to compiler a program for each system type. Even the Linux kernel is something you can kick off the compiler, go to bed, and greet the morning with a shiny new build.

Edit2: I take that back, he's probably also have to use something like -static-libstdc+, but nothing the gcc wasn't built to handle.
« Last Edit: November 13, 2012, 12:05:57 pm by Panthera Leo »
Logged

ChairmanPoo

  • Bay Watcher
  • Send in the clowns
    • View Profile
Re: Help: Dwarf Fortress wont start in Xubuntu 12.10 64 bits
« Reply #4 on: November 20, 2012, 04:44:55 pm »

Ok, (in Ubuntu 64), I installed the ia32-libs package, but now I get THIS other mistake

Quote
Gtk-Message: Failed to load module "overlay-scrollbar"
Loading bindings from data/init/interface.txt
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
The program 'Dwarf_Fortress' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 30 error_code 11 request_code 154 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Logged
Everyone sucks at everything. Until they don't. Not sucking is a product of time invested.

hermes

  • Bay Watcher
    • View Profile
Re: Help: Dwarf Fortress wont start in Xubuntu 12.10 64 bits
« Reply #5 on: November 20, 2012, 06:31:34 pm »

Possibly a graphics card/driver error?

Try going into init.txt in the DF data directory and changing the print mode to TEXT

[PRINT_MODE:TEXT]

And run DF from the terminal.  If that works, then you should check you have the right graphics drivers installed.  If that doesn't work then I really don't know!
Logged
We can only guess at the longing of the creator. Someone who would need to create one such as you. - A Computer
I've been working on this type of thing...

ChairmanPoo

  • Bay Watcher
  • Send in the clowns
    • View Profile
Re: Help: Dwarf Fortress wont start in Xubuntu 12.10 64 bits
« Reply #6 on: November 20, 2012, 11:04:37 pm »

Yeah, text works.  Now, to find out what's amiss with my drivers :/

Got this message
Spoiler (click to show/hide)
« Last Edit: November 20, 2012, 11:36:40 pm by ChairmanPoo »
Logged
Everyone sucks at everything. Until they don't. Not sucking is a product of time invested.