MacOSX Playing Error? [Sierra 10.12.6]

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Paladinluke
Posts: 2
Joined: Sun Apr 15, 2018 7:56 pm

MacOSX Playing Error? [Sierra 10.12.6]

Postby Paladinluke » Sun Apr 15, 2018 8:07 pm

I've been trying to play Freeciv on my Mac for quite some time. When I use the "freeciv2.6.0b2.pkg" the installation goes fine, but as soon as I try to start the game I get a crash report.

Code: Select all

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/libvorbis/lib/libvorbisfile.3.dylib
  Referenced from: /usr/local/opt/sdl_mixer/lib/libSDL_mixer-1.2.0.dylib
  Reason: image not found


I've already tried deleting the usr/local/opt/libvorbis file from my computer, as shown in another forum post (http://forum.freeciv.org/f/viewtopic.php?f=8&t=89954), but nothing changes. The file also seems to reappear in the location if I'm not looking in the /opt/ domain.
Does anyone know where the error is occuring, and how to fix it? I'll post the whole error log if needed.

User avatar
Dino the Dinosore
Posts: 35
Joined: Sun Dec 31, 2017 3:41 am

Re: MacOSX Playing Error? [Sierra 10.12.6]

Postby Dino the Dinosore » Mon Apr 16, 2018 1:10 am

Another fix was required, there are now new versions of the installers. You need to delete the folder
/usr/local/opt/ and re-run the new installer.

Paladinluke
Posts: 2
Joined: Sun Apr 15, 2018 7:56 pm

Re: MacOSX Playing Error? [Sierra 10.12.6]

Postby Paladinluke » Fri Apr 20, 2018 2:49 am

Hello. The error is still happening when I delete the opt file.

Code: Select all

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/libvorbis/lib/libvorbisfile.3.dylib
  Referenced from: /usr/local/opt/sdl_mixer/lib/libSDL_mixer-1.2.0.dylib
  Reason: no suitable image found.  Did find:
   /usr/local/opt/libvorbis/lib/libvorbisfile.3.dylib: stat() failed with errno=20

Upon inspection, the opt file reappears after I delete it. It appears in /usr/local during the installation of the program. When I delete the file from the location immediately after it installs, I get a similar error message.

Code: Select all

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/sdl_mixer/lib/libSDL_mixer-1.2.0.dylib
  Referenced from: /Applications/freeciv.app/Contents/MacOS/freeciv-gtk2
  Reason: image not found

What seems to be the cause of the problem now? By the way, I am using the 2.6.0b2 installer. If a newer one has been uploaded to Dropbox, please supply me with the link.

User avatar
Dino the Dinosore
Posts: 35
Joined: Sun Dec 31, 2017 3:41 am

Re: MacOSX Playing Error? [Sierra 10.12.6]

Postby Dino the Dinosore » Tue Apr 24, 2018 2:14 am

This is weird - the "errno=20" means "Not a directory", well duh it's looking for a library, which is a file, not a directory. And it says it did find it! On my machine that library file is there and everything works. But that classic programmer line "it works for me" won't help you. I'll try to dig some more.

BTW- /usr/local/opt is a directory, not a file. The installer creates that directory and fills it with stuff, and you only need to delete it before re-running the installer. Deleting opt after the install will break things. The Dropbox link has not changed, the latest version of the installer there was put up on 4/4/18.

User avatar
Dino the Dinosore
Posts: 35
Joined: Sun Dec 31, 2017 3:41 am

Re: MacOSX Playing Error? [Sierra 10.12.6]

Postby Dino the Dinosore » Tue May 29, 2018 3:48 am

Arg - why does this have to be so difficult. Turns out the problem is that one of the pieces in the filename path is a symlink (alias) to another directory, and when it's copied to another machine it stops working. Why? I don't know, maybe some Unix expert can explain it. But I figured out a workaround, and there are now new installer packages to try, same Dropbox link -
https://www.dropbox.com/sh/buypyjprsbvq0hd/AABuisFfBn-WDJgAEcXIZGrSa?dl=0