Re: reinstall perl

[email protected] (William)
Newsgroups perl.beginners
Message-ID <[email protected]>
> On Mon, May 26, 2008 at 8:16 PM, Gunnar Hjalmarsson wrote:
> >
> > Do not multi-post!
> > http://groups.google.com/group/comp.lang.perl.misc/msg/b3150d4213c187ca
> 
> Rather than being scolding, could you show any info helpful?
> 
> To OP:
> 
> I have re-installed Perl for many times due to the requirement of
> modperl, without meeting a problem.
> This was the general way I took:
> 
> cd perl-5.8.8
> ./Configure -des -Uusethreads
> make && make test && make install
> cd /usr/bin
> mv perl perl.old
> ln -s /usr/local/bin/perl .
> 
> New perl (ie, the 5.8.8 one) will be installed under /usr/local/bin/perl.
> If you need threads support, don't use the '-Uusethreads' option.
> After installtion,link the new perl to the standard path of /usr/bin/perl.
> 
> Good luck.


Thanks, only you giving the solution, it's funny that the post has reach 13 messages 
http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/e9cbd2f411ab8ae5/b3150d4213c187ca?#b3150d4213c187ca
But most people are just talking about multi-post. Even multi-post I still have not got the solution.


I ran,
./Configure -Dusethreads -Dprefix=~/p/perl/ -Doptimize='-g'
make

But got errors

        Making DynaLoader (static)
make[1]: Entering directory `/home/william/p/perl-5.8.8/ext/
DynaLoader'
Makefile out-of-date with respect to ../../lib/Config.pm ../../
config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
../../miniperl "-I../../lib" "-I../../lib" Makefile.PL
"INSTALLDIRS=perl" "PERL_CORE=1" "LIBPERL_A=libperl.a"
Processing hints file hints/linux.pl
Writing Makefile for DynaLoader
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
false
make[1]: *** [Makefile] Error 1
make[1]: Leaving directory `/home/william/p/perl-5.8.8/ext/
DynaLoader'

Extracting xsubpp (with variable substitutions)
make[1]: Leaving directory `/home/william/p/perl-5.8.8/utils'
        Making x2p stuff
make[1]: Entering directory `/home/william/p/perl-5.8.8/x2p'
You haven't done a "make depend" yet!
make[1]: *** [hash.o] Error 1
make[1]: Leaving directory `/home/william/p/perl-5.8.8/x2p'
make: *** [translators] Error 2 

Even so, I execute
sudo make install

Although it give some more errors, I have the new perl executable in the new directory ~/p/perl

The new interpreter seems to work fine though.


Send instant messages to your online friends http://uk.messenger.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.