bug-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-GIFT] Problem with gift-add-collection.pl


From: David Squire
Subject: [bug-GIFT] Problem with gift-add-collection.pl
Date: Thu, 12 Jul 2001 13:37:36 +1000

Hi guys,

I've just rebuilt and reinstalled GIFT (a version downloaded in May with some 
of my text feature hacks added - is the version number stored anywhere in the 
downloaded files?), and I have encountered a new problem. When trying to add a 
collection using:

gift-add-collection.pl `pwd`

in the collection directory, I get the error messages:

Name "main::lIndexPefix" used only once: possible typo at 
/home/users/davids/bin/gift-add-collection.pl line 138.
Read on closed filehandle <DOT_FILE> at 
/home/users/davids/bin/gift-add-collection.pl line 58.
Use of uninitialized value at /home/users/davids/bin/gift-add-collection.pl 
line 138.
Could not write file /home/users/davids/GIFT_data/gift-embed-perl-modules.pl at 
/home/users/davids/bin/gift-add-collection.pl line 216.

The script is trying to read a file called .gift-add-collection in $ENV{HOME}, 
which does not exist. What is responsible for creating this file? I would have 
thought that cleaning everything up and doing a new "make install" as I did 
should have created everying necessary.

I note also that line 37 of gift-add-collection.pl, where the filehandle 
<DOT_FILE> should have been opened, failed to report an error because "||" had 
been used where "or" was needed. If it is replaced with

open DOT_FILE,"$ENV{HOME}/.gift-add-collection" or print STDERR "File 
$ENV{HOME}/.gift-add-collection could not be opened ($!)\n";

the output/error message is:


Name "main::lIndexPefix" used only once: possible typo at 
/home/users/davids/bin/gift-add-collection.pl line 138.
File /home/users/davids/.gift-add-collection could not be opened (No such file 
or directory)
Read on closed filehandle <DOT_FILE> at 
/home/users/davids/bin/gift-add-collection.pl line 58.
Use of uninitialized value at /home/users/davids/bin/gift-add-collection.pl 
line 138.
Could not write file /home/users/davids/GIFT_data/gift-embed-perl-modules.pl at 
/home/users/davids/bin/gift-add-collection.pl line 216.

Cheers,

David


--
Dr. David McG. Squire
Computer Science and Software Engineering, Monash University, Australia
http://www.csse.monash.edu.au/~davids/   http://viper.unige.ch/
Do/Don't want HTML mail? Let me know.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]