FHEM auf QNAP TS439ProII(Intel)

Begonnen von MinchenXXL, 05 Januar 2015, 21:51:04

Vorheriges Thema - Nächstes Thema

MinchenXXL

Hi,

versuche schon seit längerem FHEM auf meinem QNAP zu installieren.

Folgendes habe ich schon gemacht:


cd /share/MD0_DATA/.qpkg/Optware/etc
vi ipkg.conf
und die Zeile
dest opt /opt
hinzugefügt
ipkg update
ipkg install perl
ipkg install make
ipkg install gcc
Fhem heruntergeladen und auf QNAP kopiert

cd /share/Public/fhem

vi Makefile
BINDIR=/opt/bin/fhem
MODDIR=/opt/lib/fhem
VARDIR=/opt/var/log/fhem

mkdir /opt/bin/fhem
mkdir /opt/lib/fhem
mkdir -p /opt/var/log/fhem

make install
log davon:
[b][i]- creating directories
- fixing permissions in fhem.cfg
perl contrib/commandref_join.pl
EN FHEM/98_Text2Speech.pm: Unbalanced i (-1, last line ok: 849)
EN FHEM/98_statistics.pm: Unbalanced i (-1, last line ok: 1119)
- move existing configuration to fhem.cfg.2015-01-05_22:45:09
- copying files
- cleanup: removing leftovers

Installation of fhem completed!

Start fhem with
  perl /opt/bin/fhem/fhem.pl /opt/bin/fhem/fhem.cfg
[/i][/b]

vi /opt/bin/fhem/fhem.pl
hinzugefügt
!/opt/bin/perl

vi /opt/etc/fhem.cfg
attr global logfile /opt/var/log/fhem/fhem-%Y-%V.log
attr global statefile /opt/var/log/fhem/fhem.savestate

probeweiser gestartet mit
/opt/bin/fhem/fhem.pl /opt/etc/fhem.cfg

dann kommt:
/opt/bin/fhem/fhem.pl: line 1: !/usr/bin/perl: No such file or directory
/opt/bin/fhem/fhem.pl: line 33: use: command not found
/opt/bin/fhem/fhem.pl: line 34: use: command not found
/opt/bin/fhem/fhem.pl: line 35: use: command not found
/opt/bin/fhem/fhem.pl: line 36: syntax error near unexpected token `('
/opt/bin/fhem/fhem.pl: line 36: `use Time::HiRes qw(gettimeofday);'


wenn ich in fhem.pl das ! wegmache kommt die Meldung:
/opt/bin/fhem/fhem.pl: line 33: use: command not found
/opt/bin/fhem/fhem.pl: line 34: use: command not found
/opt/bin/fhem/fhem.pl: line 35: use: command not found
/opt/bin/fhem/fhem.pl: line 36: syntax error near unexpected token `('
/opt/bin/fhem/fhem.pl: line 36: `use Time::HiRes qw(gettimeofday);'


bei beiden Varianten startet Hem aber nicht. Über WEB nicht erreichbar und auch kein Prozess aktiv.

Kann mir einer helfen ?

immi

Zitat von: MinchenXXL am 05 Januar 2015, 21:51:04
Hi,

versuche schon seit längerem FHEM auf meinem QNAP zu installieren.

Folgendes habe ich schon gemacht:


vi /opt/bin/fhem/fhem.pl
hinzugefügt
!/opt/bin/perl


hinzugefügt ??? falsch

Ich würde !/usr/bin/perl durch !/opt/bin/perl in /opt/bin/fhem/fhem.pl ersetzen.

ciao
immi