What is Easiest Way To Install Dump1090-Mutability

Read the post above yours.

mgunther made a lot of good points. If you want to have it “just work” then grab the latest image and use that. If you wan’t to learn more about how things work and how they are put together, then the build it yourself route is a great way to go. You have to be ready for things to go wrong, and to possibly have to re-do from scratch a few times, but if you are the least bit curious, give it a go. The people here in the forum try to do the best as far as support goes, and having Oliver around is a great asset. You always have the fallback of going to the stock image if things get above the level of commitment you want to put out, and we know that it ‘just works’. So you have a safety net.

Pros: Newer features that aren’t in the stock image. You’ll learn more about what it takes to make things go. You’ll learn just how much you’re getting out of a $35 Raspi.

Cons: Newer features that aren’t supported by FA directly. You have to do some work yourself, but you’re not alone. Things will break, but that’s how you learn!

If you go the mutability route, remember to back up your image before major changes. Something we forget too often. :blush:

I must going something wrong, but either way whenever I try build the package I get the following error messages. What am i doing wrong?

pi@raspberrypi ~/git/dump1090 $ dpkg-buildpackage -b
dpkg-buildpackage: source package dump1090-mutability
dpkg-buildpackage: source version 1.15~dev
dpkg-buildpackage: source changed by Oliver Jowett oliver@mutability.co.uk
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build dump1090
dpkg-checkbuilddeps: Unmet build dependencies: librtlsdr-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

I guess you are building this on a brand-new Pi with nothing else installed?
In that case you need a few extra libraries for the dongle:



~ $ wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr0_0.5.4.git-1_armhf.deb
~ $ wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr-dev_0.5.4.git-1_armhf.deb
~ $ sudo dpkg -i librtlsdr0_0.5.4.git-1_armhf.deb
~ $ sudo dpkg -i librtlsdr-dev_0.5.4.git-1_armhf.deb


and you may need this as well:


~ $ sudo apt-get install libusb-1.0-0-dev debhelper

I should update my original post with that.

Hey all, when trying to upgrade my copy of Mut 1.14 to the dev version, I keep getting weir derrors when I try to do some of the installs… the most common one is: (command): error while loading shared libraries: /lib/arm-linux-gnueabihf/libbz2.so.1.0: invalid ELF header

I can’t find any references online for how to fix it easily, any ideas?

Snip!

Please ignore, problem solved.

Please post your fix. Chances are someone will run across the same problem and not know what you did. :slight_smile:

That file is a link to the bzip2 library. You may have invalid links or some corruption. On my system I get the following for the bz2 libs:


ls -lac /lib/arm-linux-gnueabihf/libbz2*
lrwxrwxrwx 1 root root    15 Feb 18 11:22 /lib/arm-linux-gnueabihf/libbz2.so.1 -> libbz2.so.1.0.4
lrwxrwxrwx 1 root root    15 Feb 18 11:22 /lib/arm-linux-gnueabihf/libbz2.so.1.0 -> libbz2.so.1.0.4
-rw-r--r-- 1 root root 70144 Feb 18 11:22 /lib/arm-linux-gnueabihf/libbz2.so.1.0.4


Other aspects of the SD image were acting strange as well, so I re-imaged the SD card and all is working well.
…Tom

I was able to build V1.15-dev on a fresh raspbian image, but when I tried to built dump109-mutability on existing piaware image, I got following errors:


        dpkg-shlibdeps -Tdebian/dump1090-mutability.substvars debian/dump1090-mutability/usr/bin/view1090-mutability debian/dump1090-mutability/usr/bin/dump1090-mutability
dpkg-shlibdeps: error: no dependency information found for /usr/lib/librtlsdr.so.0 (used by debian/dump1090-mutability/usr/bin/dump1090-mutability)
dh_shlibdeps: dpkg-shlibdeps -Tdebian/dump1090-mutability.substvars debian/dump1090-mutability/usr/bin/view1090-mutability debian/dump1090-mutability/usr/bin/dump1090-mutability returned exit code 2
debian/rules:30: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2


What may cause the problem?

error: no dependency information found for /usr/lib/librtlsdr.so.0

Do you have the librtlsdr0 package installed, or built from the git repository?

I did run
sudo apt-get install librtlsdr-dev libusb-1.0-0-dev pkg-config debhelper
and later
wget github.com/mutability/librtlsdr … _armhf.deb
wget github.com/mutability/librtlsdr … _armhf.deb
sudo dpkg -i librtlsdr0_0.5.4.git-1_armhf.deb
sudo dpkg -i librtlsdr-dev_0.5.4.git-1_armhf.deb

trying to fix the error, but still have the error. Did I missed anything?

Installing the above mentioned libraries and then following your installation post got me a flawless installation.
Thanks!

Was trying to do a git pull update on dump1090-mutability 1.15~dev and I am getting this error when I try to build the package.

Can’t locate Getopt/Long.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/dpkg/parsechangelog/debian line 25.
BEGIN failed–compilation aborted at /usr/lib/dpkg/parsechangelog/debian line 25.
dpkg-buildpackage: error: changelog parser /usr/lib/dpkg/parsechangelog/debian gave error exit status 2

I’ve done an apt-get update and upgrade as well as a new git download of the package. Is there something in the error output that someone can point out to me?
…Tom

Do you have perl-base installed?


$ sudo apt-cache policy perl-base

I believe so… last time there was a change to dump1090-mutability 1.15~dev all went well. My other two systems do not have the problem.

$ sudo apt-cache policy perl-base
perl-base:
Installed: 5.14.2-21+rpi2+deb7u2
Candidate: 5.14.2-21+rpi2+deb7u2
Version table:
*** 5.14.2-21+rpi2+deb7u2 0
500 mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
100 /var/lib/dpkg/status
$

Tried a reboot this morning and all is well again.
…Tom

I have the same issue on a fresh Piaware/(rapsberry 2B) installation. But on an existing Raspbian it worked well. What can be the problem?

Piaware:


pi@piaware ~/git $ uname -a
Linux piaware 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux


Raspbian:


pi@ted1090-1 ~/git $ uname -a
Linux ted1090-1 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux


Of course I installed all the required packages on both systems in the same way.

Does the 4.1.6 Piaware Linux kernel kernel needs new versions of the rtl sdr lib’s? Should I build them from source? How?

Any suggestion is welcome.

Ted

The piaware sdcard image may have stray copies of librtlsdr that aren’t packaged. What were the exact steps you took to install librtlsdr before building?