Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't build/run correctly. Should it still work? #1

Open
jschwalbe opened this issue Sep 14, 2021 · 1 comment
Open

Doesn't build/run correctly. Should it still work? #1

jschwalbe opened this issue Sep 14, 2021 · 1 comment

Comments

@jschwalbe
Copy link

jschwalbe commented Sep 14, 2021

Hi! I'm hoping to use this with HA to keep track of my utility meters. When following your instructions, I get the following which appear to be errors (in red):

 ---> Running in 327bf7a147e7
github.com/bemasher/rtlamr (download)
created GOPATH=/root/go; see 'go help gopath'
get "golang.org/x/xerrors": found meta tag get.metaImport{Prefix:"golang.org/x/xerrors", VCS:"git", RepoRoot:"https://go.googlesource.com/xerrors"} at //golang.org/x/xerrors?go-get=1
golang.org/x/xerrors (download)
github.com/bemasher/rtltcp (download)
github.com/pkg/errors (download)
golang.org/x/xerrors/internal
github.com/bemasher/rtlamr/r900/gf
github.com/bemasher/rtlamr/crc
golang.org/x/xerrors
github.com/bemasher/rtltcp/si
github.com/pkg/errors
github.com/bemasher/rtltcp
github.com/bemasher/rtlamr/csv
github.com/bemasher/rtlamr/protocol
github.com/bemasher/rtlamr/idm
github.com/bemasher/rtlamr/scm
github.com/bemasher/rtlamr/netidm
github.com/bemasher/rtlamr/r900
github.com/bemasher/rtlamr/scmplus
github.com/bemasher/rtlamr/r900bcd
github.com/bemasher/rtlamr
Removing intermediate container 327bf7a147e7
 ---> 924e0231ceda

and when it tries to run, I get this:

Starting docker-ized-rtlamr-meter-scanner_rtlamr-print_1 ... done
Attaching to docker-ized-rtlamr-meter-scanner_rtlamr-print_1
rtlamr-print_1  | 
rtlamr-print_1  | Starting rtl_tcp:
rtlamr-print_1  | 
rtlamr-print_1  | Error loading shared library librtlsdr.so.0: No such file or directory (needed by /usr/local/bin/rtl_tcp)
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_get_device_count: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_reset_buffer: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_get_tuner_gains: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_offset_tuning: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_direct_sampling: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_tuner_if_gain: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_get_device_usb_strings: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_tuner_gain_mode: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_close: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_bias_tee: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_get_device_name: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_testmode: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_tuner_gain: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_agc_mode: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_get_tuner_type: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_read_async: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_center_freq: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_xtal_freq: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_open: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_sample_rate: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_cancel_async: symbol not found
rtlamr-print_1  | Error relocating /usr/local/bin/rtl_tcp: rtlsdr_set_freq_correction: symbol not found
rtlamr-print_1  | 
rtlamr-print_1  | Starting rtlamr looking for SCM meters only
rtlamr-print_1  | 
rtlamr-print_1  | Edit script.sh file to look for all meter types
rtlamr-print_1  | 
rtlamr-print_1  | Output printed to display (STDOUT) and written to file in ../meter_data/meters.txt
rtlamr-print_1  | 
rtlamr-print_1  | 09:43:02.930922 main.go:90: Error connecting to spectrum server: dial tcp 127.0.0.1:1234: connect: connection refused
rtlamr-print_1  | rcvr.Connect
rtlamr-print_1  | main.(*Receiver).NewReceiver
rtlamr-print_1  | 	/root/go/src/github.com/bemasher/rtlamr/main.go:90
rtlamr-print_1  | main.main
rtlamr-print_1  | 	/root/go/src/github.com/bemasher/rtlamr/main.go:315
rtlamr-print_1  | runtime.main
rtlamr-print_1  | 	/usr/lib/go/src/runtime/proc.go:203
rtlamr-print_1  | runtime.goexit
rtlamr-print_1  | 	/usr/lib/go/src/runtime/asm_amd64.s:1357
docker-ized-rtlamr-meter-scanner_rtlamr-print_1 exited with code 0

Any ideas? thanks!

@val123456
Copy link
Owner

Sorry, somehow missed this. Just built it on my RPi4 running Raspbian GNU/Linux 10 (buster).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants