ImageMagick "Library not loaded: / Reason: image not found" - imagemagick

I tried to install ImageMagick via Homebrew but when I run
magick logo: logo.gif
to try if the installation was successfull (as recommended) the terminal returns just:
dyld: Library not loaded: /opt/X11/lib/libXext.6.dylib
Referenced from: /Users/Staff/ImageMagick-7.0.10/bin/magick
Reason: image not found
Abort trap: 6
I reinstalled ImageMagick, resets all environment variables and relocated its source into different directories but nothing works. Is there anything I missed or do I have to use a different path while using ImageMagick commands? For example:
magick identifly: /Users/Staff/Desktop/test.gif

Related

How to fix octave Library not loaded and Abort trap: 6 bug?

Whenever I try to run octave:
$ octave
I get this error:
dyld: Library not loaded: /usr/local/opt/hwloc/lib/libhwloc.15.dylib
Referenced from: /usr/local/opt/open-mpi/lib/libmpi_usempif08.40.dylib
Reason: image not found
Abort trap: 6
How do I fix this?
Details:
Operating system: macOS.
Octave installed via homebrew command - brew install octave
Note- I tried to run brew reinstall --build-from-source octave,
But it freezes midway at:
==> ./configure --prefix=/usr/local/Cellar/octave/5.1.0_4 --disable-silent-rules
==> make all
Make sure hwloc is installed by typing brew install hwloc in your terminal.
If that doesn't work, try navigating to the directory its looking for the file in your terminal:
cd /usr/local/opt/hwloc/lib/
ls
Look for a similar library and make a copy of it, renaming it to libhwloc.15.dylib. If there is a file called libhwloc.5.dylib type
cp libhwloc.5.dylib libhwloc.15.dyli

NCO, Library not loaded

I am trying to run the NCO executable ncks in the terminal window. I found that I needed to create a .bashrc file to initially get started in addition to installing NCO from MacPorts. Now when I run ncks I get this error.
dhcp-v219-194:~ mlaf$ ncks
dyld: Library not loaded: #rpath/libssh2.1.dylib
Referenced from: /Users/matthewlaffin/anaconda/bin/ncks
Reason: image not found
Trace/BPT trap: 5
I am new to terminal and NCO but I have read that there could be an error in the path name which results in NCO not being able to find the Library. Does anyone have any insight into how to fix this?
The error message is from (ana)conda, not from MacPorts, because the ncks executable /Users/matthewlaffin/anaconda/bin/ncks is in your (ana)conda directory, and it is trying to find an (ana)conda library that apparently not installed. Not sure why. See this issue for a possible solution.
If you did not have (ana)conda installed, then presumably your default NCO would be from MacPorts, and the MacPorts installation works so long as your PATH and LD_LIBRARY_PATH are correctly set.

Using Latex under OS Yosemite

I just started on learning about the Latex world with this tutorial:.
When I try to call
xdvi first.dvi
I get the following message:
dyld: Library not loaded: /usr/X11/lib/libXaw.7.dylib
Referenced from: /usr/texbin/xdvi-xaw
Reason: image not found
Trace/BPT trap: 5
I already tried to re-install imagemagick (In case the problem was caused by it), but it didn't solve my case.
Any guess?
sudo ln -s /opt/X11 /usr/X11 worked for me. Solved the problem and I've been trying to figure it out for quite a while.

Typed in "ruby -version" in terminal and got an error after switching bootdisk from HD to SSD. How do I resolve this?

Installed a 2nd HD(SSD) on my MBP 15" and cloned all my files into it except the "User" folder. Deleted all the files I cloned from my original HD and left the users there and booted up my computer using SSD. Everything works, except when I check my ruby version, I get the following spilling out:
$ ruby -version
dyld: Library not loaded: /Users/jb/.rvm/rubies/ruby-2.1.0/lib/libruby.2.1.0.dylib
Referenced from: /Volumes/HardDrive/Users/jb/.rvm/rubies/ruby-2.1.0/bin/ruby
Reason: image not found
Trace/BPT trap: 5
What's going on here and how would I go about solving this?
On OS X binaries (such as ruby) contain the full path of the shared libraries they use, so when you run ruby it's trying to load libruby from that path - it doesn't know that the entire volume has been mounted at a different path
The easiest thing is probably to reinstall ruby - rvm reinstall ruby-2.1.0 should do it
In theory you should be able to use install_name_tool to rewrite the shared library paths in the binaries but it is almost certainly more trouble than it's worth.

How do I make Cucumber and RMagick play nice on Snow Leopard?

I installed Snow Leopard and things have been going great, after a few re-installs. But now when I go to run cucumber, I get the error below, and I can't find anything conclusive through Google searches. Has anyone run into this, or maybe have some troubleshooting steps to try?
$ cucumber features
dyld: NSLinkModule() error
dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.10.0/lib/RMagick2.bundle
Reason: no suitable image found. Did find:
/opt/local/lib/libfreetype.6.dylib: can't map
/usr/local/lib/libfreetype.6.dylib: mach-o, but wrong architecture
Trace/BPT trap
You should check if rmagick is the correct version and compiled correctly for your new osx.
It resulted that the .dylib file was in /usr/X11/lib/libfreetype.6.dylib
so it was just matter of copying it from there, or make a symbolic link:
cd /opt/local/lib/
ln -s /usr/X11/lib/libfreetype.6.dylib

Resources