Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Install error with Bricolage 1.10.4

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


jean-michel.caricand at laposte

Apr 17, 2008, 10:46 AM

Post #1 of 10 (494 views)
Permalink
Install error with Bricolage 1.10.4

Hi,

I want to install Bricolage 1.10.4 but when I get this error :

debian:~/bricolage-1.10.4# make install
/usr/bin/perl inst/is_root.pl
/usr/bin/perl inst/cpan.pl


==> Installing Modules From CPAN <==

Can't locate object method "new" via package "CPAN::Queue" at inst/cpan.pl line 166.
make: *** [cpan] Error 255
debian:~/bricolage-1.10.4#

Any ideas ?

Thanks.

- Jean-Michel


Créez votre adresse électronique prénom.nom[at]laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


david at kineticode

Apr 17, 2008, 11:09 AM

Post #2 of 10 (486 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

On Apr 17, 2008, at 10:46, Jean-Michel Caricand wrote:

> I want to install Bricolage 1.10.4 but when I get this error :
>
> debian:~/bricolage-1.10.4# make install
> /usr/bin/perl inst/is_root.pl
> /usr/bin/perl inst/cpan.pl
>
>
> ==> Installing Modules From CPAN <==
>
> Can't locate object method "new" via package "CPAN::Queue" at inst/
> cpan.pl line 166.
> make: *** [cpan] Error 255
> debian:~/bricolage-1.10.4#

What version of Perl? Is it a package-installed Perl (RPM, .deb,
etc.), or compiled?

What does this output?

% perl -MCPAN -le 'print CPAN->VERSION'

Best,

David


jean-michel.caricand at laposte

Apr 17, 2008, 11:14 AM

Post #3 of 10 (483 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

> Message du 17/04/08 20:09
> De : "David E. Wheeler" <david[at]kineticode.com>
> A : users[at]lists.bricolage.cc
> Copie à :
> Objet : Re: Install error with Bricolage 1.10.4
>
> On Apr 17, 2008, at 10:46, Jean-Michel Caricand wrote:
>
> > I want to install Bricolage 1.10.4 but when I get this error :
> >
> > debian:~/bricolage-1.10.4# make install
> > /usr/bin/perl inst/is_root.pl
> > /usr/bin/perl inst/cpan.pl
> >
> >
> > ==> Installing Modules From CPAN <==
> >
> > Can't locate object method "new" via package "CPAN::Queue" at inst/
> > cpan.pl line 166.
> > make: *** [cpan] Error 255
> > debian:~/bricolage-1.10.4#
>
> What version of Perl? Is it a package-installed Perl (RPM, .deb,
> etc.), or compiled?

Debian Etch official package

debian:~/bricolage-1.10.4# perl -v

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

>
> What does this output?
>
> % perl -MCPAN -le 'print CPAN->VERSION'
>
> Best,
>
> David
>

debian:~/bricolage-1.10.4# perl -MCPAN -le 'print CPAN->VERSION'
1.9205
debian:~/bricolage-1.10.4#


- Jean-Michel



Créez votre adresse électronique prénom.nom[at]laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


david at kineticode

Apr 17, 2008, 11:34 AM

Post #4 of 10 (486 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

On Apr 17, 2008, at 11:14, Jean-Michel Caricand wrote:
>> What version of Perl? Is it a package-installed Perl (RPM, .deb,
>> etc.), or compiled?
>
> Debian Etch official package
>
> debian:~/bricolage-1.10.4# perl -v
>
> This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

Naturally.

>> What does this output?
>>
>> % perl -MCPAN -le 'print CPAN->VERSION'
>>
>
> debian:~/bricolage-1.10.4# perl -MCPAN -le 'print CPAN->VERSION'
> 1.9205
> debian:~/bricolage-1.10.4#

And what about this?

% perl -MCPAN::Queue -le 'print CPAN::Queue->VERSION'

Best,

David


jean-michel.caricand at laposte

Apr 17, 2008, 11:38 AM

Post #5 of 10 (485 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

