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