dyld: Library not loaded: /usr/local/opt/gsl/lib/libgsl.23.dylib - gsl

I am trying to get a piece of software called emergent working. It relies on qt and coin, which I've both installed.
But when I try to run emergent, I get the following error:
dyld: Library not loaded: /usr/local/opt/gsl/lib/libgsl.23.dylib
Referenced from: /usr/local/bin/emergent
Reason: image not found
Abort trap: 6
gsl 2.6 is already installed on my computer. Also using Mac OS. Any ideas what could be causing this?

ls /usr/local/opt/gsl
see which version of the library you have (I had .25)
then
ln -s libgsl.25.dylib libgsl.23.dylib
Makes symbolic link between files.
then it worked!

Related

installing rmarkdown packages gives me non-zero exit status

I am completely new to RStudio. Hence I apologize in advance for my inexpertise.
the response to install.packages("rmarkdown") the first code below.
Then, when I try to go to New file Rmarkdown it appears the alert: "Creating R Markdown documents requires an updated version of the rmarkdown package. Do you want to install this package now?"
When I accept I get the second code below.
What can I do to solve the problem? You help a total beginner please? Thank you for your patience. I am using RStudio 1.3.1093 on OS Sierra 10.12.6
'''
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 2.3 2.5 FALSE
installing the source package ‘rmarkdown’
provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
Warning in file(con, "r") :
cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51734 Done echo 'tools:::.install_packages()'
51735 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpMVE5wW/downloaded_packages’
Installing 'rmarkdown' for R Markdown...
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 2.3 2.5 FALSE
installing the source package ‘rmarkdown’
provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
Warning in file(con, "r") :
cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51767 Done echo 'tools:::.install_packages()'
51768 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
The downloaded source packages are in
‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpDhf44F/downloaded_packages’
✔ Package 'rmarkdown' successfully installed.
Warning message:
In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/") :
installation of package ‘rmarkdown’ had non-zero exit status
Try install.packages(“rmarkdown”, dep = TRUE) . I also see something about the time zone, is your PC on the right time? I’ve seen installs not work because of the pc had the wrong time. You will also need to install latex with Rmarkdown

Caffe2 installed correct but can't load glog library

I pip installed caffe2 via a "Prebuilt Caffe2 Python Wheel" without an error. But running the first example I get the following error message which seems not be able to find/load "/usr/local/opt/glog/lib/libglog.0.dylib".
If I import caffe2.python it does not give me an error.
The glog is missing in usr/local/opt.
Is this a Mac GPU problem ? I know that CUDA is a problem/does not run on Mac or is there anything else I missed/I have to do. ?
Thanks for any help.
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/usr/local/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so, 10): Library not loaded: /usr/local/opt/glog/lib/libglog.0.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so
Reason: image not found

dyld: Library not loaded: /usr/local/lib/libwep on Mac for command make

When I run command "make", fellow error occurs:
MacBook-Pro~/Downloads/mp-boost$make
dyld: Library not loaded: /usr/local/lib/libwep
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
Reason: no suitable image found. Did find:
/usr/local/lib/libwep: code signing blocked mmap() of '/usr/local/lib/libwep'
/usr/local/lib/libwep: code signing blocked mmap() of '/usr/local/lib/libwep'
make: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
make: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
How I can fix this error?

graph-tool crahes on import

Using Python 2.7 I try to import graph-tool:
from graph_tool.all import *
Each time I execute the above command the following error is returned and Python crashes.
dyld: lazy symbol binding failed: Symbol not found:
__ZN5boost6python6detail11init_moduleEPKcPFvvE Referenced from: /usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
Expected in: flat namespace
dyld: Symbol not found: __ZN5boost6python6detail11init_moduleEPKcPFvvE
Referenced from:
/usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
Expected in: flat namespace
Trace/BPT trap: 5
I installed graph-tool with homebrew on Mac OSX 10.10. Does anybody know how to fix this issue?
There is probably a mismatch between the python version you are using,
and the one used to compile boost::python and graph-tool.
For example, you might be using the system's python, whereas
graph-tool/python were compiled with a version installed via homebrew.
Python modules have been installed but the site-packages may not be
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run like this:
mkdir -p /Users/myname/Library/Python/2.7/lib/python/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/myname/Library/Python/2.7/lib/python/site-packages/homebrew.pth
In my case it's the homebrew site-packages, but may not yours

Library not loaded on terminal but runs ok on Xcode

I built a command line tool within Xcode and it runs ok, but when I try to run it from the terminal it complains about one of my libs:
MacBook:Debug Jonathan$ ./MyApp
dyld: Library not loaded: /Users/Jonathan/Library/Frameworks/Josk.framework/Versions/A/Josk
Referenced from: /Users/Jonathan/Development/C++/MyApp/build/Debug/./MyApp
Reason: image not found
Trace/BPT trap
on my MyApp project I added a copy phase (destination: framework, no path and didn't mark the only-on-installing checkbox) to the target and on the directory of MyApp I can see the Josk.framework copied.
Thanks,
Jonathan
export DYLD_FRAMEWORK_PATH=/Users/Jonathan/Library/Frameworks
or
copy Josk.framework to /Users/Jonathan/Library/Frameworks
For deployment, there are various options such as #executable_path, #loader_path, #rpath.
see, man dyld