-
-
Save lonnen/4228703 to your computer and use it in GitHub Desktop.
Gets DXR running.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, install everything via vagrant. | |
# Then... | |
mkdir ~/bin | |
cd ~/bin | |
wget http://pypi.python.org/packages/source/p/python-hglib/python-hglib-0.2.tar.gz | |
tar -xzf python-hglib-0.2.tar.gz | |
cd python-hglib-0.2 | |
sudo python setup.py install | |
cd ~ | |
# Make trilite: | |
cd ~/bin | |
git clone git://github.com/jonasfj/trilite.git trilite | |
cd trilite | |
make release | |
sudo ln -s ~/bin/trilite/libtrilite.so /usr/local/lib/ | |
sudo cp /usr/bin/llvm-config-3.0 /usr/bin/llvm-config | |
cd ~/dxr/plugins/clang | |
make | |
cd ~/dxr/tests/json-test | |
LD_LIBRARY_PATH=/home/vagrant/bin/trilite make # Not sure why installing trilite in /usr/local/lib is insufficient. | |
cd target/server | |
./test-server.py --port 8000 | |
# In ~/dxr/tests/json-test/target/HelloWorld, there is a .dxr-xref.sqlite. This | |
# didn't seem to have anything in it until I installed the sqlite and sqlite3 | |
# Ubuntu packages and re-ran make in json-test. This might be a coincidence. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment