delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/04/10/14:45:04

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: perl testing
Date: Thu, 10 Apr 2003 19:30:39 +0100
Lines: 87
Message-ID: <3E95B84F.669E2AC4@phekda.freeserve.co.uk>
References: <mx3la.4937$oJ2 DOT 742778 AT news20 DOT bellglobal DOT com> <3E953319 DOT 397195E4 AT phekda DOT freeserve DOT co DOT uk> <jPfla.1732$1b1 DOT 223907 AT news20 DOT bellglobal DOT com>
NNTP-Posting-Host: 62.136.93.208
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 1049999544 25121 62.136.93.208 (10 Apr 2003 18:32:24 GMT)
NNTP-Posting-Date: 10 Apr 2003 18:32:24 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Ian wrote:
[snip]
> perl Makefile.PL &> file.txt
> ==========================================
> *** Note:
>     The optional PlRPC-modules (RPC::PlServer etc) are not installed.
>     If you want to use the DBD::Proxy driver and DBI::ProxyServer
>     modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
>     Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
>     You can install them any time after installing the DBI.
>     You do *not* need these modules for typical DBI usage.
> 
> Optional modules are available from any CPAN mirror, in particular
>     http://www.perl.com/CPAN/modules/by-module
>     http://www.perl.org/CPAN/modules/by-module
>     ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module
> 
> Creating extra DBI::PurePerl test: t/zz_01basics_pp.t
> Creating extra DBI::PurePerl test: t/zz_02dbidrv_pp.t
> Creating extra DBI::PurePerl test: t/zz_03hleak_pp.t
> Creating extra DBI::PurePerl test: t/zz_04mods_pp.t
> Creating extra DBI::PurePerl test: t/zz_05thrclone_pp.t
> Creating extra DBI::PurePerl test: t/zz_06attrs_pp.t
> Creating extra DBI::PurePerl test: t/zz_07kids_pp.t
> Creating extra DBI::PurePerl test: t/zz_08keeperr_pp.t
> Creating extra DBI::PurePerl test: t/zz_10examp_pp.t
> Creating extra DBI::PurePerl test: t/zz_15array_pp.t
> Creating extra DBI::PurePerl test: t/zz_20meta_pp.t
> Creating extra DBI::PurePerl test: t/zz_30subclass_pp.t
> Creating extra DBI::PurePerl test: t/zz_40profile_pp.t
> Creating extra DBI::PurePerl test: t/zz_41prof_dump_pp.t
> Creating extra DBI::PurePerl test: t/zz_42prof_data_pp.t
> Creating extra DBI::PurePerl test: t/zz_60preparse_pp.t
> Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t
> ***This is where it is failing.  Ian.
> Unable to find a perl 5 (by these names: E:/djgpp/bin/perl.exe miniperl perl
> perl5 perl5_6_1, in these dirs: e:\djgpp\bin e:\djgpp\bin\sh
> e:\djgpp\bin\lynx283 e:\djgpp\bin\wget c:\windows\command
> /dev/env/DJDIR/bin)
> Bad command or file name
> Bad command or file name

Hmmm, maybe this is a shell issue. Maybe it's running a command using Perl's
system call that fails, because SHELL in the environment is set to
COMMAND.COM.

> Writing Makefile for DBI
> 
>     Remember to actually *read* the README file!
>     Use  'make' to build the software (dmake or nmake on Windows).
>     Then 'make test' to execute self tests.
>     Then 'make install' to install the DBI and then delete this working
>     directory before unpacking and building any DBD::* drivers.
> 
> ===========================================================

Does it work if you set SHELL to point to bash? It looks like DJGPP is in
e:\djgpp\bin on your system, so try this before running "perl Makefile.PL":

     set SHELL=e:\djgpp\bin\bash.exe

from COMMAND.COM or this from bash:

     export SHELL=/dev/env/DJDIR/bin/bash.exe

> >
> > I don't know of any tests to check the Perl installation. Perhaps using
> > autoconf or automake would be a good test. Or you could try something like
> > this from bash:
> >
> >     echo foo > t.t
> >     perl -e 'use FileHandle; $fh = new FileHandle("<t.t"); while (<$fh>) {
> > print; } $fh->close();'
> >
> > The perl command should all be on one line. It should display "foo". Maybe
> > if there was a problem with extracting the Perl distribution, you will get
> > an error. (FileHandle.pm does not fit exactly into 8+3, so this may
> > highlight any problems with extraction of the Perl binary archive.)

Did you try running the commands I suggested above?

Regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019