Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

More installation notes / problems: msg#00003

Subject: More installation notes / problems
Dear Emilda people,

Hooray and thank you for updating the installation instructions with the
login / password. Now I can log into my emilda installation and try to
start using it.

I think you need to add a couple of other things to your required
libraries list. I had to install mod_perl in order to get the perl scripts
in /perl/ to run. Also these scripts seem to require perl DBI & DBD-mysql.
Here is the output from trying to run MARC.pl on the command line (I know
it won't actually do anything useful on the command line, I just wanted to
find out what the output was.)

[Fri Feb 13 10:07:19 2004] MARC.pl: install_driver(mysql) failed: Can't
locate DBD/mysql.pm in @INC (@INC contains: /etc/perl
/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i686-linux
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0
/usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.6.1 .) at (eval 9)
line 3.
[Fri Feb 13 10:07:19 2004] MARC.pl: Perhaps the DBD::mysql perl module
hasn't been fully installed,
[Fri Feb 13 10:07:19 2004] MARC.pl: or perhaps the capitalisation of
'mysql' isn't right.
[Fri Feb 13 10:07:19 2004] MARC.pl: Available drivers: ExampleP, Proxy.
[Fri Feb 13 10:07:19 2004] MARC.pl:  at lib/MARC.pm line 141

So installing those libs fixed something. However, I still can't add a
book to my database.

The good news is I can search remote Z3950 databases for MARC records, and
that's great. But when emilda tries to connect to my local zebra
installation, it can't find a database called Default. The error is
"Database unavailable: Default" It is connecting, though.  Here is the
zebra output:

13:47:53-13/02: zebrasrv(4235) [log] Starting session 3 from tcp:localhost
13:47:53-13/02: zebrasrv(4235) [log] Got initRequest
13:47:53-13/02: zebrasrv(4235) [log] Id:        81/81
13:47:53-13/02: zebrasrv(4235) [log] Name:      PHP/ZOOM-C/YAZ
13:47:53-13/02: zebrasrv(4235) [log] Version:   1.14/2.0.8
13:47:53-13/02: zebrasrv(4235) [log] Negotiated to v3: srch prst
extendedServices namedresults scan sort
13:47:53-13/02: zebrasrv(4235) [log] Got SearchRequest.
13:47:53-13/02: zebrasrv(4235) [log] ResultSet '1'
13:47:53-13/02: zebrasrv(4235) [log] Database 'Default'
13:47:53-13/02: zebrasrv(4235) [log] RPN query. Type: Bib-1
13:47:53-13/02: zebrasrv(4235) [log]  term '1563086573' (general)
13:47:53-13/02: zebrasrv(4235) [log]    use (1=7)
13:47:53-13/02: zebrasrv(4235) [log] ResultSet '1'
13:47:53-13/02: zebrasrv(4235) [log][app2] zebra_register_open rw = 0
useshadow=0 p=0x80bc440,n=,rp=(none)
13:47:53-13/02: zebrasrv(4235) [warn] default.idx [No such file or
directory]
13:47:53-13/02: zebrasrv(4235) [warn] Couldn't open explain.abs [No such
file or directory]
13:47:53-13/02: zebrasrv(4235) [log] resultSetRank
13:47:53-13/02: zebrasrv(4235) [log] term="1563086573" nn=0 type=void
count=0
13:47:53-13/02: zebrasrv(4235) [log] 0 keys, 0 distinct sysnos
13:47:53-13/02: zebrasrv(4235) [log] user/system: 0/0
13:47:53-13/02: zebrasrv(4235) [log] [109] Database unavailable -- Default
13:47:53-13/02: zebrasrv(4235) [log] Connection closed by client
13:47:53-13/02: zebrasrv(4235) [log][app2] zebra_register_close
p=0x80bc440

I went through all the zebra instructions carefully, and if I use the
zebra example directory, and create and run an instance of zebrasrv there,
I get the error your website mentions: Unsupported Use attribute: 7, which
seems to imply that things are working correctly, or at least that there
is a database being created called Default.

A couple of other issues with the zebra config instructions:

1. You must also create directories called "lock" and "tmp", which are
needed by zebra.cfg

2. In zebra.cfg should profilePath be ".:tab" or "./tab"? The file I
downloaded reads ".:tab", which doesn't seem to make sense, especially
since the zebra examples read like unix style file paths.

3. Does it matter that I don't have a file called explain.att? zebra.cfg
is asking for it, and when I run zebraids it complains about not finding
explain.att and explain.abs. I've pasted the output of the entire process
below (following your instructions, and the only things I've changed are
creating the tmp and lock files and changing profilePath to "./tab")

**********

So then, if I press "accept" on the Add Book screen, I get an "Internal
Server Error" message on the screen, and the log output is.

[Fri Feb 13 14:06:46 2004] [error] [client 129.128.11.180] (2)No such file
or directory: getpwuid: invalid userid -1
[Fri Feb 13 14:06:46 2004] [error] (2)No such file or directory: exec of
/home/httpd/htdocs/emilda/perl/MARC.pl failed
[Fri Feb 13 14:06:46 2004] [error] [client 129.128.11.180] Premature end
of script headers: /home/httpd/htdocs/emilda/perl/MARC.pl

Any help you can provide would be much appreciated.

Thanks!

Bess Sadler
School of Library and Information Science
University of Alberta

