Can't get fhz1000.pl to work (Can't locate Device/SerialPort.pm)

841 views
Skip to first unread message

Superconnected

unread,
Jul 24, 2007, 4:39:16 AM7/24/07
to FHZ1000 users on Linux
Hi,

after I reinstalled my NSLU2 with the debian linux I still can not
connect to the FHZ1300 PC. I get the error message:
"
Can't locate Device/SerialPort.pm in @INC (@INC contains: /opt/lib/
perl5/5.8.8/a

rmv5b-linux /opt/lib/perl5/5.8.8 /opt/lib/perl5/site_perl/5.8.8/armv5b-
linux /op

t/lib/perl5/site_perl/5.8.8 /opt/lib/perl5/site_perl .) at ./
fhz1000.pl line 39.

BEGIN failed--compilation aborted at ./fhz1000.pl line 39
"

Any ideas?
Thanks for you help
I

Martin Haas

unread,
Jul 24, 2007, 7:09:06 AM7/24/07
to FHZ1000 users on Linux

> Can't locate Device/SerialPort.pm in @INC (@INC contains: /opt/lib/
> perl5/5.8.8/a

H@i,

it seems that you have not installed the required Modul SerialPort.

Look at the section "Perl Modules" on http://www.koeniglich.de/fhem/fhem.html
or follow the Installation Instructions on http://martin.htsv.net/fhz/nslu2fhz/

Martin :-)

Superconnected

unread,
Jul 24, 2007, 8:33:49 AM7/24/07
to FHZ1000 users on Linux

> it seems that you have not installed the required Modul SerialPort.

Hi Martin,

actually I did. I ran the Perl Script (Device::SerialPort) as
described on http://www.koeniglich.de/fhem/fhem.html. There were no
error messages but I am not sure whether I did it right. (run
configure; perl Makefile.pl and make) the out looked promissing but I
still get this error message when trying to start fhz1000.pl.

Anything else I had to do? Anything I could check? (where should the
SerialPort.pm file be located?)

I spend hours on this already but I am not exactly a Linux
professional.

Thanks
Jens

Martin Haas

unread,
Jul 24, 2007, 11:44:32 AM7/24/07
to FHZ1000 users on Linux
H@i Jens,

> Anything else I had to do? Anything I could check? (where should the
> SerialPort.pm file be located?)

my SerialPort.pm on the NSLU2 resides here:/usr/lib/perl5/Device/
SerialPort.pm
Your perl seems to have an other path -- something like /opt/perl. I
think you have not installed it with apt.

My recommended way is the procedure on
http://martin.htsv.net/fhz/nslu2fhz/

It includes in the step 2 an installation script.
Try the following manually:
apt-get -m -y -f install libdevice-serialport-perl libdatetime-perl
php5 php5-gd ntpdate apache2 gnuplot libapache2-mod-php5 nfs-kernel-
server vim-runtime
or
apt-get libdevice-serialport-perl

After that (with a correct /etc/apt/source.list) it should run. At
first try to start fhz1000.pl as root.
(I hope you have an official Debian Etch on the NSLU2 and not such a
garbled piece.)

Tip: download the installation script above and try to understand it.

Martin :-)

Superconnected

unread,
Jul 24, 2007, 12:01:44 PM7/24/07
to FHZ1000 users on Linux

Hi Martin,

I ran your script first - before I started the SerialPort perl stuff -
but ran into the same issue. Maybe I missed to install some of the
packages; I'll go through this once more step by step.
So I should not need to worry about the SerialPort.pm (and the perl
script) at all if I follow your instructions, is that correct?
I downloaded the debian linux through http://www.cyrius.com/debian/nslu2/install.html
but used the unofficial image. (debian-4.0r0.zip) I hope this was
correct.
Thanks for your help, I'll let you know.

Jens

Martin Haas

unread,
Jul 24, 2007, 1:40:24 PM7/24/07
to FHZ1000 users on Linux
H@i Jens,

> I ran your script first - before I started the SerialPort perl stuff -
> but ran into the same issue. Maybe I missed to install some of the
> packages; I'll go through this once more step by step.

the "apt-get install libdevice-serialport-perl"
is all you need to install the SerialPort.pm
You have the curious path to /opt/perl that does not sound as a normal
installation.

> So I should not need to worry about the SerialPort.pm (and the perl
> script) at all if I follow your instructions, is that correct?

I know about a lot of installations with that script without problems.
There are some other details relating rights, but (for the start) as
root everything should be possible :-)

> I downloaded the debian linux throughhttp://www.cyrius.com/debian/nslu2/install.html


> but used the unofficial image. (debian-4.0r0.zip) I hope this was
> correct.

Yes that is in my opinion the best way.

Have success
Martin :-)

Superconnected

unread,
Jul 25, 2007, 4:26:03 AM7/25/07
to FHZ1000 users on Linux
Hi Martin,

super es hat soweit geklappt. zumindest bekomme ich die Fehlermeldung
nicht mehr und die rote LED am FHZ1300 geht beim senden eines Befehles
an. Das Licht leider noch nicht. :-(
Wo muss ich eigentlich die Home Address in fhz100.cfg eintragen? Hab
ich gestern abend nicht mehr gefunden. Ich vermute das ist der Grund
warum ich diese Meldung auf der pgm3 webpage bekommen:

History 2007.07.25 10:18:54 3: FHT Unknown device 1621, please define
it
History 2007.07.25 10:19:27 3: FHT Unknown device 1629, please define
it
History 2007.07.25 10:19:38 3: FHT Unknown device 165e, please define
it
History 2007.07.25 10:20:09 3: FHT Unknown device 161c, please define
it
History 2007.07.25 10:20:16 3: FHT Unknown device 1651, please define
it
History 2007.07.25 10:20:32 3: FHT Unknown device 1663, please define
it
...

Irgendetwas mag er noch nicht.
Danke und Gruss
Jens

Superconnected

unread,
Jul 25, 2007, 11:06:30 AM7/25/07
to FHZ1000 users on Linux
Aha, ich glaube ich begreif es langsam.
Danke nochmal, Gruss
Jens

Reply all
Reply to author
Forward
0 new messages