-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error with MacPorts' sbcl #32
Comments
I have very little knowledge about Macs let alone MacPorts. I've only successfully installed zmq using homebrew. I'll try to do some investigation, but it may take a bit since I don't have any experience with MacPorts. In the meantime I'll mark as "help wanted" in case some one else has some ideas. |
Thanks. FYI, I manually added the
I'll dig further to understand why |
It doesn't appear that grovel knows about MacPorts and most packages that use grovel appear to pass flags to the compiler directly. I managed to get pzmq to compile by adding (in-package #:pzmq)
#+darwin
(cc-flags "-I/opt/local/include/")
(include "zmq.h") and by adding a (define-foreign-library libzmq
(:darwin (:or "libzmq.dylib" "/opt/local/lib/libzmq.dylib"))
(:unix (:or "libzmq.so.3.0.0" "libzmq.so.3" "libzmq"))
(t (:default "libzmq"))) Once pzmq compiled I was able complete the installation and run the kernel from Jupyter. I'll submit a PR to pzmq after I investigate a few more CFFI projects and see how they handle MacPorts to make sure that I did it right. |
This should be fixed by cffi/cffi#139 |
@yitzchak this is not fixed by my CFFI patch. There, I added I tried again to install In the meantime, I am still digging into |
I'm trying to install common-lisp-jupyter on macOS 10.14.4 with MacPorts 2.5.4 but got this:
ZeroMQ 4.3.1 is installed through MacPorts and its headers are in
/opt/local/include
:A quick, naïve look into
cffi
seems to indicate that it knows about MacPorts'/opt/local/include
directory:Any suggestion?
The text was updated successfully, but these errors were encountered: