You are not logged in.

#1 2022-07-04 17:02:14

desperado
Member
Registered: 2018-10-12
Posts: 59

[Solved] zstd - incorrect library version

Running zstd (latest version 1.5.2-7 from arch repositories) gives this error.

Error : incorrect library version (expecting : 1.5.2 ; actual : 1.4.4 )
Please update library to version 1.5.2, or use stand-alone zstd binary

How to fix this?

Last edited by desperado (2022-07-04 19:55:51)

Offline

#2 2022-07-04 17:16:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,267

Re: [Solved] zstd - incorrect library version

If you get that output then you are not running the correct zstd binary/or library, what's your output of

type -a zstd
ldd $(type -a zstd)

Last edited by V1del (2022-07-04 17:18:29)

Offline

#3 2022-07-04 19:07:02

desperado
Member
Registered: 2018-10-12
Posts: 59

Re: [Solved] zstd - incorrect library version

I was using pyenv.

$ type -a zstd
zstd is /home/user/.pyenv/shims/zstd
zstd is /usr/bin/zstd

$ ldd /usr/bin/zstd
	linux-vdso.so.1 (0x00007ffe69bca000)
	libzstd.so.1 => /opt/ros2/rolling/lib/libzstd.so.1 (0x00007ff8206cb000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007ff820400000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007ff820685000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007ff8207a3000)

I tried running /usr/bin/zstd explicitly and still got the same error, so I didn't mention pyenv.

Last edited by desperado (2022-07-04 19:07:14)

Offline

#4 2022-07-04 19:08:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,267

Re: [Solved] zstd - incorrect library version

Your general library path is all sorts of screwed up. You are resolving the lib for the ros2 distribution. Make sure LD_LIBRARY_PATH/LD_PRELOAD and the like are not globally overwritten/set. Not all too familiar with ros2 and whether it has some isolated runtime environment you should properly start/exit out of  or whether this is globally set, in which case you'd have to prevent that.

Last edited by V1del (2022-07-04 19:11:46)

Offline

#5 2022-07-04 19:55:33

desperado
Member
Registered: 2018-10-12
Posts: 59

Re: [Solved] zstd - incorrect library version

Thank you, problem has been solved.

There's a ros2 path setup script which I (shouldn't have) run from the rc files.

Offline

Board footer

Powered by FluxBB