Terminal error in opening program - macos

I am on OS X 10.8.5 and when and I am trying to open a program Multiwfn via terminal and receive this error:
s229-153:~ brianlevandowski$ /Users/brianlevandowski/Desktop/Multiwfn ; exit;
dyld: Library not loaded: /usr/OpenMotif-2.1.32-22i/lib/libXm.3.dylib
Referenced from: /Users/brianlevandowski/Desktop/Multiwfn
Reason: image not found
Trace/BPT trap: 5
logout
[Process completed]

You need to install (or reinstall) OpenMotif. Their website appears to be here: http://www.opengroup.org/openmotif
Edit:
I get the feeling, even if you get Multiwfn running, it won't be stable. It relies on OpenMotif, whose website implies they gave up development in the OS X 10.4 era. Also the author writes "I cannot guarantee that Linux and Mac OS X versions [of Multiwfn] are as robust as Windows version, since all of my developments and most debugging are performed in Windows environment" I think you are trying to install abandon-ware :(

Related

Apache wont start on MacOS Monterey

$ /usr/local/opt/httpd/bin/httpd -D FOREGROUND
dyld[27461]: Symbol not found: _apr_bucket_alloc_aligned_floor
Referenced from: /usr/local/Cellar/httpd/2.4.51/bin/httpd
Expected in: /usr/lib/libaprutil-1.0.dylib
Abort trap: 6
edit:
brew reinstall apr-util has resolved this
Thanks - this fix worked for me too. This appears to be an essential step. After upgrading to Monterey I followed the steps at
https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions
but could not get apache to work. When I ran ps -aef | grep httpd it showed that the server was not running, even though the brew services command claimed it was. After running the reinstall command set out above, everything worked as before the upgrade. For background, I am running Mac OS Monterey on a Mac mini with Apple M1 chip 16GB RAM. My httpd.conf settings are the same as when I was on Big Sur. I can't imagine how you worked this out, but thanks again.
OK - apparently my response above was not sufficiently clear:
Thomas posted the error message he got when he found that the Apache server would not start when being set up on Mac OS Monterey. The question he implicitly asked (and answered himself) is in the title of the post - ie., why won't the server start? The error message he got gives us a clue - the process is looking for a component (apr-util) which it can't find in the place it expects to find it. He found that by re-installing apr-util he could get the Apache server to start as normally expected. I had the same problem (Apache apparently correctly installed on Monterey but not starting) and I found that by re-installing apr-util as he had that the problem was solved - ie., my Apache server now starts as expected on Mac OS Monterey. As I had wasted about a week futilely trying to solve this problem I am very grateful for Thomas' contribution. I hope this is now clear.

Symbol not found: curl_mime_init in macOS 10.3 (high Sierra.)

