Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0002170Dwarf FortressTechnical -- Generalpublic2010-06-05 06:172010-07-10 05:46
burlingk 
Baughn 
normalblockalways
resolvedfixed 
LinuxLinuxUnuntu 64
 
 
0002170: Does not load. Ncurses error
When I try to run the program, I get the following error.

./libs/Dwarf_Fortress: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
linux
Issue History
2010-06-05 06:17burlingkNew Issue
2010-06-05 06:19burlingkNote Added: 0007717
2010-06-05 06:49burlingkNote Edited: 0007717bug_revision_view_page.php?bugnote_id=0007717#r2866
2010-06-05 06:56dafleckNote Added: 0007718
2010-06-05 06:57dafleckNote Edited: 0007718bug_revision_view_page.php?bugnote_id=0007718#r2868
2010-06-05 10:15FootkerchiefStatusnew => assigned
2010-06-05 10:15FootkerchiefAssigned To => Baughn
2010-06-05 19:34burlingkNote Added: 0007744
2010-06-08 08:16FootkerchiefNote Added: 0007936
2010-06-08 08:22BaughnNote Added: 0007937
2010-06-08 08:25BaughnNote Added: 0007938
2010-06-08 08:25BaughnStatusassigned => closed
2010-06-08 08:25BaughnResolutionopen => no change required
2010-06-08 08:26BaughnNote Edited: 0007938bug_revision_view_page.php?bugnote_id=0007938#r2964
2010-06-08 08:43FootkerchiefStatusclosed => resolved
2010-06-08 13:40NLegariTag Attached: suspension of disbelief
2010-06-08 13:40NLegariTag Detached: suspension of disbelief
2010-06-09 06:21burlingkNote Added: 0007987
2010-06-09 06:21burlingkStatusresolved => needs feedback
2010-06-09 06:21burlingkResolutionno change required => reopened
2010-06-09 06:49FootkerchiefNote Added: 0007988
2010-06-09 06:49FootkerchiefStatusneeds feedback => resolved
2010-06-09 06:49FootkerchiefResolutionreopened => fixed
2010-06-29 07:38FootkerchiefCategoryTechnical => Technical -- General
2010-07-10 05:46TomiTapioTag Attached: linux

Notes
(0007717)
burlingk   
2010-06-05 06:19   
(edited on: 2010-06-05 06:49)
This may be an ubuntu64 specific issue.

In the /lib32 directory, I did

sudo ln -s libncurses.so.5 libncursesw.so.5

And that fixed it.

Note: On many systems, there is no longer a separate libncursesw. This started to be the case more often when Unicode became the rule instead of the exception.

(0007718)
dafleck   
2010-06-05 06:56   
(edited on: 2010-06-05 06:57)
I had this issue running with ubuntu64 10.04 however I did not have the 32bit libraries installed on my system.

I found 'getlibs' which installs 32bit versions of libraries and ran it (from my df dir) with:
sudo getlibs libs/Dwarf_Fortress

It successfully installed the 32bit version of libncursesw and DF now works fine.

EDIT: getlibs can be found at
http://ubuntuforums.org/showthread.php?t=474790&highlight=getlibs [^]

(0007744)
burlingk   
2010-06-05 19:34   
getlibs says that I am not missing any dependancies.

The biggest annoyance is that it got this error when set to "Standard" and "2D" print modes. :P

At least I have figured out a workaround.
(0007936)
Footkerchief   
2010-06-08 08:16   
Reminder sent to: Baughn

Hey Baughn -- I assigned this one to you but wasn't sure if you saw it.
(0007937)
Baughn   
2010-06-08 08:22   
I didn't. Hm.

nurses uses function macros heavily, which makes it impractical to dlopen/dlsym the library. The preferred solution is to use autoconf to build a version for the particular system it'll be running on.. yeah, not really an option here.

I'm going to have to think about this one. And ask some people.
(0007938)
Baughn   
2010-06-08 08:25   
(edited on: 2010-06-08 08:26)
This is on Ubuntu, right?

There's a lib32ncursesw5 package you should install.

(0007987)
burlingk   
2010-06-09 06:21   
You can just re-close this. I am only posting to let you know that I did install that package, and it fixed the problem. I must have had a typo the first time I looked for it, as I missed it.

Chalk this on up to user error. :)
(0007988)
Footkerchief   
2010-06-09 06:49   
Closing as requested.