On Wed, Mar 27, 2002 at 02:28:31PM +0000, Hiten Pandya wrote:
> > vaio@juriy[~]> perldoc open
> > /usr/local/bin/pod2man: not found
> > Can't open /var/tmp/tmp.0.lXkGaq: File exists at /usr/bin/perldoc line 351.
> 
> For some odd reason, it doesn't show up, because the $bindir in:
>       src/contrib/perl5/utils/perldoc.PL (line 375)
> 
> is changed to (or is) /usr/local/bin.  You can issue yourself a temp.
> fix by changing the $bindir variable on line 335 of /usr/bin/perldoc to
> /usr/bin. Your final line should look like this:
> 
>       open('/usr/bin', 'pod2man'); ... and the rest ...
> 
> Although you can make the actual change in the perldoc.PL file and then
> rebuild the utilties.. (in /usr/src/contrib/perl5), but this is how it
> can be done.. I solved it this way.. but I may be wrong.. ;)
> 
> After this, you should be able to run 'perldoc open' nicely without
> glitches.. hehe.
> 
The actual problem is how Perl 5.6.1 was configured for FreeBSD.
`grep config_args gnu/usr.bin/perl/libperl/config.SH-elf.i386' for
details.  The problem seems to be due to -Dprefix=/usr/local as
opposed to the right -Dprefix=/usr.

The following minimalistic patch should fix it (i386 version only),
though the proper fix is to re-configure and re-commit all such files:

%%%
Index: config.SH-elf.i386
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/libperl/config.SH-elf.i386,v
retrieving revision 1.22
diff -u -p -u -r1.22 config.SH-elf.i386
--- config.SH-elf.i386  16 Mar 2002 21:36:07 -0000      1.22
+++ config.SH-elf.i386  27 Mar 2002 16:29:29 -0000
@@ -655,8 +655,8 @@ plibpth=''
 pm_apiversion='5.005'
 pmake=''
 pr=''
-prefix='/usr/local'
-prefixexp='/usr/local'
+prefix='/usr'
+prefixexp='/usr'
 privlib='/usr/libdata/perl/5.6.1'
 privlibexp='/usr/libdata/perl/5.6.1'
 prototype='define'
@@ -686,8 +686,8 @@ sPRIu64='"llu"'
 sPRIx64='"llx"'
 sSCNfldbl='"Lf"'
 sched_yield='sched_yield()'
-scriptdir='/usr/local/bin'
-scriptdirexp='/usr/local/bin'
+scriptdir='/usr/bin'
+scriptdirexp='/usr/bin'
 sed='sed'
 seedfunc='srand48'
 selectminbits='32'
%%%


Cheers,
-- 
Ruslan Ermilov          Sysadmin and DBA,
[EMAIL PROTECTED]           Sunbay Software AG,
[EMAIL PROTECTED]          FreeBSD committer,
+380.652.512.251        Simferopol, Ukraine

http://www.FreeBSD.org  The Power To Serve
http://www.oracle.com   Enabling The Information Age

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to