Forked from vinilios/install xapian inside virtualenv
          
        
    
          Last active
          December 4, 2020 05:39 
        
      - 
      
 - 
        
Save asyncee/6387841 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
asyncee revised this gist
Aug 31, 2013 . 1 changed file with 39 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,46 @@ #/bin/bash echo "Packages needed for installation:" echo "zlib1g-dev g++" echo echo "You can install it on debian-based distros with command:" echo "apt-get install zlib1g-dev g++" echo if [ -z "$VIRTUAL_ENV" ]; then echo "This script must be run inside a virtualenv" echo "To activate virtualenv, run:" echo "source env/bin/activate" exit; fi VER="1.2.10" echo "Installing xapian $VER" export VENV=$VIRTUAL_ENV mkdir -p $VENV/packages && cd $VENV/packages curl -O http://oligarchy.co.uk/xapian/$VER/xapian-core-$VER.tar.gz curl -O http://oligarchy.co.uk/xapian/$VER/xapian-bindings-$VER.tar.gz tar xzvf xapian-core-$VER.tar.gz tar xzvf xapian-bindings-$VER.tar.gz cd $VENV/packages/xapian-core-$VER ./configure --prefix=$VENV && make && make install export LD_LIBRARY_PATH=$VENV/lib cd $VENV/packages/xapian-bindings-$VER ./configure --prefix=$VENV --with-python && make && make install echo "Checking xapian installation:" echo python -c "import xapian" if [ $? -eq 0 ]; then echo "ok" else echo echo "failed" fi  - 
        
asyncee revised this gist
Aug 30, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apt-get install zlib1g-dev apt-get install g++ export VENV=$VIRTUAL_ENV mkdir -p $VENV/packages && cd $VENV/packages curl -O http://oligarchy.co.uk/xapian/1.2.10/xapian-core-1.2.10.tar.gz curl -O http://oligarchy.co.uk/xapian/1.2.10/xapian-bindings-1.2.10.tar.gz  - 
        
asyncee revised this gist
Aug 30, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,8 @@ apt-get install g++ export VENV=$VIRTUAL_ENV mkdir $VENV/packages && cd $VENV/packages curl -O http://oligarchy.co.uk/xapian/1.2.10/xapian-core-1.2.10.tar.gz curl -O http://oligarchy.co.uk/xapian/1.2.10/xapian-bindings-1.2.10.tar.gz tar xzvf xapian-core-1.2.10.tar.gz tar xzvf xapian-bindings-1.2.10.tar.gz  - 
        
asyncee revised this gist
Aug 30, 2013 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,18 +4,18 @@ apt-get install g++ export VENV=$VIRTUAL_ENV mkdir $VENV/packages && cd $VENV/packages curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-core-1.2.10.tar.gz curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-bindings-1.2.10.tar.gz tar xzvf xapian-core-1.2.10.tar.gz tar xzvf xapian-bindings-1.2.10.tar.gz cd $VENV/packages/xapian-core-1.2.10 ./configure --prefix=$VENV && make && make install export LD_LIBRARY_PATH=$VENV/lib cd $VENV/packages/xapian-bindings-1.2.10 ./configure --prefix=$VENV --with-python && make && make install python -c "import xapian"  - 
        
vinilios revised this gist
Oct 1, 2009 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ apt-get install zlib1g-dev apt-get install g++ export VENV=$VIRTUAL_ENV mkdir $VENV/packages && cd $VENV/packages  - 
        
vinilios created this gist
Oct 1, 2009 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ export VENV=$VIRTUAL_ENV mkdir $VENV/packages && cd $VENV/packages curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-core-1.0.16.tar.gz curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-bindings-1.0.16.tar.gz tar xzvf xapian-core-1.0.16.tar.gz tar xzvf xapian-bindings-1.0.16.tar.gz cd $VENV/packages/xapian-core-1.0.16 ./configure --prefix=$VENV && make && make install export LD_LIBRARY_PATH=$VENV/lib cd $VENV/packages/xapian-bindings-1.0.16 ./configure --prefix=$VENV --with-python && make && make install python -c "import xapian"