FHEM Forum

FHEM - Hardware => Server - Linux => Thema gestartet von: maddinthebrain am 29 Februar 2024, 14:49:39

Titel: welches Perl-Modul fehlt für math.pm
Beitrag von: maddinthebrain am 29 Februar 2024, 14:49:39
Hallo zusammen,

ich hatte mein Debian aktualisiert. Jetzt fehlt FHEM für das Modul Signalduino die Datei Math.pm.

Auszug aus dem LOG:

2024.02.29 09:36:57 1: reload: Error:Modul 00_SIGNALduino deactivated:
 Can't locate FHEM/Core/Utils/Math.pm in @INC (you may need to install the FHEM::Core::Utils::Math module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 218.
BEGIN failed--compilation aborted at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 218.

2024.02.29 09:36:57 0: Can't locate FHEM/Core/Utils/Math.pm in @INC (you may need to install the FHEM::Core::Utils::Math module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 218.
BEGIN failed--compilation aborted at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 218.

2024.02.29 09:36:57 1: reload: Error:Modul 00_SIGNALduino deactivated:
 Can't locate FHEM/Core/Utils/Math.pm in @INC (you may need to install the FHEM::Core::Utils::Math module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 264.
BEGIN failed--compilation aborted at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 264.

2024.02.29 09:36:57 0: Can't locate FHEM/Core/Utils/Math.pm in @INC (you may need to install the FHEM::Core::Utils::Math module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 264.
BEGIN failed--compilation aborted at ./FHEM/00_SIGNALduino.pm line 18, <$fh> line 264.

Ich vermute das beim Distupgrade etwas bei den Perl Modulen schief ging und was fehlt. Welches Modul fehlt? Und wie installiere ich es ggf.?

Vielen Dank

Martin
Titel: Aw: welches Perl-Modul fehlt für math.pm
Beitrag von: Otto123 am 29 Februar 2024, 15:31:36
Hi,

Math.pm ist ein Modul von FHEM sollte in diesem Pfad liegen: fhem/lib/FHEM/Core/Utils

Bzw. online hier:
https://svn.fhem.de/trac/browser/trunk/fhem/lib/FHEM/Core/Utils

Versuch mal in der FHEM Kommandozeile, vielleicht holt der Befehl die Datei auch neu.
update lib/FHEM/Core/Utils/Math.pm
Gruß Otto
Titel: Aw: welches Perl-Modul fehlt für math.pm
Beitrag von: maddinthebrain am 29 Februar 2024, 16:24:58
Hat funktioniert danke, aber jetzt jammert er dass SD_Protocols fehlt...

2024.02.29 16:19:35 0: Can't locate object method "LoadHash" via package "File lib::SD_Protocols does not exsits" (perhaps you forgot to load "File lib::SD_Protocols does not exsits"?) at ./FHEM/00_SIGNALduino.pm line 290, <$fh> line 218.

Anscheinend ging da was grandios beim Update schief...

Vielen Dank
Titel: Aw: welches Perl-Modul fehlt für math.pm
Beitrag von: Otto123 am 29 Februar 2024, 16:39:12
Das klingt komisch ... normal zerschießt eine debian update nicht die FHEM Installation.
Hab ich hier gefunden : https://svn.fhem.de/trac/browser/trunk/fhem/FHEM/lib
update FHEM/lib/SD_Protocols.pm
Titel: Aw: welches Perl-Modul fehlt für math.pm
Beitrag von: Wernieman am 29 Februar 2024, 20:21:18
Wurde eventuell fhem beim Update nochmals installiert? Ist jedenfalls nicht normal das Verhalten ...