Trouble installing from CPAN

Not sure if this is the right place to ask, if not I'll be happy to be
redirected.

I installed an updated OS recently (Mandriva 2007) and have had trouble
installing perl modules since. I initially had a lot of 'no rule to make
target' messages whether installing via CPAN or just compiling the modules
manually but got that fixed by installing the perl-devel RPM.

I'm still getting lots of trouble with it. Here's a typical error report,
but I get similar ones with every module I try to install (via cpan as
root):

All tests successful, 3 tests skipped.
Files=4, Tests , 1 wallclock secs ( 0.19 cusr + 0.07 csys = 0.26 CPU)
/usr/bin/make test -- OK
Running make install
Manifying blib/man3/XSLoader.3pm
Writing /usr/lib/perl5/5.8.8/i386-linux/auto/XSLoader/.packlist
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux/perllocal.pod
make: *** No rule to make target `1'. Stop.
/usr/bin/make install 1 -- NOT OK

I've tried trawling Google and Google Groups but haven't found any
solutions. Any ideas appreciated.

--
Regards,

Bob
Bob Mortimer [ Mo, 20 November 2006 17:43 ] [ ID #1542427 ]

Re: Trouble installing from CPAN

Bob Mortimer wrote:
> Not sure if this is the right place to ask, if not I'll be happy to be
> redirected.
>
> I installed an updated OS recently (Mandriva 2007) and have had trouble
> installing perl modules since. I initially had a lot of 'no rule to make
> target' messages whether installing via CPAN or just compiling the modules
> manually but got that fixed by installing the perl-devel RPM.
>
> I'm still getting lots of trouble with it. Here's a typical error report,
> but I get similar ones with every module I try to install (via cpan as
> root):

> make: *** No rule to make target `1'. Stop.
> /usr/bin/make install 1 -- NOT OK

First thought is that it looks like CPAN.pm is erroneously giving an
argument of 1 to the `make install` command. From your CPAN shell,
type:
o conf make_install_arg

If that shows you a [1], you need to clear that argument:
o conf make_install_arg ""
o conf commit

Otherwise, is it possible that whatever the command to `make` is in
CPAN is actually an alias for something like "/usr/bin/make $1 1" ?

Paul Lalli
Paul Lalli [ Mo, 20 November 2006 20:59 ] [ ID #1542430 ]

Re: Trouble installing from CPAN

Paul Lalli wrote:

> Bob Mortimer wrote:
>> Not sure if this is the right place to ask, if not I'll be happy to be
>> redirected.
>>
>> I installed an updated OS recently (Mandriva 2007) and have had trouble
>> installing perl modules since. I initially had a lot of 'no rule to make
>> target' messages whether installing via CPAN or just compiling the
>> modules manually but got that fixed by installing the perl-devel RPM.
>>
>> I'm still getting lots of trouble with it. Here's a typical error report,
>> but I get similar ones with every module I try to install (via cpan as
>> root):
>
>> make: *** No rule to make target `1'. Stop.
>> /usr/bin/make install 1 -- NOT OK
>
> First thought is that it looks like CPAN.pm is erroneously giving an
> argument of 1 to the `make install` command. From your CPAN shell,
> type:
> o conf make_install_arg
> If that shows you a [1],

Yes:
cpan> o conf make_install_arg
make_install_arg [1]

> you need to clear that argument:
> o conf make_install_arg ""
> o conf commit

Yep, that did it and all seems to be working nicely again :-)

Thanks very much Paul, much appreciated.

--
Regards,

Bob
Bob Mortimer [ Mo, 20 November 2006 21:47 ] [ ID #1542431 ]
Perl » comp.lang.perl.modules » Trouble installing from CPAN

Vorheriges Thema: RFC: DBIx::ETL or DBIx::replicate
Nächstes Thema: perl xml check for element closure