docs en local

Installation mnogosearch 3.2 sur dev, os ubuntu

Installation en français

Mon processus d'installation se base sur la doc du site mnogosearch. On trouve aussi ces infos dans le fichier INSTALL à la racine du répertoire mnogosearch téléchargé.

  • installer mnogosearch à partir des sources linux : http://mnogosearch.free.fr/download.html sources mnoGoSearch-3.2.42 pour Unix - Dernière version et télécharger aussi de Frontal 3.2.11 en PHP de mnoGoSearch- Dernière version
  • transfert de mnogoserach dans /var/www/mnogosearch
  • se positionner dans /var/www/mnogosearch et taper
    sudo perl install.pl

Début de installation

J'ai ensuite valide tout par defaut :

installation path : /usr/local/mnogosearch
User executables DIR: /usr/local/mnogosearch/bin
System executables DIR: /usr/local/mnogosearch/sbin
Configuration data DIR: /usr/local/mnogosearch/etc
Modifiable data DIR: /usr/local/mnogosearch/var
Object code libraries DIR: /usr/local/mnogosearch/lib
C header files DIR: /usr/local/mnogosearch/include
Man documentation DIR: /usr/local/mnogosearch/man

Database settings
-----------------
Try to autodetect databases at known locations? (yes/no) [yes]:

Sorry, no SQL servers at known locations was found

Which ODBC-style database support to include?
Note, that you may choose only one from the following.
  1 - Include iODBC support.
  2 - Include unixODBC support.
  3 - Include OpenLink ODBC support.
  4 - Include EasySoft ODBC support.
  5 - Include IBM DB2 support.
  6 - None of these.

Choose one from the mentioned (6):

Which database support to include?
Note, that you can choose only one from these.
  1 - Include Solid support.
  2 - Include SAPDB support.
  3 - None of these.

Choose one from the mentioned (3):
Include MySQL support [no] ? yes
Enter MySQL base install directory [/usr/local/mysql]:
Include PostgreSQL support [no] ?
Include mSQL support [no] ?
Include InterBase support [no] ?
Include Oracle7 support [no] ?
Include Oracle8 support [no] ?
Include Oracle8i support [no] ?
Include Ct-Lib support [no] ?
Include FreeTDS Ct-Lib support [no] ?

Compilation settings
--------------------
Build shared libraries? (yes/no) [no]:
build static libraries? (yes/no) [yes]:

Logging settings
----------------
Use syslog (yes) or stdout/stderr (no)? (yes/no) [yes]:
Syslog facility (valid name from /usr/include/sys/syslog.h) [default]:

URL parser settings
-------------------
Enable file:/ URL scheme support? (yes/no) [yes]:
Enable http:// URL scheme support? (yes/no) [yes]:
Enable ftp:// URL scheme support? (yes/no) [yes]:
Enable htdb:/  virtual URL scheme support? (yes/no) [yes]:
Enable news:// URL schema support? (yes/no) [yes]:

Additional features
-------------------
Build documentation (docbook required)? (yes/no) [no]:
Enable Posix pthreads? (yes/no) [yes]:
Enable external parsers support? (yes/no) [yes]:
Enable MP3 tags support? (yes/no) [yes]:
Enable HTTP Content-Encoding (zlib) support? (yes/no) [yes]:
Enable DMALLOC support ? (yes/no) [no]:
Enable OpenSSL support ? (yes/no) [no]:

La commande ./configure lancée par install.pl plante :

sudo ./configure 
--prefix=/usr/local/mnogosearch 
--bindir=/usr/local/mnogosearch/bin 
--sbindir=/usr/local/mnogosearch/sbin 
--sysconfdir=/usr/local/mnogosearch/etc 
--localstatedir=/usr/local/mnogosearch/var 
--libdir=/usr/local/mnogosearch/lib 
--includedir=/usr/local/mnogosearch/include 
--mandir=/usr/local/mnogosearch/man 
--disable-shared 
--enable-static 
--enable-syslog 
--without-docs 
--enable-pthreads 
--disable-dmalloc 
--enable-parser 
--enable-mp3 
--enable-file 
--enable-http 
--enable-ftp 
--enable-htdb 
--enable-news
configure failed: -1 at install.pl line 175, <STDIN> line 30.

J'ai lancé alors la commande

chmod 777 configure

La commande a marché mais un nouveau message apparait en relançant ./configure : configure: error: Unable to find working zlib library

Solution 1 : NOK

J'ai trouvé un post qui dit d'installer zlib-devel RPM

Il faut telecharger le RPM ici

Installer alien pour qu'ubuntu puisse convertir le rpm en deb :

sudo apt-get install alien

Se placer dans le repertoire ou on a telecharger le RPM puis Convertir un paquet rpm en .deb :

sudo alien -d zlib-devel-1.2.7-2.1.2.x86_64.rpm

Installer le paquet deb

sudo apt-get install zlib-devel_1.2.7-3.1_amd64.deb

Solution 2 : OK

Installer le paquet zlibdevel :

sudo apt-get install zlib1g-dev

Relancer la commande

sudo ./configure ...
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory
configure: WARNING: unrecognized options: --disable-dmalloc, --enable-htdb


No database selected! indexering part will not be compiled
If it's incorrect, use --with-XXX where XXX is your preferred database type

***********************************************************
*                                                         *
*     Now run make && make install                        *
*     If it fails, try to use GNU make,                   *
*     often installed as gmake.                           *
*                                                         *
*                                                         *
*            Thank you for using mnoGoSearch!             *
***********************************************************

hodei@devhodei:/var/www/mnogosearch$ configure failed: -1 at install.pl line 175, <STDIN> line 30.

J'installe mysql avec

sudo apt-get install mysql-server mysql-client libmysqlclient15-dev mysql-common

Je relance

sudo ./configure --with-mysql
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory

***********************************************************
*                                                         *
*     Now run make && make install                        *
*     If it fails, try to use GNU make,                   *
*     often installed as gmake.                           *
*                                                         *
*                                                         *
*            Thank you for using mnoGoSearch!             *
***********************************************************
sudo make

sudo make install

Création de la BD

mysql -u root -pDolimysql!

create database mnogosearch;

Création de indexer.conf

Création des tables

hodei@devhodei:/usr/local/mnogosearch/etc$ sudo cp indexer.conf-dist indexer.conf
# modifier le fichier précédent pour prendre en compte les paramètres sql
sudo chmod go+w indexer.conf

#creation des tables
cd sbin
sudo ./indexer -Ecreate

Créer les tables :

./indexer -Ecreate -d /usr/local/mnogosearch/etc/indexer.conf

Supprimer les tables :

./indexer -Edrop -d /usr/local/mnogosearch/etc/indexer.conf

Alias Apache

Creer l'alias Apache sur /var/www/mnogoserach

Compiler l'extension php

installer pecl : sudo apt-get install php-pear (inutile finalement, on doit compiler l'extension php)

/usr/bin/phpize

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
hodei@devhodei:/var/www/mnogosearch/php$ sudo ./configure --with-mnogosearch=/usr/local/mnogosearch

sudo make

sudo make install

#Mettre à jour /etc/php5/apache2/php.ini

sudo chmod go+w php.ini

rajouter extension=mnogosearch.so

Vérification

Vérifier ensuite avec phpinfo que mnogosearch apparaît dans la liste des extensions

Puis tester une fonction de l'API php:

<?php
echo 'coucou';
$v = udm_api_version();
echo "**".$v."**";
?>

Navigation

QR Code
QR Code systeme_informatique:bilatu:mngosearch:installation:2013-3.2 (generated for current page)