[Koha] Re: Error at Install.pm line 661 during install

Mike D. dalgity at htl.net
Sat Jan 14 17:28:01 NZDT 2006


Mike D. <dalgity at ...> writes:

...
> 
> The Problem: I run "perl installer.pl" and koha asks if I want to begin. I 
> answer "enter", "Y", or "y". After this prompt it no longer asks for input 
and 
> it's as if I've hit enter at every prompt and I get this error: Use of 
> uninitialized value in scalar chomp at Install.pm line 661, <STDIN> line 1.
> 
> It ends up in an endless loop in the following steps:
>  DATABASE PASSWORD 
> Please provide a good password for the user kohaadmin.
> IMPORTANT: You can log in using this user and password at any time.
> Password for database user kohaadmin: Use of uninitialized value in scalar 
> chomp at Install.pm line 661, <STDIN> line 1.
> 
>  BLANK PASSWORD 
> You must not use a blank password for your MySQL user.
> Press <ENTER> to try again: 
> 
... 
> Summary:
> I've had Koha installed and working (without Apache chroot) several times. 
I've 
> installed both from the console and via ssh and have the same problem. I've 
> installed on two different computers. I get the error: Use of uninitialized 
> value in scalar chomp at Install.pm line 661, <STDIN> line 1.
> 



Well I guess I'm the only one running Koha on OpenBSD. I did get one off-list 
response mentioning that a pound sign in the password may cause problems 
(thanks Cindy) but that wasn't my issue. I had a couple hours to spare before 
University took over my life again and made some progress.

The problem is caused by yaz version 2.1.10. The installer works fine with yaz 
2.1.8. I'm compiling yaz from source as there is no premade port or package for 
OpenBSD (that I could find). The Koha install starts off properly; asking for 
and accepting the first confirmation input. After the perl module check though 
it behaves badly, almost as if the file handle to <STDIN> has been closed. I 
tried uninstalling (make uninstall) Yaz 2.1.10 and then installing Yaz 2.1.8 on 
my production server but that doesn't undo whatever causes the problem.

I wanted to determine if it was an OpenBSD specific issue so I installed RedHat 
Fedora Core 2 which was the closest *nix install cd at the time. I compiled yaz 
2.1.10 from source. I checked ftp.indexdata.dk/pub/yaz for the latest RedHat 
rpms which are 2.1.8 so I'm assuming they work. The Koha installer DOES appear 
to work properly on RH FC2 with Yaz 2.1.10 compiled from source.

I tried following the code through installer.pl and Install.pm but I don't 
really know perl well. Can anyone guess how Yaz is messing up <STDIN> during 
the perl module check? Is this likely a issue with Yaz and should I take this 
issue to their mail list?

Thanks,
Mike



More information about the Koha mailing list