Herramientas de usuario

Herramientas del sitio


notas:vufind

Notas sobre primeras pruebas con VuFind

~~DRAFT~~

Entro a la página de Downloads:

http://www.vufind.org/downloads.php

Descargo usando SVN:

$ svn co https://vufind.svn.sourceforge.net/svnroot/vufind/trunk vufind

Termina la ejecución con:

Checked out revision 1033.

En el archivo README tenemos la lista de requerimientos:

  Apache HTTP Server 2.2 or later
  PHP 5.1.0 or later
  MySQL 4.1 or later
  Java J2SE JDK 1.4 or later
  GNU Aspell Library

ATENCION: para Ubuntu tenemos http://www.vufind.org/wiki/installation_ubuntu

13 de agosto de 2012: instalación en vm03

$ wget http://downloads.sourceforge.net/vufind/vufind_1.3.deb?use_mirror=osdn
--20:15:25--  http://downloads.sourceforge.net/vufind/vufind_1.3.deb?use_mirror=osdn
           => `vufind_1.3.deb?use_mirror=osdn'
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/vufind/VuFind/1.3/vufind_1.3.deb?use_mirror=osdn [following]
--20:15:26--  http://downloads.sourceforge.net/project/vufind/VuFind/1.3/vufind_1.3.deb?use_mirror=osdn
           => `vufind_1.3.deb?use_mirror=osdn'
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://ufpr.dl.sourceforge.net/project/vufind/VuFind/1.3/vufind_1.3.deb [following]
--20:15:27--  http://ufpr.dl.sourceforge.net/project/vufind/VuFind/1.3/vufind_1.3.deb
           => `vufind_1.3.deb'
Resolving ufpr.dl.sourceforge.net... 200.236.31.2, 2801:82:80ff:8000::3
Connecting to ufpr.dl.sourceforge.net|200.236.31.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37,811,210 (36M) [application/x-debian-package]

100%[==========================================================================================>] 37,811,210   356.93K/s    ETA 00:00

20:17:16 (347.35 KB/s) - `vufind_1.3.deb' saved [37811210/37811210]
$ sudo dpkg -i vufind_1.3.deb
Password:
Selecting previously deselected package vufind.
(Reading database ... 28327 files and directories currently installed.)
Unpacking vufind (from vufind_1.3.deb) ...
dpkg: dependency problems prevent configuration of vufind:
 vufind depends on default-jdk; however:
  Package default-jdk is not installed.
 vufind depends on php5-dev; however:
  Package php5-dev is not installed.
 vufind depends on php-pear; however:
  Package php-pear is not installed.
 vufind depends on php5-ldap; however:
  Package php5-ldap is not installed.
 vufind depends on php5-mysql; however:
  Package php5-mysql is not installed.
 vufind depends on php5-xsl; however:
  Package php5-xsl is not installed.
 vufind depends on php5-pspell; however:
  Package php5-pspell is not installed.
 vufind depends on php5-gd; however:
  Package php5-gd is not installed.