> Message du 17/04/08 20:35
> De : "David E. Wheeler" <david[at]kineticode.com>
> A : users[at]lists.bricolage.cc
> Copie à :
> Objet : Re: Install error with Bricolage 1.10.4
>
> On Apr 17, 2008, at 11:14, Jean-Michel Caricand wrote:
> >> What version of Perl? Is it a package-installed Perl (RPM, .deb,
> >> etc.), or compiled?
> >
> > Debian Etch official package
> >
> > debian:~/bricolage-1.10.4# perl -v
> >
> > This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
>
> Naturally.
>
> >> What does this output?
> >>
> >> % perl -MCPAN -le 'print CPAN->VERSION'
> >>
> >
> > debian:~/bricolage-1.10.4# perl -MCPAN -le 'print CPAN->VERSION'
> > 1.9205
> > debian:~/bricolage-1.10.4#
>
> And what about this?
>
> % perl -MCPAN::Queue -le 'print CPAN::Queue->VERSION'
>
> Best,
>
> David
>

debian:~/bricolage-1.10.4# perl -MCPAN::Queue -le 'print CPAN::Queue->VERSION'
5.402212
debian:~/bricolage-1.10.4

- Jean-Michel



Créez votre adresse électronique prénom.nom[at]laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


david at kineticode

Apr 17, 2008, 11:56 AM

Post #6 of 10 (483 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

On Apr 17, 2008, at 11:38, Jean-Michel Caricand wrote:

> debian:~/bricolage-1.10.4# perl -MCPAN::Queue -le 'print CPAN::Queue-
> >VERSION'
> 5.402212
> debian:~/bricolage-1.10.4

