Closed ddauer closed 7 years ago
Had same issue while installing IRKernel, worked with same quickfix, thanks.
I got the same error too; thanks for the note about install_name_tool
, that worked for me too (with slightly change to the rzmq.so location).
I'm not a mac person. Is there a change to the package we need, or just something in the install notes?
Hi,
There is certainly a need for some documentation. If I simply follow the instructions on http://irkernel.github.io/ then rzmq package does not work because the zmq libraries are not installed.
However, it is a bit unusual for a package from CRAN such as this to not install.
(Another problem for me last night was that after installing rzmq and the other packages, I got dead kernel reports when trying a R notebook. There might be something with my setup however.)
I also thought I could install the rzmq package via, devtools, but this didn't work:
>install_github("armstrtw/rzmq")
Downloading GitHub repo armstrtw/rzmq@master
Installing rzmq
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ \
--no-save --no-restore CMD INSTALL \
'/private/var/folders/rw/2g0_whns55x580hlgf1vjs8m0000gn/T/RtmpZqAlgd/devtools104ef789bdf69/armstrtw-rzmq-52a491d' \
--library='/Users/stephen/NOBACKUP/RLIB' --install-tests
* installing *source* package ‘rzmq’ ...
** libs
clang++ -std=c++11 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/cppzmq -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c interface.cpp -o interface.o
interface.cpp:24:10: fatal error: 'zmq.hpp' file not found
#include <zmq.hpp>
^
1 error generated.
make: *** [interface.o] Error 1
There is no sign of zmq.hpp in /usr/local/Cellar/zeromq
We might get some help for this over at r-sig-mac mailing list?
@sje30 Any progress on this? Running into the same problem after upgrading to el capitan. Thanks!
zmq.hpp is part of the repo again (no longer a submodule). https://github.com/armstrtw/rzmq/tree/master/inst
did you re-pull?
thanks, it now compiles just fine for me!
I tried many different solution to fix the problem with the missing zmq library on my OS X. The easiest and only solution that work for me was to install version 4 of zeromq with homebrew. With the latest version 5 the ipython notebook did not connect with the kernel, even after fixing the linking issue with the install_name_tool. So my solution was;
brew uninstall zeromq
brew install zeromq405
Afterwards I reinstall the R packages of the IRkernel and it finally worked.
should be fixed now.
I tried to brew install zeromq405 and got these errors: brew install zeromq405 Error: No available formula with the name "zeromq405" ==> Searching for a previously deleted formula... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found. ==> Searching for similarly named formulae... ==> Searching local taps... Error: No similarly named formulae found. ==> Searching taps... ==> Searching taps on GitHub... Error: No formulae found in taps.
I've been trying to install the R kernel for Jupyter notebooks on a Mac for 3 days now. Any help on the above error? It seems I need this library for IRKernel to work.
Thanks in advance for any help
If you run the standard R for mac you can just install the binary pkg: install.packages("rzmq")
.
If you want to build from source using homebrew you need: brew install zeromq
in R:
it seems to be looking for
libzmq.4.dylib
while onlylibzmq.5.dylib
is availablequickfix: