Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: DFHack 0.34.11 r5 not opening on Xubuntu 14.04  (Read 3560 times)

TheSponge

  • Bay Watcher
    • View Profile
DFHack 0.34.11 r5 not opening on Xubuntu 14.04
« on: July 15, 2014, 06:50:49 am »

I am having trouble with using DFHack on linux. I downloaded http://dffd.wimbli.com/file.php?id=8681 and unpacked it to the installation directory of DF34.11 but when I try to start the game with dfhack it doesn't start. The following is the terminal output from "./dfhack":

Quote
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./hack/libprotobuf-lite.so)
-e
Then I replaced libstdc++.so.6 in ~/Programs/DF34.11/libs with the one in /usr/lib/i386-linux-gnu/. It may have helped but DF still didn't start:
Quote
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /home/USER/Programs/DF34.11/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./hack/libprotobuf-lite.so)
-e
This problem appears to be https://github.com/DFHack/dfhack/issues/176 but if it were that bug wouldn't replacing the DF copy of libstdc++.so.6 with the system copy have worked? Can anyone help with this?
Logged

Hesperid

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5 not opening on Xubuntu 14.04
« Reply #1 on: July 15, 2014, 11:47:02 am »

Well what happened becomes pretty obvious when you read the error messages and what the difference is between them: Your system version of libstdc++.so is newer than the one that ships with DF. But it's not new enough.

Compiling dfhack on a 64-bit Ubuntu can be a bit of a nightmare rabbit hole even with cmake.

If you'd rather try running the version I compiled on Ubuntu 13.10, you can find it here.
Logged

TheSponge

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5 not opening on Xubuntu 14.04
« Reply #2 on: July 16, 2014, 06:08:09 am »

Quote
Your system version of libstdc++.so is newer than the one that ships with DF. But it's not new enough.
That was the problem. I installed gcc-snapshot, copied libstdc.so.6.0.20 from /usr/lib/gcc-snapshot/lib/ into [DF]/libs and DFHack opened fine. Thanks Hesperid.
Logged

Hesperid

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5 not opening on Xubuntu 14.04
« Reply #3 on: July 17, 2014, 06:13:03 am »

Awesome, I hope the same works for other people too.
Logged