OPi Zero DietPi Stretch Issue with FlightAware Dump1090-fa


#1

Hi everyone,

I am facing an installation problem on FlightAware PiAware. Please refer to the BOLD lines for more info.

root@DietPi:~# sudo apt-get install dump1090-fa
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
bladerf bladerf-fpga-hostedx40 file libbladerf-udev libbladerf1 libfam0 libmagic-mgc libmagic1 librtlsdr0 libtecla1 lighttpd mime-support spawn-fcgi xz-utils
Suggested packages:
bladerf-firmware fam rrdtool php5-cgi apache2-utils lighttpd-doc
The following NEW packages will be installed:
bladerf bladerf-fpga-hostedx40 dump1090-fa file libbladerf-udev libbladerf1 libfam0 libmagic-mgc libmagic1 librtlsdr0 libtecla1 lighttpd mime-support spawn-fcgi xz-utils
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,492 kB of archives.
After this operation, 21.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf libbladerf1 armhf 2016.06+fa1 [70.9 kB]
Get:2 http://ftp.debian.org/debian stretch/main armhf libmagic-mgc armhf 1:5.30-1+deb9u1 [222 kB]
Get:3 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf libbladerf-udev armhf 2016.06+fa1 [9,784 B]
Get:4 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf bladerf armhf 2016.06+fa1 [74.9 kB]
Get:5 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf bladerf-fpga-hostedx40 armhf 2016.06+fa1 [8,286 B]
Get:6 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf dump1090-fa armhf 3.5.3 [2,221 kB]
Get:7 http://ftp.debian.org/debian stretch/main armhf libmagic1 armhf 1:5.30-1+deb9u1 [105 kB]
Get:8 http://ftp.debian.org/debian stretch/main armhf file armhf 1:5.30-1+deb9u1 [63.7 kB]
Get:9 http://ftp.debian.org/debian stretch/main armhf mime-support all 3.60 [36.7 kB]
Get:10 http://ftp.debian.org/debian stretch/main armhf xz-utils armhf 5.2.2-1.2+b1 [263 kB]
Get:11 http://ftp.debian.org/debian stretch/main armhf libfam0 armhf 2.7.0-17.2+b1 [24.7 kB]
Get:12 http://ftp.debian.org/debian stretch/main armhf libtecla1 armhf 1.6.3-1 [88.2 kB]
Get:13 http://ftp.debian.org/debian stretch/main armhf lighttpd armhf 1.4.45-1 [263 kB]
Get:14 http://ftp.debian.org/debian stretch/main armhf librtlsdr0 armhf 0.5.3-11+b2 [25.5 kB]
Get:15 http://ftp.debian.org/debian stretch/main armhf spawn-fcgi armhf 1.6.4-1+b1 [14.2 kB]
Fetched 3,492 kB in 3s (1,029 kB/s)
Selecting previously unselected package libbladerf1:armhf.
(Reading database … 17577 files and directories currently installed.)
Preparing to unpack …/00-libbladerf1_2016.06+fa1_armhf.deb …
Unpacking libbladerf1:armhf (2016.06+fa1) …
Selecting previously unselected package libmagic-mgc.
Preparing to unpack …/01-libmagic-mgc_1%3a5.30-1+deb9u1_armhf.deb …
Unpacking libmagic-mgc (1:5.30-1+deb9u1) …
Selecting previously unselected package libmagic1:armhf.
Preparing to unpack …/02-libmagic1_1%3a5.30-1+deb9u1_armhf.deb …
Unpacking libmagic1:armhf (1:5.30-1+deb9u1) …
Selecting previously unselected package file.
Preparing to unpack …/03-file_1%3a5.30-1+deb9u1_armhf.deb …
Unpacking file (1:5.30-1+deb9u1) …
Selecting previously unselected package mime-support.
Preparing to unpack …/04-mime-support_3.60_all.deb …
Unpacking mime-support (3.60) …
Selecting previously unselected package xz-utils.
Preparing to unpack …/05-xz-utils_5.2.2-1.2+b1_armhf.deb …
Unpacking xz-utils (5.2.2-1.2+b1) …
Selecting previously unselected package libfam0:armhf.
Preparing to unpack …/06-libfam0_2.7.0-17.2+b1_armhf.deb …
Unpacking libfam0:armhf (2.7.0-17.2+b1) …
Selecting previously unselected package libtecla1.
Preparing to unpack …/07-libtecla1_1.6.3-1_armhf.deb …
Unpacking libtecla1 (1.6.3-1) …
Selecting previously unselected package lighttpd.
Preparing to unpack …/08-lighttpd_1.4.45-1_armhf.deb …
Unpacking lighttpd (1.4.45-1) …
Selecting previously unselected package libbladerf-udev:armhf.
Preparing to unpack …/09-libbladerf-udev_2016.06+fa1_armhf.deb …
Unpacking libbladerf-udev:armhf (2016.06+fa1) …
Selecting previously unselected package bladerf.
Preparing to unpack …/10-bladerf_2016.06+fa1_armhf.deb …
Unpacking bladerf (2016.06+fa1) …
Selecting previously unselected package bladerf-fpga-hostedx40.
Preparing to unpack …/11-bladerf-fpga-hostedx40_2016.06+fa1_armhf.deb …
Unpacking bladerf-fpga-hostedx40 (2016.06+fa1) …
Selecting previously unselected package librtlsdr0:armhf.
Preparing to unpack …/12-librtlsdr0_0.5.3-11+b2_armhf.deb …
Unpacking librtlsdr0:armhf (0.5.3-11+b2) …
Selecting previously unselected package dump1090-fa.
Preparing to unpack …/13-dump1090-fa_3.5.3_armhf.deb …
Unpacking dump1090-fa (3.5.3) …
Selecting previously unselected package spawn-fcgi.
Preparing to unpack …/14-spawn-fcgi_1.6.4-1+b1_armhf.deb …
Unpacking spawn-fcgi (1.6.4-1+b1) …
Setting up libbladerf-udev:armhf (2016.06+fa1) …
Setting up libbladerf1:armhf (2016.06+fa1) …
Setting up libfam0:armhf (2.7.0-17.2+b1) …
Setting up mime-support (3.60) …
Setting up libtecla1 (1.6.3-1) …
Setting up libmagic-mgc (1:5.30-1+deb9u1) …
Setting up libmagic1:armhf (1:5.30-1+deb9u1) …
Setting up librtlsdr0:armhf (0.5.3-11+b2) …
Setting up spawn-fcgi (1.6.4-1+b1) …
Processing triggers for libc-bin (2.24-11+deb9u1) …
Setting up xz-utils (5.2.2-1.2+b1) …
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
Setting up lighttpd (1.4.45-1) …
Created symlink /etc/systemd/system/multi-user.target.wants/lighttpd.service → /lib/systemd/system/lighttpd.service.
Processing triggers for systemd (232-25+deb9u1) …
Setting up bladerf (2016.06+fa1) …
Setting up bladerf-fpga-hostedx40 (2016.06+fa1) …
Either your FPGA bitstream is missing, or it is out-of-date.
Downloading FPGA bitstream from https://www.nuand.com/fpga/v0.6.0/hostedx40.rbf
–2018-02-15 08:24:35-- https://www.nuand.com/fpga/v0.6.0/hostedx40.rbf
Resolving http://www.nuand.com (http://www.nuand.com)… 198.23.74.122
Connecting to http://www.nuand.com (http://www.nuand.com)|198.23.74.122|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1191788 (1.1M) [application/octet-stream]
Saving to: ‘/tmp/tmp.9W9TwXxtHj’

