[Raleigh-talk] Raleigh-talk Digest, Vol 19, Issue 1

J C jim.x.casey at gmail.com
Thu Jan 15 10:52:33 PST 2009


Hello and thanks!

Both of your replies were absolutely awesome! Thanks so much. I think I was
using #!/root/localperl/bin/perl last night but it was still giving me "Perl
v.5.10.0 required --this is only v.5.8.8", then again I am a newbie and I
might of been doing something wrong. I know I ran the entire install as
root so that might of caused problems too? Permissions seem to give me the
most problems when doing something like this. Regardlesss, I am at work
right now but as soon as I can get out of here I will head home and try *
both* of those options. I'll let you know how it goes. Thanks again, these
are the best responses I've recieved *by far!*

I hope to attend one your meetings very soon as well!

Thanks,
Jim Casey

On Thu, Jan 15, 2009 at 11:16 AM, <raleigh-talk-request at pm.org> wrote:

> Send Raleigh-talk mailing list submissions to
>        raleigh-talk at pm.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.pm.org/mailman/listinfo/raleigh-talk
> or, via email, send a message with subject or body 'help' to
>        raleigh-talk-request at pm.org
>
> You can reach the person managing the list at
>        raleigh-talk-owner at pm.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Raleigh-talk digest..."
>
>
> Today's Topics:
>
>   1. Perl Newbie question about upgrade from Perl 5.8.8        to 5.10 (J
> C)
>   2. Re: Perl Newbie question about upgrade from Perl  5.8.8 to
>      5.10 (Rob West)
>   3. Re: Perl Newbie question about upgrade from Perl  5.8.8 to
>      5.10 (Mike South)
>   4. Re: Perl Newbie question about upgrade from Perl  5.8.8 to
>      5.10 (Rob West)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 14 Jan 2009 23:36:51 -0500
> From: "J C" <jim.x.casey at gmail.com>
> Subject: [Raleigh-talk] Perl Newbie question about upgrade from Perl
>        5.8.8   to 5.10
> To: raleigh-talk at pm.org
> Message-ID:
>        <107395a40901142036nd61eb7dsdb38b3d753974267 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I bought the O'Reilly 5th edition Learning Perl the other day and it's
> great. I am new to programming and Perl as well. I do know my way
> around Linux but I am having problems upgrading from the version that
> was on my OS (Cent OS 5.2) to 5.10. I downloaded Perl 5.10 from
> http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.10.0.tar.gz, then
> tar -xvzf perl-5.10.0.tar.gz the package in /usr/local/bin   I then
> followed the README guide that said to:
>
> ./Configure -des -Dprefix=$HOME/localperl
>  make test
>  make install
>
> Now, the first command was probably my mistake because I really have
> no idea what that would do. I figured that I could simply use the
> shebang after make test and make install was done "doing it's thing"
> and type out #!*/usr/local/bin/perl-5.10.0 or  #!/usr/local/bin/*
> perl-5.10 and everything was work just fine and I would be using Perl
> 5.10 This obviously is not the case as now it tells me I still have
> 5.8.8 installed. I know this is probably a very common problem and
> I'll try and do all the research I can when I find the time but if any
> of you that are a lot more experienced could help me out and "put me
> in the right direction" that would be great.
>
> Here is the code from the book (page 68) I am trying to run:
>
> ---------------------------------------------------------------------------------------
> #!/usr/local/bin/perl-5.10.0     # I've also used perl5.10 and every
> other thing I could think of...
> use 5.010;
> use strict;
>
> sub marine {
>        $n += 1;
>        print "Hello, sailor number $n!\n";
> }
>
> &marine;
> &marine;
> &marine;
>
> ----------------------------------------------------------------------------------------
> And here is the output I am getting when I try running it:
> Perl v.5.10.0 required --this is only v.5.8.8
>
> ----------------------------------------------------------------------------------------
>
> I've also noticed that now there's a perl5.10.0 located in the */root/*
> localperl/bin so I am sure it has something to do with the
> above .Configure command. Can anyone give me some advice on how to get
> 5.10 working? I feel like I am close, but nothing so far.
>
> thanks in advance,
> jim
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.pm.org/pipermail/raleigh-talk/attachments/20090114/d43e1fb3/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 15 Jan 2009 09:16:32 -0500
> From: Rob West <robertfwest at gmail.com>
> Subject: Re: [Raleigh-talk] Perl Newbie question about upgrade from
>        Perl    5.8.8 to 5.10
> To: raleigh-talk at pm.org
> Message-ID:
>        <a9e5040901150616o6c93f4e9k443e6aa98c1afb30 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Welcome Jim,
>
> I think what you need to do is set prefix to /usr/local if you want perl
> installed to /usr/local/bin.
>
> So, the configure command would change to:
>
> ./Configure -des -Dprefix=/usr/local
>
> Your other option is to leave perl installed at /root/localperl and change
> the shebang line to:
> #!/root/localperl/bin/perl
>
> I hope this helps,
> Rob
>
> On Wed, Jan 14, 2009 at 11:36 PM, J C <jim.x.casey at gmail.com> wrote:
>
> > Hi,
> >
> > I bought the O'Reilly 5th edition Learning Perl the other day and it's
> > great. I am new to programming and Perl as well. I do know my way
> > around Linux but I am having problems upgrading from the version that
> >
> > was on my OS (Cent OS 5.2) to 5.10. I downloaded Perl 5.10 from
> > http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.10.0.tar.gz, then
> >
> > tar -xvzf perl-5.10.0.tar.gz the package in /usr/local/bin   I then
> > followed the README guide that said to:
> >
> > ./Configure -des -Dprefix=$HOME/localperl
> >   make test
> >   make install
> >
> > Now, the first command was probably my mistake because I really have
> >
> > no idea what that would do. I figured that I could simply use the
> > shebang after make test and make install was done "doing it's thing"
> > and type out #!*/usr/local/bin/perl-5.10.0 or  #!/usr/local/bin/*
> >
> > perl-5.10 and everything was work just fine and I would be using Perl
> > 5.10 This obviously is not the case as now it tells me I still have
> > 5.8.8 installed. I know this is probably a very common problem and
> > I'll try and do all the research I can when I find the time but if any
> >
> > of you that are a lot more experienced could help me out and "put me
> > in the right direction" that would be great.
> >
> > Here is the code from the book (page 68) I am trying to run:
> >
> ---------------------------------------------------------------------------------------
> >
> > #!/usr/local/bin/perl-5.10.0     # I've also used perl5.10 and every
> > other thing I could think of...
> > use 5.010;
> > use strict;
> >
> > sub marine {
> >       $n += 1;
> >       print "Hello, sailor number $n!\n";
> >
> > }
> >
> > &marine;
> > &marine;
> > &marine;
> >
> ----------------------------------------------------------------------------------------
> > And here is the output I am getting when I try running it:
> > Perl v.5.10.0 required --this is only v.5.8.8
> >
> >
> ----------------------------------------------------------------------------------------
> >
> > I've also noticed that now there's a perl5.10.0 located in the */root/*
> >
> > localperl/bin so I am sure it has something to do with the
> > above .Configure command. Can anyone give me some advice on how to get
> > 5.10 working? I feel like I am close, but nothing so far.
> >
> > thanks in advance,
> >
> > jim
> >
> >
> > _______________________________________________
> > Raleigh-talk mailing list
> > Raleigh-talk at pm.org
> > http://mail.pm.org/mailman/listinfo/raleigh-talk
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.pm.org/pipermail/raleigh-talk/attachments/20090115/57698d25/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 15 Jan 2009 08:31:03 -0600
> From: Mike South <msouth at gmail.com>
> Subject: Re: [Raleigh-talk] Perl Newbie question about upgrade from
>        Perl    5.8.8 to 5.10
> To: raleigh-talk at pm.org
> Message-ID:
>        <c56d3710901150631m628204f6ye03470fa55922f42 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, Jan 14, 2009 at 10:36 PM, J C <jim.x.casey at gmail.com> wrote:
> > Hi,
> >
> > I bought the O'Reilly 5th edition Learning Perl the other day and it's
> > great. I am new to programming and Perl as well. I do know my way
> > around Linux but I am having problems upgrading from the version that
> >
> > was on my OS (Cent OS 5.2) to 5.10. I downloaded Perl 5.10 from
> > http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.10.0.tar.gz, then
> >
> > tar -xvzf perl-5.10.0.tar.gz the package in /usr/local/bin   I then
> > followed the README guide that said to:
> >
> > ./Configure -des -Dprefix=$HOME/localperl
> >   make test
> >   make install
> >
> > Now, the first command was probably my mistake because I really have
> >
> > no idea what that would do. I figured that I could simply use the
> > shebang after make test and make install was done "doing it's thing"
> > and type out #!/usr/local/bin/perl-5.10.0 or  #!/usr/local/bin/
> >
> > perl-5.10 and everything was work just fine and I would be using Perl
> > 5.10 This obviously is not the case as now it tells me I still have
> > 5.8.8 installed. I know this is probably a very common problem and
> > I'll try and do all the research I can when I find the time but if any
> >
> > of you that are a lot more experienced could help me out and "put me
> > in the right direction" that would be great.
> >
> > Here is the code from the book (page 68) I am trying to run:
> >
> ---------------------------------------------------------------------------------------
> >
> > #!/usr/local/bin/perl-5.10.0     # I've also used perl5.10 and every
> > other thing I could think of...
> > use 5.010;
> > use strict;
> >
> > sub marine {
> >       $n += 1;
> >       print "Hello, sailor number $n!\n";
> >
> > }
> >
> > &marine;
> > &marine;
> > &marine;
> >
> ----------------------------------------------------------------------------------------
> > And here is the output I am getting when I try running it:
> > Perl v.5.10.0 required --this is only v.5.8.8
> >
> >
> ----------------------------------------------------------------------------------------
> >
> > I've also noticed that now there's a perl5.10.0 located in the /root/
> >
> > localperl/bin so I am sure it has something to do with the
> > above .Configure command.
>
> You are right--what you have done is said "I want to make an
> installation of perl 5.10 in /root/localperl".  The idea of that
> configuration option (which would normally be done as a regular user)
> is that you can experiment with the new version of perl in your own
> local directory (hence the $HOME) even if you don't have root access
> to the machine you are working on.
>
> >Can anyone give me some advice on how to get
> > 5.10 working? I feel like I am close, but nothing so far.
>
> Well, one thing you can try, just to see if what you did worked, is
> change the shebang line in your test script to
>
> #!/root/localperl/bin/perl
>
> But I'm not sure what the permissions on /root/localperl are going to
> be.  So, unless you run it as root, you might just get an error that
> says you don't have permission to run that.  The idea of that
> configure command is that you run the configure command as the user
> you are going to run perl as.
>
> You might just want to start over and do this as a regular user.  Make
> a directory called src/ in your home directory, copy
> perl-5.10.0.tar.gz to that directory, and unpack it there (tar xzvf as
> you did before).  Then run the configure, make, make install just like
> you did before.  This time you should end up with a directory called
>
> /home/jcasey/localperl/bin
>
> and it will have the perl 5.10 executable in it.
>
> So a shebang line of
>
> #!/home/jcasey/localperl/bin/perl
>
> should then work.
>
> You might want to just make sure that it works and everything before
> trying to overwrite the perl on your system, which the system may be
> using to get things done.
>
> [Rob's answer came in as I was writing this.]
>
> The way Rob suggested, rerunning configure with prefix set to
> /usr/local/, will put 5.10 in /usr/local/bin/perl.  I think CentOS has
> perl in /usr/bin/perl.  If that's right (you can check with "which
> perl"), and you do what Rob suggests, you will get 5.10 in
> /usr/local/bin/perl, and the system can keep using the perl it was
> already using, in /usr/bin/perl.  That should be a pretty safe option,
> too, and is probably the normal way to do things.
>
> As the other perl mongers can tell you, I never come around to the
> normal way of doing things except by excessively circuitous routes.
>
> mike
>
> >
> > thanks in advance,
> >
> > jim
> >
> > _______________________________________________
> > Raleigh-talk mailing list
> > Raleigh-talk at pm.org
> > http://mail.pm.org/mailman/listinfo/raleigh-talk
> >
> >
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 15 Jan 2009 10:16:37 -0500
> From: Rob West <robertfwest at gmail.com>
> Subject: Re: [Raleigh-talk] Perl Newbie question about upgrade from
>        Perl    5.8.8 to 5.10
> To: raleigh-talk at pm.org
> Message-ID:
>        <a9e5040901150716q443948e6hdafd7fbb96dcae21 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> CentOS definitely has its system perl executable in /usr/bin.
>
> As Mike suggested, you should probably be a normal user for doing the
> configure and make test. You'll need to sudo the make install if you want
> to
> put it in /usr/local but not if under $HOME.
>
> Good luck,
> Rob
>
> On Thu, Jan 15, 2009 at 9:31 AM, Mike South <msouth at gmail.com> wrote:
>
> > On Wed, Jan 14, 2009 at 10:36 PM, J C <jim.x.casey at gmail.com> wrote:
> > > Hi,
> > >
> > > I bought the O'Reilly 5th edition Learning Perl the other day and it's
> > > great. I am new to programming and Perl as well. I do know my way
> > > around Linux but I am having problems upgrading from the version that
> > >
> > > was on my OS (Cent OS 5.2) to 5.10. I downloaded Perl 5.10 from
> > > http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.10.0.tar.gz, then
> > >
> > > tar -xvzf perl-5.10.0.tar.gz the package in /usr/local/bin   I then
> > > followed the README guide that said to:
> > >
> > > ./Configure -des -Dprefix=$HOME/localperl
> > >   make test
> > >   make install
> > >
> > > Now, the first command was probably my mistake because I really have
> > >
> > > no idea what that would do. I figured that I could simply use the
> > > shebang after make test and make install was done "doing it's thing"
> > > and type out #!/usr/local/bin/perl-5.10.0 or  #!/usr/local/bin/
> > >
> > > perl-5.10 and everything was work just fine and I would be using Perl
> > > 5.10 This obviously is not the case as now it tells me I still have
> > > 5.8.8 installed. I know this is probably a very common problem and
> > > I'll try and do all the research I can when I find the time but if any
> > >
> > > of you that are a lot more experienced could help me out and "put me
> > > in the right direction" that would be great.
> > >
> > > Here is the code from the book (page 68) I am trying to run:
> > >
> >
> ---------------------------------------------------------------------------------------
> > >
> > > #!/usr/local/bin/perl-5.10.0     # I've also used perl5.10 and every
> > > other thing I could think of...
> > > use 5.010;
> > > use strict;
> > >
> > > sub marine {
> > >       $n += 1;
> > >       print "Hello, sailor number $n!\n";
> > >
> > > }
> > >
> > > &marine;
> > > &marine;
> > > &marine;
> > >
> >
> ----------------------------------------------------------------------------------------
> > > And here is the output I am getting when I try running it:
> > > Perl v.5.10.0 required --this is only v.5.8.8
> > >
> > >
> >
> ----------------------------------------------------------------------------------------
> > >
> > > I've also noticed that now there's a perl5.10.0 located in the /root/
> > >
> > > localperl/bin so I am sure it has something to do with the
> > > above .Configure command.
> >
> > You are right--what you have done is said "I want to make an
> > installation of perl 5.10 in /root/localperl".  The idea of that
> > configuration option (which would normally be done as a regular user)
> > is that you can experiment with the new version of perl in your own
> > local directory (hence the $HOME) even if you don't have root access
> > to the machine you are working on.
> >
> > >Can anyone give me some advice on how to get
> > > 5.10 working? I feel like I am close, but nothing so far.
> >
> > Well, one thing you can try, just to see if what you did worked, is
> > change the shebang line in your test script to
> >
> > #!/root/localperl/bin/perl
> >
> > But I'm not sure what the permissions on /root/localperl are going to
> > be.  So, unless you run it as root, you might just get an error that
> > says you don't have permission to run that.  The idea of that
> > configure command is that you run the configure command as the user
> > you are going to run perl as.
> >
> > You might just want to start over and do this as a regular user.  Make
> > a directory called src/ in your home directory, copy
> > perl-5.10.0.tar.gz to that directory, and unpack it there (tar xzvf as
> > you did before).  Then run the configure, make, make install just like
> > you did before.  This time you should end up with a directory called
> >
> > /home/jcasey/localperl/bin
> >
> > and it will have the perl 5.10 executable in it.
> >
> > So a shebang line of
> >
> > #!/home/jcasey/localperl/bin/perl
> >
> > should then work.
> >
> > You might want to just make sure that it works and everything before
> > trying to overwrite the perl on your system, which the system may be
> > using to get things done.
> >
> > [Rob's answer came in as I was writing this.]
> >
> > The way Rob suggested, rerunning configure with prefix set to
> > /usr/local/, will put 5.10 in /usr/local/bin/perl.  I think CentOS has
> > perl in /usr/bin/perl.  If that's right (you can check with "which
> > perl"), and you do what Rob suggests, you will get 5.10 in
> > /usr/local/bin/perl, and the system can keep using the perl it was
> > already using, in /usr/bin/perl.  That should be a pretty safe option,
> > too, and is probably the normal way to do things.
> >
> > As the other perl mongers can tell you, I never come around to the
> > normal way of doing things except by excessively circuitous routes.
> >
> > mike
> >
> > >
> > > thanks in advance,
> > >
> > > jim
> > >
> > > _______________________________________________
> > > Raleigh-talk mailing list
> > > Raleigh-talk at pm.org
> > > http://mail.pm.org/mailman/listinfo/raleigh-talk
> > >
> > >
> > _______________________________________________
> > Raleigh-talk mailing list
> > Raleigh-talk at pm.org
> > http://mail.pm.org/mailman/listinfo/raleigh-talk
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.pm.org/pipermail/raleigh-talk/attachments/20090115/99b157c7/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> Raleigh-talk mailing list
> Raleigh-talk at pm.org
> http://mail.pm.org/mailman/listinfo/raleigh-talk
>
>
> End of Raleigh-talk Digest, Vol 19, Issue 1
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/raleigh-talk/attachments/20090115/9a5aaad1/attachment-0001.html>


More information about the Raleigh-talk mailing list