Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^3: Installing Perl 5.10.0: problems with ./Configure

by almut (Canon)
on May 07, 2008 at 15:34 UTC ( #685240=note: print w/replies, xml ) Need Help??

in reply to Re^2: Installing Perl 5.10.0: problems with ./Configure
in thread Installing Perl 5.10.0: problems with ./Configure

... 'DOS style line breaks'. Could this be the problem?

Actually, yes, playing some more with this (in particular with a csh compatible shell), I do in fact obtain similar effects when the entire script has DOS/Windows style line endings... (just fixing the problem on the shebang line is not sufficient).  Not sure how those \r got in the file... did you edit Configure prior to running it initially?  Anyhow, this should fix the problem (at least with this very file...):

perl -i -pe 's/\r//g' ./Configure

(Well, if you already have any perl installed, that is... Otherwise, look for some tool like dos2unix, or similar)

Replies are listed 'Best First'.
Re^4: Installing Perl 5.10.0: problems with ./Configure
by why_bird (Pilgrim) on May 07, 2008 at 15:47 UTC

    Ah, lovely, thankyou---I didn't know what the 'DOS style line break' character was in perl. I've already got Perl 5.8.5. I tried to install 5.10.0 back when I started to learn Perl but gave up pretty quickly when I thought I'd need root permissions. I thought it'd be good to have a play around with it now that I'm a bit more experienced.

    Those are my principles. If you don't like them I have others.
    -- Groucho Marx
      If the problem was DOS line endings, either you got the source from a bad place or you did something bad in extracting it. Where did you get it and what did you do to extract it?

        I tried two---I got one from CPAN, and I'm not sure where the other one was from. I extracted it using Winzip (I've had problems trying to extract Perl modules using tar before, so this is the method I've been using for a while). It's odd because I use the exact same method when installing Perl modules and have never had this problem or anything similar.
        I'll give tar another go and see if that solves it.

        Update: Awesome---using tar to unzip and extract seems to have fixed it :) Thanks. V strange though.
        Those are my principles. If you don't like them I have others.
        -- Groucho Marx

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://685240]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-10-01 06:39 GMT
Find Nodes?
    Voting Booth?

    No recent polls found