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
Doesn't install "out of the box" on a mac: magicffi error 'magic.h' file not found [fixed on master] #18
Comments
Following magicffi's README https://github.com/guicho271828/magicffi, we read:
Does that make it work for you? Then there are several approaches we could study to make it work out of the box: make the .asd install system dependencies, create a minimal CIEL system that would not rely on those, ship a ready-to-use binary and image for all platforms. (edit) and ship a Docker image, of course. |
I managed to install a package, using brew, that has the It contains:
However, my lisp implementation (roswell + sbcl) does not look for files in these directories when compiling magicffi, but I feel like I'm one step closer...
|
I've forked magicffi to add the include dirs and lib dirs in the magicffi.asd: https://github.com/patrixl/magicffi This still requires manually symlinking (now there are other issues following this, so might open a new issue) |
Ok so here were the issues, which are now resolved:
After posting a bug report to the SBCL mailing list, the bug was quickly fixed and should roll out in 2.3.8. Meanwhile, I:
... and I was able to load the "ciel" system! Maybe I'll try nuking my quicklisp installation and try again just to be sure all those steps were necessary (especially the asdf update) |
Thanks!
yes, you need a newer ASDF to get package-local-systems. There's a one-liner in the README to install it:
ah damn… thanks for taking care of it.
yes :) A simpler CIEL system or installation methods would still be appropriate. |
I also was getting error about magic.h not found (on debian unstable) despite having libmagic-dev installed and /usr/include/magic.h present. I edited src/grovel.lisp to change |
thanks for the feedback. Guys, are your fixes worth a PR to magicffi, or a discussion there? (ah, there are no issues because it's a fork, we should ask the author) |
I've been unable to reproduce my issue again, so I don't even know if it was a problem in magicffi or some weird temporary problem with configuration or something of asdf or cffi-grovel |
I recently removed the dependency on FOF (file object finder) which relied on magicffi. I'll replace it by the simplified https://github.com/lisp-maintainers/file-finder I'll have to double-check magicffi isn't a transitive dependency of another library, but I don't think so. |
When I tried (cloning and then loading via
quicklisp
) it got stuck at loading themagicffi
package.Specifically, at this step:
Ciel is a great idea for making CL approachable, perhaps it should be reduced to a version that "just works" ?
(or maybe I'm missing something obvious -- if anyone's got this working out-of-the-box on a mac, lemme know !)
The text was updated successfully, but these errors were encountered: