Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the File-Which CPAN distribution.

Report information
The Basics
Id: 39346
Status: rejected
Priority: 0/
Queue: File-Which

People
Owner: Nobody in particular
Requestors: sflitman [...] xenoscience.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.05
Fixed in: (no value)



Subject: fails to see /usr/local/bin when running under a subshell
When running pdf2ocr from PDF::OCR in a subshell File::Which could not locate tesseract which I had installed in /usr/local/bin. After some sleuthing, I discovered that at line 74 it fails to load it into @path, so I added this line after line 74: unshift @path, '/usr/local/bin' if -d '/usr/local/bin'; This, I freely admit, is a huge kludge. Maybe File::Spec has a problem instead? I'll report this there too. SSF
Subject: fails to see /usr/local/bin when running under a subshell
When running pdf2ocr from PDF::OCR in a subshell File::Which could not locate tesseract which I had installed in /usr/local/bin. After some sleuthing, I discovered that at line 74 it fails to load it into @path, so I added this line after line 74: unshift @path, '/usr/local/bin' if -d '/usr/local/bin'; This, I freely admit, is a huge kludge. Maybe File::Spec has a problem instead? I'll report this there too. This is under Perl 5.8.0 on Red Hat 8 and in distribution File-Which-0.5 SSF
On 2008-09-16 21:54:16, sflitman wrote: Show quoted text
> When running pdf2ocr from PDF::OCR in a subshell File::Which could not > locate tesseract which I had installed in /usr/local/bin. After some > sleuthing, I discovered that at line 74 it fails to load it into @path, > so I added this line after line 74: > > unshift @path, '/usr/local/bin' if -d '/usr/local/bin'; > > This, I freely admit, is a huge kludge. Maybe File::Spec has a problem > instead? I'll report this there too. > > This is under Perl 5.8.0 on Red Hat 8 and in distribution File-Which-0.5 > SSF >
It sounds to me like your subshell isn't setting $PATH properly. There's nothing this module can do about that, and modifying $PATH inside the module would be very very wrong.
I do not believe this is a bug in this module.