************

Output of creating zebra database, starting zebrasrv & accepting
connection from apache:

apache@lorca zebra $ zebraidx update records
13:54:28-13/02: zebraidx(4266) [log] Zebra version 1.3.15 $Date:
2004/01/15 14:22:22 $
13:54:28-13/02: zebraidx(4266) [log][app2] zebra_start zebra.cfg
13:54:28-13/02: zebraidx(4266) [log][app2] zebra_register_open rw = 1
useshadow=0 p=0x80b4408,n=,rp=(none)
13:54:28-13/02: zebraidx(4266) [warn] default.idx [No such file or
directory]
13:54:28-13/02: zebraidx(4266) [warn] Couldn't open explain.abs [No such
file or directory]
13:54:28-13/02: zebraidx(4266) [log][app2] updating records
13:54:28-13/02: zebraidx(4266) [log] dir records/
13:54:28-13/02: zebraidx(4266) [log] zebra_end_trans
13:54:28-13/02: zebraidx(4266) [warn] Unknown register type: 0
13:54:28-13/02: zebraidx(4266) [warn] Unknown register type: w
13:54:28-13/02: zebraidx(4266) [warn] Couldn't load attribute set
explain.att [No such file or directory]
13:54:28-13/02: zebraidx(4266) [warn] Directive attset failed for
explain.att
13:54:28-13/02: zebraidx(4266) [log] sorting section 1
13:54:28-13/02: zebraidx(4266) [log] writing section 1
13:54:28-13/02: zebraidx(4266) [log] finished section 1
13:54:28-13/02: zebraidx(4266) [log] Iterations . . .    169
13:54:28-13/02: zebraidx(4266) [log] Distinct words .    126
13:54:28-13/02: zebraidx(4266) [log] Updates. . . . .      0
13:54:28-13/02: zebraidx(4266) [log] Deletions. . . .      0
13:54:28-13/02: zebraidx(4266) [log] Insertions . . .    126
13:54:28-13/02: zebraidx(4266) [log][app2] zebra_register_close
p=0x80b4408
13:54:28-13/02: zebraidx(4266) [log] Records:       0 i/u/d 0/0/0
13:54:28-13/02: zebraidx(4266) [log] user/system: 0/1
13:54:28-13/02: zebraidx(4266) [log][app2] zebra_stop
13:54:28-13/02: zebraidx(4266) [log] zebraidx times:  0.08  0.00  0.01
apache@lorca zebra $ ls
dict-0.mf    gmatch-0.mf  isamcB-0.mf  isamcD-0.mf  isamcF-0.mf
recdA-0.mf  records  tmp
fmatch-0.mf  isamcA-0.mf  isamcC-0.mf  isamcE-0.mf  lock         reci-0.mf
tab      zebra.cfg
apache@lorca zebra $ zebrasrv @:9999
13:54:40-13/02: [log] Adding dynamic Z3950 listener on @:9999
13:54:40-13/02: [log][app2] zebra_start zebra.cfg
13:54:40-13/02: [log] Starting server zebrasrv pid=4268
13:54:40-13/02: [log] Entering event loop.
13:54:48-13/02: zebrasrv(4269) [log] Starting session 1 from tcp:localhost
13:54:48-13/02: zebrasrv(4269) [log] Got initRequest
13:54:48-13/02: zebrasrv(4269) [log] Id:        81/81
13:54:48-13/02: zebrasrv(4269) [log] Name:      PHP/ZOOM-C/YAZ
13:54:48-13/02: zebrasrv(4269) [log] Version:   1.14/2.0.8
13:54:48-13/02: zebrasrv(4269) [log] Negotiated to v3: srch prst
extendedServices namedresults scan sort
13:54:48-13/02: zebrasrv(4269) [log] Got SearchRequest.
13:54:48-13/02: zebrasrv(4269) [log] ResultSet '1'
13:54:48-13/02: zebrasrv(4269) [log] Database 'Default'
13:54:48-13/02: zebrasrv(4269) [log] RPN query. Type: Bib-1
13:54:48-13/02: zebrasrv(4269) [log]  term '1563086573' (general)
13:54:48-13/02: zebrasrv(4269) [log]    use (1=7)
13:54:48-13/02: zebrasrv(4269) [log] ResultSet '1'
13:54:48-13/02: zebrasrv(4269) [log][app2] zebra_register_open rw = 0
useshadow=0 p=0x80bc718,n=,rp=(none)
13:54:48-13/02: zebrasrv(4269) [warn] default.idx [No such file or
directory]
13:54:48-13/02: zebrasrv(4269) [warn] Couldn't open explain.abs [No such
file or directory]
13:54:48-13/02: zebrasrv(4269) [log] resultSetRank
13:54:48-13/02: zebrasrv(4269) [log] term="1563086573" nn=0 type=void
count=0
13:54:48-13/02: zebrasrv(4269) [log] 0 keys, 0 distinct sysnos
13:54:48-13/02: zebrasrv(4269) [log] user/system: 0/0
13:54:48-13/02: zebrasrv(4269) [log] [109] Database unavailable -- Default
13:54:48-13/02: zebrasrv(4269) [log] Connection closed by client
13:54:48-13/02: zebrasrv(4269) [log][app2] zebra_register_close
p=0x80bc718




<Prev in Thread] Current Thread [Next in Thread>