-
Notifications
You must be signed in to change notification settings - Fork 59
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
Error locating libclang.so on Debian/Ubuntu systems #2
Comments
You will need to install libclang-dev instead. |
Strictly speaking, Thanks for this info -- it would be worth mentioning it in the getting started page. |
I've mentioned it now. I know that the .so is for development normally. The problem is with the clang python bindings which only looks for the unversioned .so. I'll see if this can be fixed in the future. |
Why not use something like this: from ctypes.util import find_library
# ...
Config.set_library_file(find_library('clang')) |
I'm using this now, at least for linux. It seems to be working fine. |
Hey, this didn't work for me. I had to manually add the line |
I encountered the same issue as @cosmicexplorer. The problem with Ubuntu (at least 14.04) seems to be the name of the Therefore I propose a less restrictive lib file search to fix this issue. Since I am not that fluent in Python I cannot provide the patch myself. A workaround is creating a symlink in |
I was faced with the same issue on Ubuntu 14.10 after installing via pip. gujans symlink solution worked for me. Unless this has been fixed in the github code and not yet published to pip, I think this issue should be reopened. |
Can you try with current master and let me know if that solves the issue? |
Tested with master and it works just fine. Sorry for the trouble. |
I will make a new release soon so this gets picked up. |
I am having some issues on MacOSX Yosemite, it is located in /Library/Developer/CommandLineTools/usr/lib/libclang.dylib on my machine. cldoc.clang.cindex.LibclangError: dlopen(libclang.dylib, 6): image not found. To provide a path to libclang use Config.set_library_path() or Config.set_library_file(). |
This should have been fixed in 1.7. |
I installed cldoc via the pip yesterday. It is installed in |
On Debian and Ubuntu systems,
libclang
is provided by thelibclang1
package. This installs/usr/lib/libclang.so.1
on amd64 and i386 systems, not/usr/lib/libclang.so
(see e.g. http://packages.ubuntu.com/raring/amd64/libclang1/filelist).This means that running cldoc I get the error:
The text was updated successfully, but these errors were encountered: