libproj not loaded while installing sumo on macOS - macos

I was going through the Flow installation and when I typed sumo --version into the terminal I got the following error message:
dyld: Library not loaded: /usr/local/opt/proj/lib/libproj.13.dylib
Referenced from: /Users/apple/sumo_binaries/bin/sumo
Reason: image not found
I've tried reinstalling sumo but the problem persisted.
How can I solve this issue?

I've found a fix for the problem.
Type the following into the terminal:
ln -s /usr/local/opt/proj/lib/libproj.15.dylib /usr/local/opt/proj/lib/libproj.13.dylib
Open up the directory mentioned above and make sure both libraries show (even if one of them is a shortcut) and rerun the sumo installation.
Note: you may have to change the paths depending on where your libproj.15.dylib is located.

Related

dyld: Library not loaded running command

I downloaded some binaries for my mac from https://github.com/rcedgar/muscle/releases/tag/v5.0.1428
I moved it to a folder, ran
chmod +x /Users/schuylersloman/Documents/CODE/BIO_LAB/SENIOR_YEAR/muscle_v5.0.1428_osx
and then when I tried running
./muscle_v5.0.1428_osx muscle -align ny_ct.fasta -output alignment.fasta
I Get the error
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/11/libgomp.1.dylib
Referenced from: /Users/schuylersloman/Documents/CODE/BIO_LAB/SENIOR_YEAR/./muscle_v5.0.1428_osx
Reason: image not found
Abort trap: 6
Any help on how to fix this or what is going on?
I am the author of muscle. Try rebuilding using the new build system described in the github wiki, which at the time of writing (8th Dec 2022) is in the rce-dev branch. I only saw this stackoverflow post by chance; I am more likely to be able to help if you post an issue on github or email me directly.

Unable to use dcmtk commands like dcmodify and dcmscale

System: M1 MacBook air
I created a duplicate terminal that runs with rosetta 2 for installing dcmtk since it's not available for apple chips yet. In the duplicate terminal, I was able to install dcmtk successfully.
On running dcmodify, I get
dyld: Library not loaded: #rpath/libdcmdata.16.dylib
Referenced from: /usr/local/homebrew/bin/dcmodify
Reason: image not found
zsh: abort dcmodify
dcmscale also gives throws a similar error.
dyld: Library not loaded: #rpath/libdcmimage.16.dylib
Referenced from: /usr/local/homebrew/bin/dcmscale
Reason: image not found
zsh: abort dcmscale
How do I fix these errors?
Edit-1: Reinstalling DCMTK made no difference. The error still persists.
Edit-2: I have attached the logs for brew info dcmtk
Since you are using the terminal with rosetta 2, try adding export PATH="/usr/local/homebrew/bin:$PATH" in ~/.bashrc file
If this doesn't work, add export PATH="/usr/local/homebrew/bin:$PATH" in ~/.zshrc file
Adding these paths should work

Error (object._d_arraysetlengthTImpl not found) while building D project on MacOS

I was trying to build existing Dlang project on my home Mac. But I am getting this error. I haven't find anything about it.
$ dub build
Running pre-generate commands for vibe-d:tls...
Performing "debug" build using dmd for x86_64.
tinyendian 0.2.0: target for configuration "library" is up to date.
dyaml 0.8.0: building configuration "library"...
/Library/D/dmd/src/phobos/std/uni.d(935,32): Error: object._d_arraysetlengthTImpl not found. The current runtime does not support resizing arrays, or the runtime is corrupt.
/Library/D/dmd/src/phobos/std/uni.d(968,32): Error: object._d_arraysetlengthTImpl not found. The current runtime does not support resizing arrays, or the runtime is corrupt.
/Library/D/dmd/src/phobos/std/uni.d(4064,18): Error: template instance std.uni.MultiArray!(BitPacked!(uint, 13LU), BitPacked!(bool, 1LU)).MultiArray.length!0LU error instantiating
/Library/D/dmd/src/phobos/std/uni.d(4312,37): instantiated from here: TrieBuilder!(bool, dchar, 1114112, sliceBits!(8LU, 21LU), sliceBits!(0LU, 8LU))
/Library/D/dmd/src/phobos/std/regex/internal/ir.d(26,14): instantiated from here: CodepointSetTrie!(13, 8)
/Library/D/dmd/src/phobos/std/uni.d(935,32): Error: object._d_arraysetlengthTImpl not found. The current runtime does not support resizing arrays, or the runtime is corrupt.
/Library/D/dmd/src/phobos/std/uni.d(968,32): Error: object._d_arraysetlengthTImpl not found. The current runtime does not support resizing arrays, or the runtime is corrupt.
/Library/D/dmd/src/phobos/std/uni.d(4064,18): Error: template instance std.uni.MultiArray!(BitPacked!(uint, 13LU), BitPacked!(bool, 1LU)).MultiArray.length!1LU error instantiating
/Library/D/dmd/src/phobos/std/uni.d(4312,37): instantiated from here: TrieBuilder!(bool, dchar, 1114112, sliceBits!(8LU, 21LU), sliceBits!(0LU, 8LU))
/Library/D/dmd/src/phobos/std/regex/internal/ir.d(26,14): instantiated from here: CodepointSetTrie!(13, 8)
dmd failed with exit code 1.
Can somebody pls help?
I am using these:
MacOS 10.15.4
DMD64 v2.091.1
DUB 1.20.1
Thx to Adam D. Ruppe.
It looks like there was a problem with previously installed version of dmd.
Solved by:
brew uninstall dub
brew uninstall dmd
delete /Library/D directory
brew install dmd
brew install dub

How to load libraries for gnuplot?

I installed gnuplot on macos via:
$ make install,
whenever I run
$ gnuplot,
I get the following error message:
dyld: Library not loaded: libpng15.15.dylib
Referenced from: /usr/local/bin/gnuplot
Reason: image not found
Trace/BPT trap: 5
I have absolutely no idea whats going on. please help.
Updating Xquartz to the latest version solved it. Still have no idea what was going on

gfortran library not loaded when I try to run command

I'm trying to run a simple fortran code I wrote following an intro to fortran tutorial using Mac Terminal. When I try to run it I get the library not loaded. When I try to run the library it refers to it says "cannot execute binary file." What can I do to run this command? Thank you
Here is the text from my terminal:
hntvlan569:work Abdullah$ ./fact
dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib
Referenced from: /Users/Abdullah/work/./fact
Reason: image not found
Trace/BPT trap: 5
I wrote the executable on emacs. It appears I hadn't properly installed all the required software before attempting to run it. I found this website useful and after following all the instructions there my problem was solved: https://wiki.helsinki.fi/display/HUGG/Installing+the+GNU+compilers+on+Mac+OS+X

Resources