orthecreedence / cl-async

Asynchronous IO library for Common Lisp.
MIT License
273 stars 40 forks source link

Unable to load libuv.dylib #138

Closed ColemanGariety closed 7 years ago

ColemanGariety commented 8 years ago

When trying to install via quicklisp I immediately get:

> Error: Unable to load any of the alternatives:
>           ("libuv.dylib")

libuv is installed via homebrew in the usual location (/usr/local/Cellar/).

PuercoPop commented 8 years ago

Following the thread of https://github.com/orthecreedence/wookie/issues/73#issuecomment-208114841

I am unfamiliar with the best way to search for libraries, but it appears that CFFI honours the DYLD_LIBRARY_PATH variable.

orthecreedence commented 8 years ago

Hey guys, sorry for the late response. I've had nothing but trouble with OSx and loading libraries. Every time I turn around it jams them somewhere new, and I don't have a Mac to test on so I really just rely on pull requests. As Javier pointed out, perhaps just doing DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/path/to/libuv.dylib ccl ... would do it. Other than that, please feel free to open a pull request against cl-libuv and just keep adding the locations in by hand. It's frustrating, but maybe at some point library maintainers will stop putting them in random ass places.

ekuiter commented 7 years ago

I had the same problem although libuv was correctly installed to /usr/local/lib/libuv.dylib with Homebrew. I used ccl (which defaults to ccl32), but brew installs libuv as a x86_64 library. After switching to ccl64 loading cl-async works like a charm :) (You could possibly compile libuv as a 32-bit library too and continue to use ccl32.)