/tmp/tmp.9W9TwXxtHj 100%[===========================================================================================>] 1.14M 414KB/s in 2.8s

2018-02-15 08:24:39 (414 KB/s) - ‘/tmp/tmp.9W9TwXxtHj’ saved [1191788/1191788]

/tmp/tmp.9W9TwXxtHj: OK
Download successful, copying to /usr/share/Nuand/bladeRF/hostedx40.rbf
Setting up dump1090-fa (3.5.3) …
Adding user dump1090' to groupplugdev’ …
Adding user dump1090 to group plugdev
Done.
Enabling lighttpd integration…
Can’t locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base .) at /usr/sbin/lighty-enable-mod line 17.
BEGIN failed–compilation aborted at /usr/sbin/lighty-enable-mod line 17.
grep: /etc/lighttpd/conf-enabled/*.conf: No such file or directory
Enabling lighttpd integration (stat cache)…
Can’t locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base .) at /usr/sbin/lighty-enable-mod line 17.
BEGIN failed–compilation aborted at /usr/sbin/lighty-enable-mod line 17.
Restarting lighttpd…
Created symlink /etc/systemd/system/default.target.wants/dump1090-fa.service → /lib/systemd/system/dump1090-fa.service.
Setting up file (1:5.30-1+deb9u1) …
root@DietPi:~# sudo apt-get install piaware-web
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
piaware-web
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 80.1 kB of archives.
After this operation, 383 kB of additional disk space will be used.
Get:1 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf piaware-web all 3.5.0 [80.1 kB]
Fetched 80.1 kB in 0s (182 kB/s)
Selecting previously unselected package piaware-web.
(Reading database … 18469 files and directories currently installed.)
Preparing to unpack …/piaware-web_3.5.0_all.deb …
Unpacking piaware-web (3.5.0) …
Setting up piaware-web (3.5.0) …
Enabling lighttpd integration…
Can’t locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base .) at /usr/sbin/lighty-enable-mod line 17.
BEGIN failed–compilation aborted at /usr/sbin/lighty-enable-mod line 17.
Restarting lighttpd…
root@DietPi:~#

I hope experts here can help me to solve this issue. Thank you very much.

Regards,
SaiHou


#2

This looks like it is missing a package.
Try

sudo apt-get update
sudo apt-get install dialog


#3

Hi David Baker,

Thanks for the info. Unfortunately, it doesn’t work.

root@OrangePiZeroDietPi:~# sudo apt-get install dump1090-fa
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
dump1090-fa
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,221 kB of archives.
After this operation, 13.6 MB of additional disk space will be used.
Get:1 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf du mp1090-fa armhf 3.5.3 [2,221 kB]
Fetched 2,221 kB in 2s (853 kB/s)
Selecting previously unselected package dump1090-fa.
(Reading database … 17995 files and directories currently installed.)
Preparing to unpack …/dump1090-fa_3.5.3_armhf.deb …
Unpacking dump1090-fa (3.5.3) …
Setting up dump1090-fa (3.5.3) …
The user dump1090' is already a member ofplugdev’.
Enabling lighttpd integration…
Can’t locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLin e module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24 .1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/sha re/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/ lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base .) at /usr/sbin/lighty-enab le-mod line 17.
BEGIN failed–compilation aborted at /usr/sbin/lighty-enable-mod line 17.
grep: /etc/lighttpd/conf-enabled/*.conf: No such file or directory
Enabling lighttpd integration (stat cache)…
Can’t locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLin e module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24 .1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/sha re/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/ lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base .) at /usr/sbin/lighty-enab le-mod line 17.
BEGIN failed–compilation aborted at /usr/sbin/lighty-enable-mod line 17.
Restarting lighttpd…
Created symlink /etc/systemd/system/default.target.wants/dump1090-fa.service → / lib/systemd/system/dump1090-fa.service.
root@OrangePiZeroDietPi:~# sudo apt-get install piaware-web
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
piaware-web
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 80.1 kB of archives.
After this operation, 383 kB of additional disk space will be used.
Get:1 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf piaware-web all 3.5.0 [80.1 kB]
Fetched 80.1 kB in 0s (178 kB/s)
Selecting previously unselected package piaware-web.
(Reading database … 18627 files and directories currently installed.)
Preparing to unpack …/piaware-web_3.5.0_all.deb …
Unpacking piaware-web (3.5.0) …
Setting up piaware-web (3.5.0) …
Enabling lighttpd integration…
Can’t locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base .) at /usr/sbin/lighty-enable-mod line 17.
BEGIN failed–compilation aborted at /usr/sbin/lighty-enable-mod line 17.
Restarting lighttpd…
root@OrangePiZeroDietPi:~#

I follow your advise, sudo apt-get install dialog, then I remove both the dump1090-fa and piaware-web, then reboot and re-install both the dump1090-fa & piaware-web still getting the same issue. The PiAware-Web page not shown as well as the /dump1090-fa page error.

Regards,
SaiHou


#4

DietPi is very lean distro, lot of packages stripped off.

First upgrade to get the required packages

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

#5

Hi abcd567,

I tried all these many times to get in done unfortunately not working.

No chance to get it work.

Thanks for the reply.

Regards,
SaiHou


#6

@saihoufung

I have Orange Pi PC and tried many distros, and found Armbian is the best of all available distros.

Armbian has distros for Orange Pi Zero also. Try it.

https://www.armbian.com/orange-pi-zero/

.
They also have distros for Orange Pi Zero+ and Zero+ 2

https://www.armbian.com/download/


#7

Hi abcd567,

Yes, Armbian is best and bugs are lesser compared to DietPi.
Before this , I choose the DietPi as it has the LED Control for the Pi, and Armbian doesn’t have this option. Or may be I don’t know about this.

This is the only I know for Armbian Image
echo 1 > /sys/class/leds/orangepi:red:status/brightness
echo 0 > /sys/class/leds/orangepi:red:status/brightness
echo 0 > /sys/class/leds/orangepi:green:pwr/brightness
echo 1 > /sys/class/leds/orangepi:green:pwr/brightness

DietPi LED Control:-:

  1. Green LED - Can set to Power ON.
  2. Red LED: Can set to MMC0 / Heartbeat

This is the main point I choose this DietPi.

At last I bought another 2 microSD card to flash the Armbian Debian Jessie Stable and leave the DietPi alone and if someone can sort it out then I will put the card to work again.

Regards,
SaiHou


#8

Here is another package you can install and see if it is the one:

sudo apt-get update
sudo apt-get install libterm-readline-perl-perl


#9

Hi David Baker,

Thank you for the great info.

After I install this “sudo apt-get install libterm-readline-perl-perl” as per your suggest, then I remove both the dump1090-fa & piaware-web and then reinstall them. Finally no error and they installed successfully and the Piaware-web & dump1090-fa map page working.

You really save my day. Thank you.

Regards,
SaiHou


#10

One piece of info, not directly related to this issue, but may help in case of boards having 64-bit aarch64 architecture.

There are an increasing number of boards running in 64 bit mode (aarch64). If you want to run a 32 bit application (armhf) on its 64 bit OS, following workaround works in most cases:

sudo dpkg --add-architecture armhf

sudo apt-get update

sudo apt-get install libc6:armhf 

sudo apt-get install libstdc++6:armhf

.
There is a downside to this approach. After adding armhf you have to be careful when installing new packages that you get the right version and don’t end up installing 32bit packages that you don’t need.

Source of above workaround:
https://forum.armbian.com/topic/4764-running-32-bit-applications-on-aarch64/


#11

Hi abcd567,

Thanks for the sharing info. Currently I only have 32-bit Board. If I have 64-bit and having the same issue, I will try to check on this sharing link.

Thanks once again.

Regards,
SaIHou