Maybe CPAN.pm doesn't load it anymore? Try adding this line after `use
CPAN;`:

use CPAN::Queue;

HTH,

David


david at kineticode

Apr 17, 2008, 5:56 PM

Post #7 of 10 (483 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

On Apr 17, 2008, at 11:56, David E. Wheeler wrote:

> Maybe CPAN.pm doesn't load it anymore? Try adding this line after
> `use CPAN;`:
>
> use CPAN::Queue;

That was not the problem, it turns out. This patch fixes it:

-- inst/cpan.pl (revision 8072)
+++ inst/cpan.pl (working copy)
@@ -164,7 +163,8 @@
my ($name, $req_version) = @_;

# push onto the queue. This keeps everything simpler below
- CPAN::Queue->new($name);
+ my $push = CPAN::Queue->can('new') ? 'new' : 'qpush';
+ CPAN::Queue->$push($name);

# process the queue
while (my $q = CPAN::Queue->first) {

Best,

David


jean-michel.caricand at laposte

Apr 17, 2008, 11:24 PM

Post #8 of 10 (482 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

> Message du 18/04/08 02:56
> De : "David E. Wheeler" <david[at]kineticode.com>
> A : users[at]lists.bricolage.cc
> Copie à :
> Objet : Re: Install error with Bricolage 1.10.4
>
> On Apr 17, 2008, at 11:56, David E. Wheeler wrote:
>
> > Maybe CPAN.pm doesn't load it anymore? Try adding this line after
> > `use CPAN;`:
> >
> > use CPAN::Queue;
>
> That was not the problem, it turns out. This patch fixes it:
>
> -- inst/cpan.pl (revision 8072)
> +++ inst/cpan.pl (working copy)
> @@ -164,7 +163,8 @@
> my ($name, $req_version) = @_;
>
> # push onto the queue. This keeps everything simpler below
> - CPAN::Queue->new($name);
> + my $push = CPAN::Queue->can('new') ? 'new' : 'qpush';
> + CPAN::Queue->$push($name);
>
> # process the queue
> while (my $q = CPAN::Queue->first) {
>
> Best,
>
> David
>


Hi David,

I applied your patch but I have another error :

debian:~/bricolage-1.10.4# make install
/usr/bin/perl inst/is_root.pl
/usr/bin/perl inst/cpan.pl


==> Installing Modules From CPAN <==

CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
Database was generated on Thu, 17 Apr 2008 01:30:32 GMT
Found Test::File::Contents. Installing...
Test::File::Contents is up to date (0.05).
Can't use string ("Test::File::Contents") as a HASH ref while "strict refs" in use at /usr/local/share/perl/5.8.8/CPAN/Queue.pm line 100.
make: *** [cpan] Erreur 9
debian:~/bricolage-1.10.4#

:-(

- Jean-Michel



Créez votre adresse électronique prénom.nom[at]laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


david at kineticode

Apr 18, 2008, 9:04 AM

Post #9 of 10 (476 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

On Apr 17, 2008, at 23:24, Jean-Michel Caricand wrote:

> Hi David,
>
> I applied your patch but I have another error :
>
> debian:~/bricolage-1.10.4# make install
> /usr/bin/perl inst/is_root.pl
> /usr/bin/perl inst/cpan.pl
>
>
> ==> Installing Modules From CPAN <==
>
> CPAN: Storable loaded ok (v2.15)
> Going to read /root/.cpan/Metadata
> Database was generated on Thu, 17 Apr 2008 01:30:32 GMT
> Found Test::File::Contents. Installing...
> Test::File::Contents is up to date (0.05).
> Can't use string ("Test::File::Contents") as a HASH ref while
> "strict refs" in use at /usr/local/share/perl/5.8.8/CPAN/Queue.pm
> line 100.
> make: *** [cpan] Erreur 9
> debian:~/bricolage-1.10.4#
>
> :-(

Well, at least we got a little further. Now try the attached patch.

Sorry you have to be the guinea pig here; I appreciate you reporting
this and helping me to fix it.

Best,

David

PS: If you're attempting to install in Perl 5.10, things might be a
bit funky. They're fixed in Subversion, though, and 1.10.5 will likely
be released soon to address them. You'll also need the mod_perl 1.31
RC, as 1.30 does not work with Per 5.10.


jean-michel.caricand at laposte

Apr 18, 2008, 11:36 AM

Post #10 of 10 (475 views)
Permalink
Re: Install error with Bricolage 1.10.4 [In reply to]

> Message du 18/04/08 18:06
> De : "David E. Wheeler" <david[at]kineticode.com>
> A : users[at]lists.bricolage.cc, "Jean-Michel Caricand" <jean-michel.caricand[at]laposte.net>
> Copie à :
> Objet : Re: Install error with Bricolage 1.10.4
>
> On Apr 17, 2008, at 23:24, Jean-Michel Caricand wrote:
>
> > Hi David,
> >
> > I applied your patch but I have another error :
> >
> > debian:~/bricolage-1.10.4# make install
> > /usr/bin/perl inst/is_root.pl
> > /usr/bin/perl inst/cpan.pl
> >
> >
> > ==> Installing Modules From CPAN <==
> >
> > CPAN: Storable loaded ok (v2.15)
> > Going to read /root/.cpan/Metadata
> > Database was generated on Thu, 17 Apr 2008 01:30:32 GMT
> > Found Test::File::Contents. Installing...
> > Test::File::Contents is up to date (0.05).
> > Can't use string ("Test::File::Contents") as a HASH ref while
> > "strict refs" in use at /usr/local/share/perl/5.8.8/CPAN/Queue.pm
> > line 100.
> > make: *** [cpan] Erreur 9
> > debian:~/bricolage-1.10.4#
> >
> > :-(
>
> Well, at least we got a little further. Now try the attached patch.
>
> Sorry you have to be the guinea pig here; I appreciate you reporting
> this and helping me to fix it.
>
> Best,
>
> David
>
> PS: If you're attempting to install in Perl 5.10, things might be a
> bit funky. They're fixed in Subversion, though, and 1.10.5 will likely
> be released soon to address them. You'll also need the mod_perl 1.31
> RC, as 1.30 does not work with Per 5.10.
>
>

Thanks for your new patch. It works :-)

- Jean-Michel



Créez votre adresse électronique prénom.nom[at]laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.