Subject: | Broken on Ubuntu Feisty x86_64 |
Date: | Sun, 24 Jun 2007 05:35:31 -0400 |
To: | bug-File-Locate [...] rt.cpan.org |
From: | Emmet Caulfield <emmet [...] netrogen.com> |
Hi,
File::Locate (0.62 from CPAN, all tests pass) is broken on Ubuntu
Feisty x86_64. It simply returns nothing, but "does something" since
there is a noticeable delay, similar to what one would expect for
slocate running the same search, before no output occurs.
After encountering the problem running I added myself to the 'slocate'
group so I could access slocate's database without any messing around
(i.e. using 'sudo'). Using 'sudo' doesn't help :(
Diagnostic and demonstration commands follow.
HTH,
Emmet.
$ uname -a
Linux scrat 2.6.20-16-generic #2 SMP Thu Jun 7 19:00:28 UTC 2007 x86_64 GNU/Linux
$ perl --version | grep ^This
This is perl, v5.8.8 built for x86_64-linux-gnu-thread-multi
$ perl -MFile::Locate -e 'print "$File::Locate::VERSION\n"'
0.62
$ export LOCATE_PATH='/var/lib/slocate/slocate.db'
$ locate .mp3 | wc -l
857
$ locate .mp3 | head -n+1
/home/emmet/Desktop/GVRProject/anim/flight.mp3
$ perl -MFile::Locate -e 'print locate ".mp3"'
(delay, then no output)