I have built a .framework in mac using Xcode. In the framework i use Libcurl, to handel APIs. One of the APIs uses curl_mime_init to send a file. This framework work perfectly fine in MacOS 10.15 and above. However if fails to work in MacOs lesser than 10.15.
While i make the file upload. i get the following error in the crash report.
Dyld Error Message:
Symbol not found: _curl_mime_init
Referenced from: /Applications/Adobe InDesign 2020/*/BasicExternalObject.framework/BasicExternalObject (which was built for Mac OS X 11.3)
Expected in: /usr/lib/libcurl.4.dylib
I did some digging and found that curl version shipped on macOS 10.14 and lower has curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 However curl_mime_init was Added in version 7.56.0.
Later i updated my curl from 7.54 to 7.70 and still found the issue to persist.
I confirmed it by running curl -V and it was pointing to the updated version
I am stuck here. Is there a way to solve this. Or does it have something to do with the OS.

Trouble with ffmpeg on mac os catalina 10.15.3

I had ffmpeg installed before upgrading my os to catalina. When I tried to re-encode a video it complained with this message
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: image not found
zsh: abort ffmpeg
I found out openssl isn't used in catalina in favor for libressl..
I did a brew search openssl and found I have openssl#1.1 not 1.0.0
I'm weary about messing around with the version of openssl because so many other programs depend on it and I don't want to screw up my system..
My question is how can I get ffmpeg to run on my system? Mac os catalina 10.15.3
If you are using homebrew then brew reinstall ffmpeg fixed this issue for me.
This is what worked for me (found it on a random search, did not save source, sorry):
Open the location of the ffmpeg executable (e.g. /usr/local/bin) in Finder.
(This itself might pose a problem since Finder won't show these directories if you just navigate from "Mac OS Hard Drive". You can chdir to this directory in a Terminal, then "open ." - this will force a Finder window to open with this directory.)
Right-click on the ffmpeg executable, then choose "Open with... Terminal". A new Terminal window opens, then you get the message "Mac OS doesn't know this - so eff off" or something to that effect. Click "cancel".
Do Step 2 again. This time it pops up a window saying "are you sure... ?!" or some such. Select "Yes, open, damnit!" (or maybe just "Open"). A Terminal window flashes and disappears.
But now Mac OS knows ffmpeg should be allowed to run, so it should run however triggered.
You have to do it for the other modules, like ffplay, I think.
Hope this helps. I too am tired of fighting MAC OS trying hard to look like they are not built on FreeBSD, even though that is the very value of Mac OS to many of us. I am THIS close to switching to Linux, and saving a lot of money.

Error loading FTDI dylib on Mac OSX

I developed an application in Xojo that uses a third party library to control a device. It works on one mac, but then when I try to run it on the other it gives me the following error:
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: /usr/local/lib/libftd2xx.1.2.2.dylib
Referenced from: /Users/USER/Downloads/*/libuFCoder.dylib
Reason: no suitable image found. Did find:
/usr/local/lib/libftd2xx.1.2.2.dylib: stat() failed with errno=62
/usr/local/lib/libftd2xx.1.2.2.dylib: stat() failed with errno=62
The Macs are both updated with the latest OSX El Capitan, and have the FTDI drivers installed. Any help would be appreciated.
I have installed the drivers on El Capitan and it worked for me, even with an absolute path with Xojo 2012.21. Try reinstalling the D2XX 1.2.2 driver in /usr/local/lib (as instructed in the ReadMe file) and remove all old "libftd2xx" files.
Also remember you need to install D2xxHelper for the driver to work properly on El Capitan.
To check if the uFCoder library properly links against libftd2xx, open the Terminal, type "otool -L <path to the uFCoder lib>"; the 2nd line should start with "/usr/local/lib/libftd2xx.1.2.2.dylib".
HTH

dyld: Symbol not found: _jpeg_resync_to_restart

I'm trying to run a simple OpenGL tutorial for my class, but the C++ code was made to run for Windows and Linux. I'm trying to make it run under Mac OS X Mountain Lion.
I found the proper library headers, it now compiles OK (with scons), but the build gives this error when run:
dyld: Symbol not found: _jpeg_resync_to_restart
Referenced from: /usr/local/lib/libIL.1.dylib
Expected in: flat namespace
in /usr/local/lib/libIL.1.dylib
Trace/BPT trap: 5
Searching online gave me nothing but python imaging library problems. I have a libjpeg and DevIL installed through homebrew.
Judging from the Google searches, the built-in libjpeg library in Mac OS X has the
__cg_jpeg_resync_to_restart while if you use MacPorts, Fink, or maybe compile it yourself you get - _jpeg_resync_to_restart.
In this case the DevIL library, gotten through Homebrew was searching for the symbol not coming from the Mac OS X library, so I assumed that I should install libjpeg through homebrew. However it turns out that libjpeg was already installed through homebrew. So I guessed that maybe there were problems with the linking of libjpeg, I unlinked and linked again, and yes there were problems with the initial linking of the library.
However this did not seam to solve the problem. I again made the assumption that now that the libjpeg has symbolic links at the right places if I built the DevIL library again it will link against the proper library at the proper place. So I did a brew uninstall devil and then brew install devil which compiled with from source again. Aaand voila :)
It worked for me just changing the DYLD_LIBRARY_PATH to the correct path.

Resources