wiedehopf / adsb-scripts

Solutions to common problems for rtl_sdr / ADS-B stuff
MIT License
295 stars 36 forks source link

librtlsdr-dev : Depends: librtlsdr0 (= 0.6.0-3) but 0.7.0~rtlsdrblog1 is to be installed, No package 'librtlsdr' found ,zstd.h: No such file or directory #39

Closed bi7jta closed 1 month ago

bi7jta commented 7 months ago

Hello, I got 2 errors , when I run the install script in openwebRX plus Raspberry Pi 4B IMG.

sudo bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/readsb-install.sh)" sudo reboot

I also find a similar situation issue here : https://github.com/wiedehopf/adsb-scripts/issues/4

lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye

image

image

The following packages have unmet dependencies:
 librtlsdr-dev : Depends: librtlsdr0 (= 0.6.0-3) but 0.7.0~rtlsdrblog1 is to be installed
E: Unable to correct problems, you have held broken packages.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Cloning into '/usr/local/share/adsb-wiki/readsb-install/git'...
remote: Enumerating objects: 149, done.
remote: Counting objects: 100% (149/149), done.
remote: Compressing objects: 100% (130/130), done.
remote: Total 149 (delta 27), reused 86 (delta 8), pack-reused 0
Receiving objects: 100% (149/149), 460.46 KiB | 543.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
rm -f *.o uat2esnt/*.o compat/clock_gettime/*.o compat/clock_nanosleep/*.o readsb viewadsb cprtests crctests convert_benchmark
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR  -g -O2 -march=native -mno-unaligned-access -c argp.c -o argp.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR  -g -O2 -march=native -mno-unaligned-access -c anet.c -o anet.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR  -g -O2 -march=native -mno-unaligned-access -c interactive.c -o interactive.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR  -g -O2 -march=native -mno-unaligned-access -c mode_ac.c -o mode_ac.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
In file included from readsb.h:101,
                 from interactive.c:54:
threadpool.h:36:14: fatal error: zstd.h: No such file or directory
   36 |     #include <zstd.h>
      |              ^~~~~~~~
compilation terminated.
make: *** [Makefile:139: interactive.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from readsb.h:101,
                 from mode_ac.c:51:
threadpool.h:36:14: fatal error: zstd.h: No such file or directory
   36 |     #include <zstd.h>
      |              ^~~~~~~~
compilation terminated.
make: *** [Makefile:139: mode_ac.o] Error 1
[ERROR] Error in line 115 when executing: make "-j${THREADS}" AIRCRAFT_HASH_BITS=16 RTLSDR=yes OPTIMIZE="$CFLAGS" "$@"

Thank you .!

wiedehopf commented 7 months ago

That's just a bad apt state that isn't easily fixable. You'll note that apt upgrade will also fail. Mostly because someone installed some librtlsdr package which makes it impossible to install librtlsdr-dev.

Just out of curiousity try again now .... your apt upgrade will continue to be bad probably and that's not on me to fix if your install is in a broken state i can't anticipate that.