From jim.x.casey at gmail.com Wed Jan 14 20:36:51 2009
From: jim.x.casey at gmail.com (J C)
Date: Wed, 14 Jan 2009 23:36:51 -0500
Subject: [Raleigh-talk] Perl Newbie question about upgrade from Perl 5.8.8
to 5.10
Message-ID: <107395a40901142036nd61eb7dsdb38b3d753974267@mail.gmail.com>
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:
From robertfwest at gmail.com Thu Jan 15 06:16:32 2009
From: robertfwest at gmail.com (Rob West)
Date: Thu, 15 Jan 2009 09:16:32 -0500
Subject: [Raleigh-talk] Perl Newbie question about upgrade from Perl
5.8.8 to 5.10
In-Reply-To: <107395a40901142036nd61eb7dsdb38b3d753974267@mail.gmail.com>
References: <107395a40901142036nd61eb7dsdb38b3d753974267@mail.gmail.com>
Message-ID:
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 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:
From msouth at gmail.com Thu Jan 15 06:31:03 2009
From: msouth at gmail.com (Mike South)
Date: Thu, 15 Jan 2009 08:31:03 -0600
Subject: [Raleigh-talk] Perl Newbie question about upgrade from Perl
5.8.8 to 5.10
In-Reply-To: <107395a40901142036nd61eb7dsdb38b3d753974267@mail.gmail.com>
References: <107395a40901142036nd61eb7dsdb38b3d753974267@mail.gmail.com>
Message-ID:
On Wed, Jan 14, 2009 at 10:36 PM, J C 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
>
>
From robertfwest at gmail.com Thu Jan 15 07:16:37 2009
From: robertfwest at gmail.com (Rob West)
Date: Thu, 15 Jan 2009 10:16:37 -0500
Subject: [Raleigh-talk] Perl Newbie question about upgrade from Perl
5.8.8 to 5.10
In-Reply-To:
References: <107395a40901142036nd61eb7dsdb38b3d753974267@mail.gmail.com>
Message-ID:
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 wrote:
> On Wed, Jan 14, 2009 at 10:36 PM, J C 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:
From jim.x.casey at gmail.com Thu Jan 15 10:52:33 2009
From: jim.x.casey at gmail.com (J C)
Date: Thu, 15 Jan 2009 13:52:33 -0500
Subject: [Raleigh-talk] Raleigh-talk Digest, Vol 19, Issue 1
In-Reply-To:
References:
Message-ID: <107395a40901151052p44456fe8n453854e0fe8a44a@mail.gmail.com>
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, 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"
> 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
> 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:
>
> 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 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
> 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:
>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, Jan 14, 2009 at 10:36 PM, J C 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
> 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:
>
> 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 wrote:
>
> > On Wed, Jan 14, 2009 at 10:36 PM, J C 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:
From cowanb at mindspring.com Thu Jan 29 15:37:17 2009
From: cowanb at mindspring.com (Bill Cowan)
Date: Thu, 29 Jan 2009 18:37:17 -0500
Subject: [Raleigh-talk] Anyone work at ChannelAdvisor?
Message-ID: <49823DAD.3040005@mindspring.com>
I was looking at interesting job postings for database-related jobs and
looking for some help.
Can anyone help me with more information? Job stability? Tech environment?
Submit my resume on employee referral?
Thanks, Bill
-----------------------------------------------------------------------
Bill Cowan
Email: cowanb at mindspring.com
Phone: 919.210.4910
From jason at purdy.info Thu Jan 29 19:03:15 2009
From: jason at purdy.info (Jason Purdy)
Date: Thu, 29 Jan 2009 22:03:15 -0500
Subject: [Raleigh-talk] Anyone work at ChannelAdvisor?
In-Reply-To: <49823DAD.3040005@mindspring.com>
References: <49823DAD.3040005@mindspring.com>
Message-ID: <3c4d9f1f0901291903y79053203ue2d91a1217d577ff@mail.gmail.com>
You should contact this guy:
http://www.altonymous.com/default/today-is-a-new-day
Peace,
Jason
On Thu, Jan 29, 2009 at 6:37 PM, Bill Cowan wrote:
> I was looking at interesting job postings for database-related jobs and
> looking for some help.
> Can anyone help me with more information? Job stability? Tech environment?
> Submit my resume on employee referral?
>
> Thanks, Bill
>
> -----------------------------------------------------------------------
> Bill Cowan
> Email: cowanb at mindspring.com
> Phone: 919.210.4910
>
> _______________________________________________
> 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: