Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0007309Dwarf FortressTechnical -- Generalpublic2014-07-14 19:382014-11-23 04:55
Android5217 
lethosor 
urgentblockalways
resolvedduplicate 
MacBook ProOSX10.9.4
0.40.03 
 
0007309: Dwarf Fortress won't open
The script to run the .exe file does not do anything and never opens dwarf fortress.
Open the "df" script.
The terminal produces this:

Last login: Mon Jul 14 18:45:46 on ttys000
Garets-MacBook-Pro:~ Garet$ /Users/Garet/Downloads/df_osx\ 3/df ; exit;
/Users/Garet/Downloads/df_osx 3/df: line 1: uname: command not found
/Users/Garet/Downloads/df_osx 3/df: line 1: cut: command not found
/Users/Garet/Downloads/df_osx 3/df: line 2: [: : integer expression expected
logout

[Process completed]
No tags attached.
duplicate of 0007389confirmed lethosor freetype missing on OS X; causes crashes when entering fullscreen and/or starting DF 
Issue History
2014-07-14 19:38Android5217New Issue
2014-07-14 19:38Android5217Issue Monitored: Android5217
2014-11-14 14:05lethosorAssigned To => lethosor
2014-11-14 14:05lethosorStatusnew => needs feedback
2014-11-14 14:06lethosorNote Added: 0030991
2014-11-16 00:03Android5217Note Added: 0031009
2014-11-16 00:03Android5217Statusneeds feedback => assigned
2014-11-17 15:04lethosorNote Added: 0031045
2014-11-17 15:05lethosorNote Edited: 0031045bug_revision_view_page.php?bugnote_id=0031045#r12340
2014-11-17 19:50lethosorStatusassigned => needs feedback
2014-11-22 13:40Android5217Note Added: 0031123
2014-11-22 13:40Android5217Statusneeds feedback => assigned
2014-11-22 13:44lethosorNote Added: 0031124
2014-11-22 13:46Android5217Note Added: 0031125
2014-11-22 14:01lethosorNote Added: 0031126
2014-11-22 16:42Android5217Note Added: 0031130
2014-11-22 16:57lethosorNote Added: 0031131
2014-11-22 16:57lethosorRelationship addedchild of 0007389
2014-11-22 18:44Android5217Note Added: 0031132
2014-11-23 04:54lethosorRelationship deletedchild of 0007389
2014-11-23 04:55lethosorRelationship addedduplicate of 0007389
2014-11-23 04:55lethosorStatusassigned => resolved
2014-11-23 04:55lethosorResolutionopen => duplicate

Notes
(0030991)
lethosor   
2014-11-14 14:06   
Reminder sent to: Android5217

Those commands should definitely be available. Have you deleted any system files? What happens when you run "uname" in a Terminal window?
(0031009)
Android5217   
2014-11-16 00:03   
Garets-MBP:~ Garet$ uname
Darwin

This is what is returned
(0031045)
lethosor   
2014-11-17 15:04   
(edited on: 2014-11-17 15:05)
That's strange. Can you edit the "df" script (with a text editor) to read:

#!/bin/sh
echo $PATH; which uname cut [ ; exit;
PWD=`dirname "${0}"`
#thanks to Iriel for figuring this out
OSREV=`uname -r | cut -d. -f1`
if [ "$OSREV" -ge 11 ] ; then
    export DYLD_LIBRARY_PATH=${PWD}/libs
    export DYLD_FRAMEWORK_PATH=${PWD}/libs
else
    export DYLD_FALLBACK_LIBRARY_PATH=${PWD}/libs
    export DYLD_FALLBACK_FRAMEWORK_PATH=${PWD}/libs
fi
cd "${PWD}"; ./dwarfort.exe "$@" &

try running it again, and paste the output?
Note that this will prevent DF from launching, which you can revert by deleting the second line ("echo $PATH...").

(0031123)
Android5217   
2014-11-22 13:40   
Garets-MacBook-Pro:~ Garet$ /Users/Garet/Downloads/df_osx/df ; exit;
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
/usr/bin/uname
/usr/bin/cut
/bin/[
logout

[Process completed]
(0031124)
lethosor   
2014-11-22 13:44   
Strange - those commands do appear to be available, then. Can you try deleting that line and running the 'df' script again?
(0031125)
Android5217   
2014-11-22 13:46   
Garets-MacBook-Pro:~ Garet$ /Users/Garet/Downloads/df_osx/df ; exit;
logout

[Process completed]
(0031126)
lethosor   
2014-11-22 14:01   
Is that all? Does DF open? If not, what happens if you remove the "&" from the last line?
(0031130)
Android5217   
2014-11-22 16:42   
Yeah, the terminal window stays open, but dwarf fortress doesn't open. Removing the & from the last line did not fix the issue, but it did create a new log, which I included.

Garets-MacBook-Pro:~ Garet$ /Users/Garet/Downloads/df_osx/df ; exit;
dyld: Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
  Referenced from: /Users/Garet/Downloads/df_osx/libs/SDL_ttf.framework/Versions/A/SDL_ttf
  Reason: image not found
/Users/Garet/Downloads/df_osx/df: line 12: 14039 Trace/BPT trap: 5 ./dwarfort.exe "$@"
logout

[Process completed]
(0031131)
lethosor   
2014-11-22 16:57   
Ah, sounds like 0007389. Installing XQuartz should fix the problem: http://xquartz.macosforge.org/landing/ [^]
(0031132)
Android5217   
2014-11-22 18:44   
Yep, that fixed it. Thank you for helping me out with this!