Commit 160656fdfc417ed31be5052d43701e7fdfc4ee91

Authored by Jean-François Rey
1 parent 328c205196
Exists in master

update

Showing 2 changed files with 25 additions and 3 deletions Side-by-side Diff

... ... @@ -39,6 +39,7 @@
39 39 and debian packages
40 40  
41 41 Compiling, linking, and building applications.
  42 + (g++ will be needed if you install scoring tools)
42 43  
43 44  
44 45 avconv (libav-tools >= 0.8)
... ... @@ -89,6 +90,12 @@
89 90 and debian packages
90 91  
91 92 Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.
  93 +
  94 +libxml2-dev ( >= 2.7 ) [needed for scoring only]
  95 + Available from http://www.xmlsoft.org/
  96 + and debian packages
  97 +
  98 + Libxml2 is the XML C parser and toolkit.
92 99  
93 100 INSTALL
94 101 -------
... ... @@ -70,6 +70,19 @@
70 70 fi
71 71 echo -e "cc \t ${txtgrn}OK${txtrst}"
72 72  
  73 +
  74 +## C++
  75 +if [ $SCORING -eq 1 ]
  76 +then
  77 + test=$(whereis g++)
  78 + if [ "$test" == "g++:" ]
  79 + then
  80 + echo -e "${txtred}ERROR${txtrst} g++ not found\n You have to install g++\n sudo apt-get install g++"
  81 + exit 1;
  82 + fi
  83 + echo -e "g++ \t ${txtgrn}OK${txtrst}"
  84 +fi
  85 +
73 86 ## AVCONV
74 87 test=$(whereis avconv)
75 88 if [ "$test" == "avconv:" ]
76 89  
77 90  
78 91  
... ... @@ -194,18 +207,20 @@
194 207  
195 208 if [ $SCORING -eq 1 ]
196 209 then
197   - tar xvzf $OTMEDIA_HOME/tools/CRF++-0.58.tar.gz -C $OTMEDIA_HOME/tools/
  210 + echo -e "\t${txtblu}Install CRF++${txtrst}\n"
  211 + tar -xvzf "$OTMEDIA_HOME/tools/CRF++-0.58.tar.gz" -C "$OTMEDIA_HOME/tools/"
198 212 cd $OTMEDIA_HOME/tools/CRF++-0.58
199 213 ./configure --prefix="$OTMEDIA_HOME/tools/install"
200 214 make
201 215 make install
202   - cd $OLDPATH
  216 + echo -e "\t${txtblu}Install lia_ne${txtrst}\n"
203 217 export PATH=$PATH:$OTMEDIA_HOME/tools/install/bin
204 218 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTMEDIA_HOME/tools/install/lib
205 219 export LIA_NE=$OTMEDIA_HOME/tools/lia_ltbox/lia_ne_v2.2
206 220 cd $LIA_NE
  221 + mkdir $LIA_NE/bin 2> /dev/null
207 222 make all
208   - cd $OLDPATH
  223 + cd $OTMEDIA_HOME
209 224 fi
210 225  
211 226 ### SOLR DB ###