Skip to content

Instantly share code, notes, and snippets.

@lonnen
Forked from erikrose/gist:4221142
Created December 6, 2012 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonnen/4228703 to your computer and use it in GitHub Desktop.
Save lonnen/4228703 to your computer and use it in GitHub Desktop.
Gets DXR running.
# 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