Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!kpc.com!mac From: mac@kpc.com (Mike McNamara) Newsgroups: comp.lang.perl Subject: Re: possible problem with perl's TEST Message-ID: <1991Apr14.235128.9435@kpc.com> Date: 14 Apr 91 23:51:28 GMT References: <1991Apr5.172457.10599@infonode.ingr.com> Organization: Kubota Pacific Computer Incoporated, Sanata Clara, CA Lines: 63 In article guy@b11.ingr.com (Guy Streeter) writes: >tensmekl@infonode.ingr.com (Kermit Tensmeyer) writes: > >>I ran Configure, make depend, make TEST and >>got these results > >>| klt 154>perl TEST >>| base/cond......./base/cond.t: print: not found >>| ./base/cond.t: =: not found >... >>| >>When I ran each of the test's individually everything come out hunky-dory. > >>Any Clues? > >Yes. You ran it on a system whose interpretation of the #! magic >number is, let's say, "incomplete". Those error messages come from >the shell, trying to interpret perl code. I can't fault the configure >script, because the #! does work in some cases, but not all (popen()ed >scripts, for example, won't work). > >You need to go into config.sh and change it so it doesn't think #! works. > Actually, perhaps not. On my system, base/cond.t and friends start with #! ./perl instead of #! /bin/perl I do not know if that is how they were shipped, or if running Configure changed them to that way. I copied the perl distribution from uunet, my machine is a Stardent 3000. In actuality, this could be a feature. Usually when you are running TEST, you haven't yet installed perl; hence the test scripts should look in a non standard place. The directory layout is as follows: perl/ perl/perl ... perl/t/ perl/t/TEST ... perl/t/base/ perl/t/cmd/ So how I naively ran the tests was to cd to t and type ./TEST. If I had stayed in the perl directory, and typed t/TEST, then #! ./perl would have worked. Or, a symbolic link could have been made from t/perl to ../perl Just a layout problem... >-- >Guy Streeter >streeter@ingr.com -- +-----------+-------------------------------------------------------------------+ |mac@kpc.com| Increasing Software complexity lets us sell Mainframes as | | | personal computers. Carry on, X windows/Postscript/emacs/CASE!! | +-----------+-------------------------------------------------------------------+