Problem using symlink to ldc2 on OS X

Peter Alexander via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Sep 18 13:55:33 PDT 2014


I downloaded this:

https://github.com/ldc-developers/ldc/releases/download/v0.14.0/ldc2-0.14.0-osx-x86_64.tar.gz

Extracted it, then created a symlink from ~/bin/ldc2 to the 
extracted binary.

Then, if I run ldc2 from this symlink, I get this:

dyld: Library not loaded: @executable_path/libconfig++.9.dylib
   Referenced from: /Users/pja/bin/ldc2
   Reason: image not found
Trace/BPT trap: 5

I've "fixed" it by not creating the symlink and instead just 
adding the ldc2 bin path to my $PATH, but I was wondering if 
there is anything ldc2 can do to avoid this (can libconfig++ be 
statically linked)? Just worried that other people might run into 
the same, scary-looking error and abandon ldc2. Would be a shame.


More information about the digitalmars-d-ldc mailing list