OVH Cloud OVH Cloud

install seems impossible via cpan

5 réponses
Avatar
Newsgroups
Bonjour,

Je n'arrive pas à installer une librairie avec cpan.

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

Distrib linux Ubuntu 6.04 "Dapper Drake"

que je fasse
cpan> install Audio::Beep
ou que je fasse
cpan> force install Audio::Beep
le résultat est le même :

Checking if your kit is complete...
Looks good
Writing Makefile for Audio::Beep
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Avez vous une idée ?
Merci

5 réponses

Avatar
kurtz le pirate
In article ,
Newsgroups wrote:

Bonjour,

Je n'arrive pas à installer une librairie avec cpan.

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

Distrib linux Ubuntu 6.04 "Dapper Drake"

que je fasse
cpan> install Audio::Beep
ou que je fasse
cpan> force install Audio::Beep
le résultat est le même :

Checking if your kit is complete...
Looks good
Writing Makefile for Audio::Beep
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Avez vous une idée ?
Merci



pas d'autres messages d'erreurs ?
uniquement avec Audio::Beep ?


--
klp

Avatar
Newsgroups
pas d'autres messages d'erreurs ?


au début, il me demande
Would you like to install Japanese documentation?
je lui répond "N"

et ensuite, il me dis :
Checking if your kit is complete...
Looks good
Writing Makefile for Audio::Beep
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

c'est tout, rien de plus dans cpan, après, je peux biensur retenter une
commande au prompt...

uniquement avec Audio::Beep ?
A tout hasard, je viens d'essayer install LWP::UA


voici exactement ce qu'il me dis :
Running install for module LWP::UA
Running make for G/GA/GAAS/LWPng-alpha-0.24.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
http://cpan.univ-paris.com/authors/id/G/GA/GAAS/LWPng-alpha-0.24.tar.gz
Checksum for /home/mathieu/.cpan/sources/authors/id/G/GA/GAAS/LWPng-alpha-0.24.tar.gz ok
LWPng-alpha-0.24/
LWPng-alpha-0.24/bot/
LWPng-alpha-0.24/bot/db.pl
LWPng-alpha-0.24/bot/addlink
LWPng-alpha-0.24/bot/ngbot
LWPng-alpha-0.24/bot/dblist
LWPng-alpha-0.24/bot/db.sql
LWPng-alpha-0.24/bot/dbclear
LWPng-alpha-0.24/bot/README
LWPng-alpha-0.24/lib/
LWPng-alpha-0.24/lib/LWP/
LWPng-alpha-0.24/lib/LWP/UA/
LWPng-alpha-0.24/lib/LWP/UA/Cookies.pm
LWPng-alpha-0.24/lib/LWP/UA/Proxy.pm
LWPng-alpha-0.24/lib/LWP/StdSched.pm
LWPng-alpha-0.24/lib/LWP/Authen/
LWPng-alpha-0.24/lib/LWP/Authen/digest.pm
LWPng-alpha-0.24/lib/LWP/Authen/basic.pm
LWPng-alpha-0.24/lib/LWP/Dump.pm
LWPng-alpha-0.24/lib/LWP/Sink/
LWPng-alpha-0.24/lib/LWP/Sink/HTML.pm
LWPng-alpha-0.24/lib/LWP/Sink/IO.pm
LWPng-alpha-0.24/lib/LWP/Sink/Buffer.pm
LWPng-alpha-0.24/lib/LWP/Sink/base64.pm
LWPng-alpha-0.24/lib/LWP/Sink/Monitor.pm
LWPng-alpha-0.24/lib/LWP/Sink/rot13.pm
LWPng-alpha-0.24/lib/LWP/Sink/qp.pm
LWPng-alpha-0.24/lib/LWP/Sink/identity.pm
LWPng-alpha-0.24/lib/LWP/Sink/Tee.pm
LWPng-alpha-0.24/lib/LWP/Sink/_Pipe.pm
LWPng-alpha-0.24/lib/LWP/Sink/deflate.pm
LWPng-alpha-0.24/lib/LWP/Conn/
LWPng-alpha-0.24/lib/LWP/Conn/HTTP.pm
LWPng-alpha-0.24/lib/LWP/Conn/FTP.pm
LWPng-alpha-0.24/lib/LWP/Conn/_Cmd.pm
LWPng-alpha-0.24/lib/LWP/Conn/FILE.pm
LWPng-alpha-0.24/lib/LWP/Conn/_Connect.pm
LWPng-alpha-0.24/lib/LWP/Hooks.pm
LWPng-alpha-0.24/lib/LWP/Redirect.pm
LWPng-alpha-0.24/lib/LWP/Server.pm
LWPng-alpha-0.24/lib/LWP/Request.pm
LWPng-alpha-0.24/lib/LWP/Conn.pm
LWPng-alpha-0.24/lib/LWP/UA.pm
LWPng-alpha-0.24/lib/LWP/EventLoop.pm
LWPng-alpha-0.24/lib/LWP/Authen.pm
LWPng-alpha-0.24/lib/LWP/Version.pm
LWPng-alpha-0.24/lib/LWP/Sink.pm
LWPng-alpha-0.24/lib/LWP/MainLoop.pm
LWPng-alpha-0.24/lib/URI/
LWPng-alpha-0.24/lib/URI/Attr.pm
LWPng-alpha-0.24/http11-bnf.txt
LWPng-alpha-0.24/t/
LWPng-alpha-0.24/t/after.t
LWPng-alpha-0.24/t/sink-deflate.t
LWPng-alpha-0.24/t/bad-req.t
LWPng-alpha-0.24/t/sink-base64.t
LWPng-alpha-0.24/t/sink-id.t
LWPng-alpha-0.24/t/sink-qp.t
LWPng-alpha-0.24/t/sink-html.t
LWPng-alpha-0.24/t/uri-attr.t
LWPng-alpha-0.24/t/sink-io.t
LWPng-alpha-0.24/MANIFEST
LWPng-alpha-0.24/Changes
LWPng-alpha-0.24/term-ua
LWPng-alpha-0.24/testd/
LWPng-alpha-0.24/testd/README
LWPng-alpha-0.24/testd/301-1
LWPng-alpha-0.24/testd/301-2
LWPng-alpha-0.24/testd/p2nc
LWPng-alpha-0.24/testd/301-3
LWPng-alpha-0.24/testd/p2nm
LWPng-alpha-0.24/testd/redir1
LWPng-alpha-0.24/testd/redir2
LWPng-alpha-0.24/testd/redir3
LWPng-alpha-0.24/testd/redir4
LWPng-alpha-0.24/testd/te1
LWPng-alpha-0.24/testd/redir5
LWPng-alpha-0.24/testd/te2
LWPng-alpha-0.24/testd/te3
LWPng-alpha-0.24/testd/authd
LWPng-alpha-0.24/testd/p1
LWPng-alpha-0.24/testd/p2
LWPng-alpha-0.24/testd/p3ms
LWPng-alpha-0.24/testd/p3
LWPng-alpha-0.24/testd/p4
LWPng-alpha-0.24/testd/p5
LWPng-alpha-0.24/testd/101
LWPng-alpha-0.24/testd/300
LWPng-alpha-0.24/testd/301
LWPng-alpha-0.24/testd/p3nc
LWPng-alpha-0.24/testd/p3nm
LWPng-alpha-0.24/testd/httpd
LWPng-alpha-0.24/testd/empty_ct
LWPng-alpha-0.24/readline-interface
LWPng-alpha-0.24/Makefile.PL
LWPng-alpha-0.24/fig3.ps
LWPng-alpha-0.24/term-serv
LWPng-alpha-0.24/Todo
LWPng-alpha-0.24/fig2.ps
LWPng-alpha-0.24/pipeline.ps
LWPng-alpha-0.24/README
LWPng-alpha-0.24/fig1.ps
LWPng-alpha-0.24/News

