Playing with llvm-py

804 Views Asked by At

I was trying to get llvm-py to install on my OSX 10.9 and I got the following error when trying to install it.

% python setup.py build
Error: could not invoke ['llvm-config', '--version']
Try setting LLVM_CONFIG_PATH=/path/to/llvm-config

However, I don't seem to have llvm-config installed. Currently, clang, llvm-gcc and llvm-g++ seem to be present by default on OSX. Should I be reinstalling it from source in order to be able to use llvm-config?

1

There are 1 best solutions below

1
On

The LLVM binary download (for example, the one for version 3.3 is here) comes with the llvm-config use tool, so you can use that. You don't need to rebuild it - just grab the archive appropriate for your OS from that page and unzip it.