PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : CPAN Modul auf Ubuntu installieren



craano
16.02.07, 15:16
Hallo,

ich habe in seltsames Problem, ich versuche das CPAN Modul Audio::WMA auf meinem Ubuntu Rechner zu installieren. Ich kann das Paket aus den Ubuntu Repositories leider nicht verwenden, da die Methode tags() nicht enthalten ist.
Bei meinem Programm erhalte ich immer folgenden Fehler:

Can't locate object method "tags" via package "Audio::WMA" at ./wma.pl line 16.

Das Script ist fehlerfrei, da es das Beispiel - Script von hier ist:
http://search.cpan.org/~daniel/Audio-WMA-1.1/WMA.pm

use Audio::WMA;

my $wma = Audio::WMA->new($file);

my $info = $wma->info();

foreach (keys %$info) {
print "$_: $info->{$_}\n";
}

my $tags = $wma->tags();

foreach (keys %$tags) {
print "$_: $tags->{$_}\n";
}

Also entprechendes Paket mit Synaptic entfernt und Audio::WMA von CPAN runter geladen und entpackt.
Die Installation läuft auf ohne Fehler durch, doch nach der Installation findet Perl das Modul nicht.


# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Audio::WMA

# make
cp WMA.pm blib/lib/Audio/WMA.pm
Manifying blib/man3/Audio::WMA.3pm

1# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/1.t t/2.t t/drm.t t/pod-coverage.t t/pod.t
t/1...............ok
t/2...............ok
t/drm.............ok
t/pod-coverage....ok
t/pod.............ok
All tests successful.
Files=5, Tests=21, 0 wallclock secs ( 0.32 cusr + 0.06 csys = 0.38 CPU)

# checkinstall

checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]: y

Preparing package documentation...OK

Please write a description for the package.
End your description with an empty line or EOF.
>>

*****************************************
**** Debian package creation selected ***
*****************************************

*** Warning: The package name "Audio-WMA" contains upper case
*** Warning: letters. dpkg might not like that so I changed
*** Warning: them to lower case.

This package will be built according to these values:

0 - Maintainer: [ root@craano-desktop ]
1 - Summary: [ Package created with checkinstall 1.6.0 ]
2 - Name: [ audio-wma ]
3 - Version: [ 1.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ Audio-WMA-1.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
/bin/pwd: konnte in „../../../../..“ keine Verzeichniseintrag mit passendem Inode finden
Writing /usr/local/lib/perl/5.8.8/auto/Audio/WMA/.packlist
Appending installation info to /usr/local/lib/perl/5.8.8/perllocal.pod

======================== Installation successful ==========================

Copying documentation directory...
./
./MANIFEST
./README

Copying files to the temporary directory...OK

Striping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

Installing Debian package...OK

Erasing temporary files...OK

Deleting temp dir...OK


************************************************** ********************

Done. The new package has been installed and saved to

/home/kai/Desktop/Audio-WMA-1.1/audio-wma_1.1-1_i386.deb

You can remove it from your system anytime using:

dpkg -r audio-wma

************************************************** ********************


1# aptitude show audio-wma
Paket: audio-wma
Neu: ja
Zustand: Installiert
Automatisch installiert: nein
Version: 1.1-1
Priorität: extra
Bereich: checkinstall
Verwalter: root@craano-desktop
Unkomprimierte Größe: 65,5k
Beschreibung: Package created with checkinstall 1.6.0

Wenn ich nun das script wieder ausführe wird das Paket nicht gefunden:

Can't locate Audio/WMA.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./wma.pl line 6.
BEGIN failed--compilation aborted at ./wma.pl line 6.
Ich habe auch versucht WMA.pm nach /usr/local/lib/perl/5.8.8 zu kopieren (aus dem entpackten tar.gz), das funktioniert auch nicht.

Was mache ich bei der Installation des CPAN Moduls falsch?

Alternativ: Gib es irgendwo Repositories, in denen neuere CPAN Module enthalten sind?

Grüße.
craano.

craano
16.02.07, 19:13
Keine Ahnung warum meine Ubuntu Kiste nicht mit dem neuen Modul zusammen arbeiten will, ich habe aber ersteinmal einen vorläufigen Workaround gefunden.

Ich habe die .pm Datei des Moduls herunter geladen, den Dateinamen und den "package" - Eintrag geändert und in das selbe Verzeichnis wie das Skript gelegt. Jetzt rufe ich in dem Skript explizit diese Datei mit dem "use" - Eintrag auf.

Grüße.
craano.