CPAN.pm: Going to build G/GA/GAAS/LWPng-alpha-0.24.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for LWPng-alpha
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible



Donc, je ne vois pas trop d'où peut venir le problème...
A noter que je lance cpan en root

Avatar
alian
Checking if your kit is complete...
Looks good
Writing Makefile for LWPng-alpha
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible


Il arrive pas a creer le makefile mais on a pas le message du pourquoi ... va
dans ton repertoire .cpan/build/ton_module, fais perl Makefile.PL a la main, il
va surement etre plus explicite sur le pourquoi de son echec.

Avatar
Paul Gaborit
À (at) Fri, 03 Mar 2006 15:49:09 +0100,
alian écrivait (wrote):
Checking if your kit is complete...
Looks good
Writing Makefile for LWPng-alpha
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible


Il arrive pas a creer le makefile mais on a pas le message du pourquoi
... va dans ton repertoire .cpan/build/ton_module, fais perl
Makefile.PL a la main, il va surement etre plus explicite sur le
pourquoi de son echec.


Pour faire ce genre de tests, on peut aussi utiliser la commande cpan
'look'. Par exemple :

cpan> look LWP::Dump

Le module CPAN récupère et décompresse tout seul l'archive de
LWPng-alpha puis il lance un shell dans le bon répertoire. Il ne reste
plus qu'à enchaîner les étapes pour voir celle qui échoue :

perl Makefile.PL
make
make test
make install

--
Paul Gaborit - <http://perso.enstimac.fr/~gaborit/>
Perl en français - <http://perl.enstimac.fr/>


Avatar
Newsgroups
perl Makefile.PL
Checking if your kit is complete...

Looks good
Writing Makefile for Audio::Beep


make
cp Beep.pm blib/lib/Audio/Beep.pm

cp lib/Audio/Beep/Linux/PP.pm blib/lib/Audio/Beep/Linux/PP.pm
cp lib/Audio/Beep/Linux/beep.pm blib/lib/Audio/Beep/Linux/beep.pm
cp Beep.pod blib/lib/Audio/Beep.pod
Manifying blib/man3/Audio::Beep::Linux::beep.3pm
Manifying blib/man3/Audio::Beep::Linux::PP.3pm
Manifying blib/man3/Audio::Beep.3pm

make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

t/1....ok
All tests successful.
Files=1, Tests=3, 0 wallclock secs ( 0.06 cusr + 0.00 csys = 0.06 CPU)

make install
Writing /usr/local/lib/perl/5.8.7/auto/Audio/Beep/.packlist

Appending installation info to /usr/local/lib/perl/5.8.7/perllocal.pod

Et là, je me dis : "super, ca va marcher"
Et bien voici le résultat quand je lance mon script

Cannot open console: Permission non accordée at /usr/local/share/perl/5.8.7/Audio/Beep/Linux/PP.pm line 21
Audio::Beep::Linux::PP::play('Audio::Beep::Linux::PP=HASH(0x81d0ed0)', 440, 50) called at /usr/local/share/perl/5.8.7/Audio/Beep.pm line 204
Audio::Beep::beep(440, 50) called at toto.pl line 5


Donc, je comprends encore moin comment il peut y avoir des pbm de droits,
sachant que c'est root qui exécute cpan