LuxIO – Installation and Test of the NoSQL key value database
Lux IO is a small performant key value storage. It is B+-tree based and is quite ... Read more
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# http://torum.net/2010/01/kyotocabinet-alpha-release/ ulimit -u unlimited #zlib compression sudo apt-get install -y zlib1g-dev build-essential #lzma compression sudo apt-get install -y lzma liblzma-dev #lzo compression sudo apt-get install -y liblzo2-dev sudo apt-get remove -y libtokyocabinet-dbg libtokyocabinet-dev tokyocabinet-bin libtokyocabinet9 sudo apt-get install -y xz-utils #lua #sudo apt-get install -y build-essential lua5.2 liblua5.2-0 liblua5.2-0-dbg liblua5.2-dev sudo apt-get remove -y lua5.2 liblua5.2-0 liblua5.2-0-dbg liblua5.2-dev sudo apt-get remove -y lua50 liblua50 liblua50-dbg liblua50-dev sudo apt-get install -y lua5.1 liblua5.1 liblua5.1-dev # that was the fix sudo apt-get install -y zlib1g zlib1g-dev #/*** #apt-get install zlib-devel -y --force-yes # checking for zlib.h... no # configure: error: zlib.h is required #****/ #kyoto cabinet build mkdir -p /tmp/build cd /tmp/build version="1.2.76" # download wget http://fallabs.com/kyotocabinet/pkg/kyotocabinet-$version.tar.gz # extract tar xvzf kyotocabinet-$version.tar.gz # build and install cd kyotocabinet-$version ./configure --enable-zlib --enable-lzo --enable-lzma make sudo make install |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
#kyototycoon, works with lua 5.1 not 5.2 or later! mkdir -p /tmp/build cd /tmp/build version="0.9.56" wget http://fallabs.com/kyototycoon/pkg/kyototycoon-$version.tar.gz tar xvzf kyototycoon-$version.tar.gz cd kyototycoon-$version #./configure --with-kc --enable-lua #error fix #ktdbext.h:274:29: error: ‘getpid’ was not declared in this scope # append line #include <unistd.h> #http://code.google.com/p/modpagespeed/issues/detail?id=420 if [ "`grep 'include <unistd.h>' ./ktdbext.h`" == "" ] ; then sed -i -e 's/#define _KTDBEXT_H/#define _KTDBEXT_H\n#include <unistd.h>\n/g' ./ktdbext.h fi; #error fix #myscript.cc:3435:33: error: ‘lua_objlen’ was not declared in this scope #"Ipe requires Lua 5.1, and does not currently work with Lua 5.2." #http://sourceforge.net/apps/mantisbt/ipe7/view.php?id=113 #include "myconf.h" # build and install sudo ./configure --with-kc=/usr/local/kyotocabinet --enable-lua --with-lua=/usr/lib/x86_64-linux-gnu/ make sudo make install |
1 2 |
sudo add-apt-repository -y ppa:e2defrag/ppa sudo add-apt update |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# set version and base directory version="4.4.0" basedir=~/build/solr # create directory for Solr server binaries mkdir $basedir cd $basedir # download solr binaries > 70 MB wget http://apache.mirror.clusters.cc/lucene/solr/$version/solr-$version.zip # extract zip file unzip -oq solr-$version.zip # move versioned directory mv solr-$version solr |
1 2 3 4 5 6 |
# set base directory basedir=~/build/solr cd $basedir/solr/example/ # start solr server - uses port localhost:8983 java -jar start.jar |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# set lucene version version="4.4.0" # set base directories basedir=~/build/lucene/lucene-$version indexdir=$basedir/data/index # create direct for Lucene code and binaries mkdir -p $indexdir cd $basedir/.. # download lucene if [ ! -e lucene-$version.zip ]; then wget http://apache.imsam.info/lucene/java/$version/lucene-$version.zip fi; # extract unzip -oq lucene-$version.zip # create directory to save the search index mkdir -p $basedir/data/index # start demo indexing cd lucene-$version # set classpath classpath=$classpath:$basedir/demo/lucene-demo-$version.jar classpath=$classpath:$basedir/core/lucene-core-$version.jar classpath=$classpath:$basedir/analysis/common/lucene-analyzers-common-$version.jar # Do index the directory with lucene documentation java -classpath $classpath org.apache.lucene.demo.IndexFiles -index $indexdir -docs $basedir/docs # check content of index directory echo $indexdir ls -lh $indexdir |
1 |
sudo apt-get install -y eclipse |
Fixes many missing library errors
1 2 3 4 |
if [ "`grep '/usr/local/lib' /etc/ld.so.conf`" == "" ] ; then sudo sh -c ' printf "\n/usr/local/lib" >> /etc/ld.so.conf'; fi; sudo ldconfig |