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

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

Related

Espressif tool chain broken after macOS Monterey 12.3 beta 3 install

After Monterey 12.3 beta 2 installed, the Espressif tool chain is broken. If you compile with platformIO you'll get the following error:
^
Linking .pio/build/esp32dev/firmware.elf
/Users/stephanedeluca/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: /Users/stephanedeluca/.platformio/packages/toolchain-xtensa32/bin/../libexec/gcc/xtensa-esp32-elf/5.2.0/liblto_plugin.so: error loading plugin: dlopen(/Users/stephanedeluca/.platformio/packages/toolchain-xtensa32/bin/../libexec/gcc/xtensa-esp32-elf/5.2.0/liblto_plugin.so, 0x0002): Library not loaded: /opt/osxcross/target/bin/../x86_64-apple-darwin12/lib/libstdc++.6.dylib
Referenced from: /Users/stephanedeluca/.platformio/packages/toolchain-xtensa32/libexec/gcc/xtensa-esp32-elf/5.2.0/liblto_plugin.0.so
Reason: tried: '/opt/osxcross/target/bin/../x86_64-apple-darwin12/lib/libstdc++.6.dylib' (no such file)
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32dev/firmware.elf] Error 1
Looking at my Mac, there is no /opt/osxcross.
I have searched on another Mac with the beta 1 where the tool chain was still working the presence of the folder, and guess what?! there's none!
Any idea what as actually broken by the beta?
Finally, here is a work around: we are going to provide the missing /opt/osxcross folder and contents.
If you do not have gcc installed (this should be unlikely though, install gcc to get the folder content, as follows:
$ brew install gcc
Create the missing /opt/osxcross folder as follows:
$ sudo mkdir -p /opt/osxcross/target/bin/../x86_64-apple-darwin12/lib/
Note that you'll be prompted for your password.
And, finally, copy the folder contents from the gcc build as follows:
$ sudo cp /usr/local/Cellar/gcc/11.2.0_3/lib/gcc/11/libstdc++.6.dylib /opt/osxcross/target/x86_64-apple-darwin12/lib/libstdc++.6.dylib
This completes the fix.
You must restart vscode, Arduino IDE or whatever tool you use. And then build your project, which should compile successfully.
And voila.

GDAL: library not loasded libhdf5.100.dylib

I would like to run a GMT file wrote in tcsh environment. When I'm running it, I have the following error message :
dyld: Library not loaded: /opt/local/lib/libhdf5.100.dylib
Referenced from: /opt/local/lib/gmt4/bin/gmtset
Reason: image not found
I went to /opt/local/lib path, and indeed, libhdf5.103.dylib is installing, and not libhdf5.100.dylib. I did not find a way to reinstall libhdf5.100.dylib using port or brew.
The later doesn't work :
sudo port install libhdf5-100
sudo port install libhdf5.100
sudo port install libhdf5.100.dylib
I already try:
brew reinstall osgeo-gdal --build-from-source
But, this doesn't work. I have the following issue:
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.
qt: macOS Sierra or newer is required.
Error: An unsatisfied requirement failed this build.
Do you have any ideas?
Thank you.
Looks like gdal needs to be rebuilt with the current hdf5. You can try:
sudo port uninstall gdal && sudo port install -s gdal
This will build gdal from source and link against the installed HDF5 library.

Vapor Installation Issues (First time using Vapor) using Swift 5

After installing vapor i am getting below error
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/vapor
Reason: image not found
Abort trap: 6
Here lies my issue, I have no idea how to solve that.even I am not able to create new project.
Please help.
I never faced with that issue but saw this tricky solution in some chat
ln -s /usr/local/opt/openssl/lib/libssl.1.1.dylib /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
ln -s /usr/local/opt/openssl/lib/libcrypto.1.1.dylib /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
or maybe libressl needed
brew install libressl
Have you tried ?
brew update && brew upgrade
brew install openssl

Xcode error - Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib error 134

I am trying push a new build of my app, the build process used to work then I started getting this error
Command /bin/sh failed with exit code 134
i tried checking the run script only when installing which helped for my dev builds but not for my archive builds
the app is a detached expo react native app - the full error is this
~/Desktop/repticitysingin ~/Desktop/repticitysingin/ios
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
/Users/waltershub/Library/Developer/Xcode/DerivedData/repticity-checkin-dyladlpnrkuavlcnilspzxthizjw/Build/Intermediates.noindex/ArchiveIntermediates/repticity-checkin/IntermediateBuildFilesPath/repticity-checkin.build/Release-iphoneos/repticity-checkin.build/Script-B5722AD01DFB7E3F0084848F.sh: line 6: 7032 Abort trap: 6 PATH="$PATH:$value" exp prepare-detached-build --platform ios
Command /bin/sh failed with exit code 134
I came across the same issue and found the solution here: https://gist.github.com/berkedel/d1fc6d13651c16002f64653096d1fded. Kudos to #berkedel
brew uninstall --ignore-dependencies node icu4c
brew install node
Additionally, another user mentioned that he also had to perform brew link --overwrite node, but was not necessary in my case.

Where can I get version 16.0.0 of libfreetype.6.dylib for ImageMagick on MAMP

When running imagemagick under MAMP I get the error message:
command output :"dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Referenced from: /Applications/MAMP/bin/ImageMagick/ImageMagick-6.7.9/bin/convert
Reason: Incompatible library version: convert requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0"
I have searched everywhere I can think of but can't find a solution to this. One posting I saw suggested commenting out the DYLD_LIBRARY_PATH in envvars but this did not make any difference.
Figured it out. I ran:
$ locate libfreetype.6.dylib
and discovered that there are multiple version of that dylib including a version in /opt/local/lib where macports installs imagemagick. I copied that version to the location in MAMP where it was installed and it solved the issue.
$ cp /opt/local/lib/libfreetype.6.dylib /Applications/MAMP/Library/lib/
Make sure you make a backup of the MAMP version before copying over it just in case something goes wrong.
I had the same issue. For me works this:
sudo port selfupdate
sudo port install ImageMagick
sudo pecl update-channels
sudo pecl install imagick
Then I run
find . -name "imagick.so"
and use the given path in MAMP php.ini.
In the end I commented out the DYLD_LIBRARY_PATH lines in /Applications/MAMP/Library/bin/envvars

Resources