Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011161Dwarf FortressTechnical -- Generalpublic2019-10-09 19:302021-04-04 10:08
CabageGuy 
lethosor 
highmajoralways
resolvedunable to reproduce 
MacintoshMojave 10.14.15
0.44.12 
 
0011161: Mac version fails to start: cannot find dirname, uname, cut, grep, dwarfort.exe
Once I have downloaded the Mac file version from the website Bay 12 Games, I try to open the "df" in the "df_osx" folder, it fails to do anything other than to load a terminal screen. I have not done the prerequisites the "README.osx" has said, download

* GTK+ 2+
* SDL 1.2+
* SDL_image
And some kind of OpenGL implementation, so:
* libgl
* libglu

I heard some people did not need to do this step.
The terminal screen that shows up:

Williams-MacBook-Pro:~ williamzheng$ /Users/williamzheng/Desktop/DF/df_osx/df ; exit;
/Users/williamzheng/Desktop/DF/df_osx/df: line 2: dirname: command not found
/Users/williamzheng/Desktop/DF/df_osx/df: line 4: uname: command not found
/Users/williamzheng/Desktop/DF/df_osx/df: line 4: cut: command not found
/Users/williamzheng/Desktop/DF/df_osx/df: line 5: [: : integer expression expected
/Users/williamzheng/Desktop/DF/df_osx/df: line 13: grep: command not found
/Users/williamzheng/Desktop/DF/df_osx/df: line 16: ./dwarfort.exe: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

seems like it cannot find the file even though it is there?
No tags attached.
Issue History
2019-10-09 19:30CabageGuyNew Issue
2019-10-09 21:02lethosorNote Added: 0039539
2019-10-09 21:02lethosorAssigned To => lethosor
2019-10-09 21:02lethosorStatusnew => needs feedback
2019-10-09 21:03lethosorNote Edited: 0039539bug_revision_view_page.php?bugnote_id=0039539#r16100
2019-10-09 21:04lethosorNote Edited: 0039539bug_revision_view_page.php?bugnote_id=0039539#r16101
2019-10-09 21:09lethosorSummaryDoes not do anything, cannot find itself => Mac version fails to start: cannot find dirname, uname, cut, grep, dwarfort.exe
2019-10-10 13:36CabageGuyNote Added: 0039541
2019-10-10 13:36CabageGuyStatusneeds feedback => assigned
2019-10-13 10:31CabageGuyNote Added: 0039545
2019-10-13 10:36CabageGuyNote Edited: 0039545bug_revision_view_page.php?bugnote_id=0039545#r16107
2019-10-13 10:36CabageGuyNote Deleted: 0039541
2019-10-13 14:25CabageGuyNote Edited: 0039545bug_revision_view_page.php?bugnote_id=0039545#r16108
2019-10-19 07:49lethosorNote Added: 0039553
2021-04-04 10:08lethosorNote Added: 0041012
2021-04-04 10:08lethosorStatusassigned => resolved
2021-04-04 10:08lethosorResolutionopen => unable to reproduce

Notes
(0039539)
lethosor   
2019-10-09 21:02   
(edited on: 2019-10-09 21:04)
What is your system shell (i.e. what is /bin/sh)? And is there anything else unusual about your setup - e.g. have you deleted a bunch of system files? The main issue is that it can't find basic system commands, such as "cut" and "grep", which should be installed by default.

(And yes, ignore README.osx, it's mostly instructions for Linux (that's covered in 0009744)

(0039545)
CabageGuy   
2019-10-13 10:31   
(edited on: 2019-10-13 14:25)
Found my /bin/sh folder. It was hidden on my Mac. I found it by doing command+shift+dot in the Macintosh HD. It is there.
When I run echo $SHELL in terminal, it returns with /bin/bash

(0039553)
lethosor   
2019-10-19 07:49   
Sorry for the delay - can you run "/bin/sh --version" in your terminal? Also try:
/bin/sh -c 'type dirname uname cut [ grep'
(0041012)
lethosor   
2021-04-04 10:08   
This isn't an issue on typical macOS systems - likely a broken system installation or shell customizations causing this. If this issue continues, please reopen with more details (see above).