Skip to content

Instantly share code, notes, and snippets.

@jonchang
Last active January 6, 2020 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonchang/46f24dd460bab840ba69a24190fe11f8 to your computer and use it in GitHub Desktop.
Save jonchang/46f24dd460bab840ba69a24190fe11f8 to your computer and use it in GitHub Desktop.
applying the stick of correction to fastsimcoal

R error for P2C2M SNAPP:

dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
  Referenced from: /Users/jonchang/Downloads/Tutorial/example_mode1/./fsc26
  Reason: image not found

fsc26 is looking for GCC in the wrong place

Run mdfind to figure out where GCC actually is. It can't find libgomp.1.dylib so search for:

% mdfind -name libgomp.1.dylib
    /usr/local/lib/gcc/9/libgomp.1.dylib

Then use install_name_tool to teach fsc26 where libgomp.1.dylib lives

% install_name_tool -change /usr/local/lib/libgomp.1.dylib   /usr/local/lib/gcc/9/libgomp.1.dylib    fsc26

Repeat as necessary for the other errors

% install_name_tool -change /usr/local/lib/libstdc++.6.dylib /usr/local/lib/gcc/9/libstdc++.6.dylib  fsc26
% install_name_tool -change /usr/local/lib/libgcc_s.1.dylib  /usr/local/lib/gcc/9/libgcc_s.1.dylib   fsc26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment