View Issue Details

IDProjectCategoryView StatusLast Update
0007309Dwarf FortressTechnical -- Generalpublic2014-11-23 04:55
ReporterAndroid5217 Assigned Tolethosor  
PriorityurgentSeverityblockReproducibilityalways
Status resolvedResolutionduplicate 
PlatformMacBook ProOSOSXOS Version10.9.4
Product Version0.40.03 
Summary0007309: Dwarf Fortress won't open
DescriptionThe script to run the .exe file does not do anything and never opens dwarf fortress.
Steps To ReproduceOpen the "df" script.
Additional InformationThe 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]
TagsNo tags attached.

Relationships

duplicate of 0007389 confirmedlethosor freetype missing on OS X; causes crashes when entering fullscreen and/or starting DF 

Activities

lethosor

2014-11-14 14:06

manager   ~0030991

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?

Android5217

2014-11-16 00:03

reporter   ~0031009

Garets-MBP:~ Garet$ uname
Darwin

This is what is returned

lethosor

2014-11-17 15:04

manager   ~0031045

Last edited: 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...").

Android5217

2014-11-22 13:40

reporter   ~0031123

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]

lethosor

2014-11-22 13:44

manager   ~0031124

Strange - those commands do appear to be available, then. Can you try deleting that line and running the 'df' script again?

Android5217

2014-11-22 13:46

reporter   ~0031125

Garets-MacBook-Pro:~ Garet$ /Users/Garet/Downloads/df_osx/df ; exit;
logout

[Process completed]

lethosor

2014-11-22 14:01

manager   ~0031126

Is that all? Does DF open? If not, what happens if you remove the "&" from the last line?

Android5217

2014-11-22 16:42

reporter   ~0031130

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]

lethosor

2014-11-22 16:57

manager   ~0031131

Ah, sounds like 0007389. Installing XQuartz should fix the problem: http://xquartz.macosforge.org/landing/

Android5217

2014-11-22 18:44

reporter   ~0031132

Yep, that fixed it. Thank you for helping me out with this!

Issue History

Date Modified Username Field Change
2014-07-14 19:38 Android5217 New Issue
2014-11-14 14:05 lethosor Assigned To => lethosor
2014-11-14 14:05 lethosor Status new => feedback
2014-11-14 14:06 lethosor Note Added: 0030991
2014-11-16 00:03 Android5217 Note Added: 0031009
2014-11-16 00:03 Android5217 Status feedback => assigned
2014-11-17 15:04 lethosor Note Added: 0031045
2014-11-17 15:05 lethosor Note Edited: 0031045
2014-11-17 19:50 lethosor Status assigned => feedback
2014-11-22 13:40 Android5217 Note Added: 0031123
2014-11-22 13:40 Android5217 Status feedback => assigned
2014-11-22 13:44 lethosor Note Added: 0031124
2014-11-22 13:46 Android5217 Note Added: 0031125
2014-11-22 14:01 lethosor Note Added: 0031126
2014-11-22 16:42 Android5217 Note Added: 0031130
2014-11-22 16:57 lethosor Note Added: 0031131
2014-11-22 16:57 lethosor Relationship added child of 0007389
2014-11-22 18:44 Android5217 Note Added: 0031132
2014-11-23 04:54 lethosor Relationship deleted child of 0007389
2014-11-23 04:55 lethosor Relationship added duplicate of 0007389
2014-11-23 04:55 lethosor Status assigned => resolved
2014-11-23 04:55 lethosor Resolution open => duplicate