dpkg: error processing vufind (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 vufind
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  autoconf automake1.4 autotools-dev libaspell15 libgd2-xpm libpng12-0 libt1-5 libtool libxpm4 m4 php-pear php5-dev php5-gd
  php5-ldap php5-mysql php5-pspell php5-xsl shtool
Suggested packages:
  autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc aspell libgd-tools libtool-doc g77 fortran77-compiler gcj
  automake
Recommended packages:
  automaken aspell-en aspell-dictionary aspell6a-dictionary libltdl3-dev
The following packages will be REMOVED:
  vufind
The following NEW packages will be installed:
  autoconf automake1.4 autotools-dev libaspell15 libgd2-xpm libpng12-0 libt1-5 libtool libxpm4 m4 php-pear php5-dev php5-gd
  php5-ldap php5-mysql php5-pspell php5-xsl shtool
0 upgraded, 18 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3537kB of archives.
After unpacking 14.8MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://archive.debian.org etch/main m4 1.4.8-2 [221kB]
Get:2 http://archive.debian.org etch/main autoconf 2.61-4 [448kB]
Get:3 http://archive.debian.org etch/main autotools-dev 20060702.1 [60.6kB]
Get:4 http://archive.debian.org etch/main automake1.4 1:1.4-p6-12 [272kB]
Get:5 http://archive.debian.org etch/main libaspell15 0.60.4-4 [664kB]
Get:6 http://archive.debian.org etch/main libpng12-0 1.2.15~beta5-1+etch2 [188kB]                                                    
Get:7 http://archive.debian.org etch/main libxpm4 1:3.5.5-2 [35.4kB]                                                                 
Get:8 http://archive.debian.org etch/main libgd2-xpm 2.0.33-5.2etch2 [204kB]                                                         
Get:9 http://archive.debian.org etch/main libt1-5 5.1.0-2etch1 [159kB]                                                               
Get:10 http://archive.debian.org etch/main libtool 1.5.22-4+etch1 [328kB]                                                            
Get:11 http://archive.debian.org etch/main php-pear 5.2.0+dfsg-8+etch16 [311kB]                                                      
Get:12 http://archive.debian.org etch/main shtool 2.0.1-2 [152kB]                                                                    
Get:13 http://archive.debian.org etch/main php5-dev 5.2.0+dfsg-8+etch16 [345kB]                                                      
Get:14 http://archive.debian.org etch/main php5-gd 5.2.0+dfsg-8+etch16 [37.1kB]                                                      
Get:15 http://archive.debian.org etch/main php5-ldap 5.2.0+dfsg-8+etch16 [18.6kB]                                                    
Get:16 http://archive.debian.org etch/main php5-mysql 5.2.0+dfsg-8+etch16 [71.8kB]                                                   
Get:17 http://archive.debian.org etch/main php5-pspell 5.2.0+dfsg-8+etch16 [9396B]                                                   
Get:18 http://archive.debian.org etch/main php5-xsl 5.2.0+dfsg-8+etch16 [13.0kB]                                                     
Fetched 3537kB in 12s (277kB/s)                                                                                                      
(Reading database ... 30680 files and directories currently installed.)
Removing vufind ...
Selecting previously deselected package m4.
(Reading database ... 28368 files and directories currently installed.)
Unpacking m4 (from .../archives/m4_1.4.8-2_amd64.deb) ...
Selecting previously deselected package autoconf.
Unpacking autoconf (from .../autoconf_2.61-4_all.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20060702.1_all.deb) ...
Selecting previously deselected package automake1.4.
Unpacking automake1.4 (from .../automake1.4_1%3a1.4-p6-12_all.deb) ...
Selecting previously deselected package libaspell15.
Unpacking libaspell15 (from .../libaspell15_0.60.4-4_amd64.deb) ...
Selecting previously deselected package libpng12-0.
Unpacking libpng12-0 (from .../libpng12-0_1.2.15~beta5-1+etch2_amd64.deb) ...
Selecting previously deselected package libxpm4.
Unpacking libxpm4 (from .../libxpm4_1%3a3.5.5-2_amd64.deb) ...
Selecting previously deselected package libgd2-xpm.
Unpacking libgd2-xpm (from .../libgd2-xpm_2.0.33-5.2etch2_amd64.deb) ...
Selecting previously deselected package libt1-5.
Unpacking libt1-5 (from .../libt1-5_5.1.0-2etch1_amd64.deb) ...
Selecting previously deselected package libtool.
Unpacking libtool (from .../libtool_1.5.22-4+etch1_amd64.deb) ...
Selecting previously deselected package php-pear.
Unpacking php-pear (from .../php-pear_5.2.0+dfsg-8+etch16_all.deb) ...
Selecting previously deselected package shtool.
Unpacking shtool (from .../shtool_2.0.1-2_all.deb) ...
Selecting previously deselected package php5-dev.
Unpacking php5-dev (from .../php5-dev_5.2.0+dfsg-8+etch16_amd64.deb) ...
Selecting previously deselected package php5-gd.
Unpacking php5-gd (from .../php5-gd_5.2.0+dfsg-8+etch16_amd64.deb) ...
Selecting previously deselected package php5-ldap.
Unpacking php5-ldap (from .../php5-ldap_5.2.0+dfsg-8+etch16_amd64.deb) ...
Selecting previously deselected package php5-mysql.
Unpacking php5-mysql (from .../php5-mysql_5.2.0+dfsg-8+etch16_amd64.deb) ...
Selecting previously deselected package php5-pspell.
Unpacking php5-pspell (from .../php5-pspell_5.2.0+dfsg-8+etch16_amd64.deb) ...
Selecting previously deselected package php5-xsl.
Unpacking php5-xsl (from .../php5-xsl_5.2.0+dfsg-8+etch16_amd64.deb) ...
Setting up m4 (1.4.8-2) ...

Setting up autoconf (2.61-4) ...

Setting up autotools-dev (20060702.1) ...
Setting up automake1.4 (1.4-p6-12) ...

Setting up libaspell15 (0.60.4-4) ...

Setting up libpng12-0 (1.2.15~beta5-1+etch2) ...

Setting up libxpm4 (3.5.5-2) ...

Setting up libgd2-xpm (2.0.33-5.2etch2) ...
Setting up libt1-5 (5.1.0-2etch1) ...

Setting up libtool (1.5.22-4+etch1) ...
Setting up php-pear (5.2.0+dfsg-8+etch16) ...
Setting up shtool (2.0.1-2) ...

Setting up php5-dev (5.2.0+dfsg-8+etch16) ...

Setting up php5-gd (5.2.0+dfsg-8+etch16) ...

Setting up php5-ldap (5.2.0+dfsg-8+etch16) ...

Setting up php5-mysql (5.2.0+dfsg-8+etch16) ...

Setting up php5-pspell (5.2.0+dfsg-8+etch16) ...

Setting up php5-xsl (5.2.0+dfsg-8+etch16) ...

Como apt no encuentra default-jdk en los repositorios, no se puede instalar vufind. Pruebo instalando directamente sun-java5-jdk:

$ sudo apt-get install sun-java5-jdk
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  java-common libltdl3 odbcinst1debian1 sun-java5-bin sun-java5-demo sun-java5-jre unixodbc
Suggested packages:
  equivs libnss-mdns sun-java5-doc sun-java5-source sun-java5-plugin ia32-sun-java5-plugin sun-java5-fonts ttf-baekmuk
  ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
  libmyodbc odbc-postgresql libct1
Recommended packages:
  libxext6 libxi6 libxp6 libxt6 libxtst6 gsfonts-x11
The following NEW packages will be installed:
  java-common libltdl3 odbcinst1debian1 sun-java5-bin sun-java5-demo sun-java5-jdk sun-java5-jre unixodbc
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.3MB of archives.
After unpacking 99.7MB of additional disk space will be used.
Do you want to continue [Y/n]? Y

Pero como vufind requiere default-jdk, sigo sin poder instalarlo.

Sin embargo… veo que los archivos se han copiado a /usr/local/vufind, así que intento seguir adelante con las instrucciones en http://vufind.org/wiki/installation_ubuntu#configuring_and_starting_vufind

efege@vm03:/usr/local/vufind$ ./vufind.sh start
Found JAVA=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/bin/java in JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14
Starting VuFind ... 
STARTED VuFind Tue Aug 14 15:19:54 ART 2012
/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/bin/java -server -Xms1024m -Xmx1024m -XX:+UseParallelGC -XX:NewRatio=5 -Dsolr.solr.home=/usr/local/vufind/solr -Djetty.logs=/usr/local/vufind/solr/jetty/logs -Djetty.home=/usr/local/vufind/solr/jetty  -jar /usr/local/vufind/solr/jetty/start.jar  /usr/local/vufind/solr/jetty/etc/jetty.xml
VuFind running pid=14500
efege@vm03:/usr/local/vufind$ nohup: appending output to `nohup.out'
Error occurred during initialization of VM
Could not reserve enough space for object heap

Veo con top que plone está consumiendo bastante memoria:

16958 plone     15   0  512m 295m 1412 S  0.0 57.7  18:42.21 python  

Reinicio el servidor de Plone desde la interfaz web:

14511 plone     15   0  286m 169m 4364 S  0.0 33.2   0:21.79 python

y entonces reintento con vufind:

efege@vm03:/usr/local/vufind$ ./vufind.sh start
Found JAVA=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/bin/java in JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14
Starting VuFind ... 
Already Running!!

Algunos de los pasos de la instalación no se completaron, así que debo hacerlos manualmente.

Write access to some of the VuFind subdirectories:

$ sudo chown www-data:www-data /usr/local/vufind/web/interface/compile
$ sudo chown www-data:www-data /usr/local/vufind/web/interface/cache 
$ sudo chown www-data:www-data /usr/local/vufind/web/images/covers/

Vinculación con Apache:

$ sudo ln -s /usr/local/vufind/httpd-vufind.conf /etc/apache2/conf.d/vufind
$ sudo /etc/init.d/apache2 reload
Syntax error on line 25 of /etc/apache2/conf.d/vufind:
RewriteRule: unknown flag 'B'
 failed!

Epa. [B] was new in 2.2.7. La versión de Apache en el servidor es 2.2.3. Edito httpd-vufind.conf y quito los “B”.

$ sudo /etc/init.d/apache2 reload
Reloading web server config...30184

Próximo paso: importar registros.

$ ./import-marc.sh /home/efege/unison/becyt/springer-marc/Springer_MARC_20110704_133102.mrc
You need to set the VUFIND_HOME environmental variable before running this script.

Faltaba setear un par de variables de entorno. Añado dos líneas a ~/.bash_profile:

export JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun"
export VUFIND_HOME="/usr/local/vufind"

y ejecuto

$ source ~/.bash_profile

Reintento la importación:

$ ./import-marc.sh /home/efege/unison/becyt/springer-marc/Springer_MARC_20110704_133102.mrc
/usr/local/vufind/solr /usr/local/vufind
Now Importing /home/efege/unison/becyt/springer-marc/Springer_MARC_20110704_133102.mrc ...
/usr/lib/jvm/java-1.5.0-sun/bin/java -Xms512m -Xmx512m -Dsolrmarc.solr.war.path=/usr/local/vufind/solr/jetty/webapps/solr.war -Dsolr.core.name=biblio -Dsolrmarc.path=/usr/local/vufind/import -Dsolr.path=/usr/local/vufind/solr -Dsolr.solr.home=/usr/local/vufind/solr -jar /usr/local/vufind/import/SolrMarc.jar import.properties /home/efege/unison/becyt/springer-marc/Springer_MARC_20110704_133102.mrc
Error occurred during initialization of VM
Could not reserve enough space for object heap

Problemas con la memoria para Java. Ver:

Modifiqué vufind.sh para bajar la cantidad de memoria requerida:

$ diff vufind.sh.original vufind.sh
112c112
<   JAVA_OPTIONS="-server -Xms1024m -Xmx1024m -XX:+UseParallelGC -XX:NewRatio=5"
---
>   JAVA_OPTIONS="-server -Xms256m -Xmx256m -XX:+UseParallelGC -XX:NewRatio=5"

pero igualmente no alcanza. El servidor solo tiene 512 MB, y Plone consume mucho.

vufind

notas/vufind.txt · Última modificación: por 127.0.0.1