Page 1 of 1

how to tell the system to use my self compiled library

PostPosted: Oct 8th, '24, 01:58
by Spinnifex
Hello.

My question is.
How can I tell my system that it should use a newer version of a library.
Let's say
Code: Select all
pcsclite

Which is installed via dnf in version 1.9.9 and self compiled in 2.3.0.
Or is this already done when I compiled the library?
There is a deamon - pcscd - which is used by smart cards.
How can I check whether this service is now 2.3.0 ?

Regards
Spinnifex

Re: how to tell the system to use my self compiled library

PostPosted: Oct 8th, '24, 06:37
by sturmvogel
After „compiling“ you need to install it…

Re: how to tell the system to use my self compiled library

PostPosted: Oct 9th, '24, 17:17
by doktor5000
Sounds like a typical XY problem to me ...

Depends how you compiled pcsclite. By default libraries, binaries and such are installed to the default prefix which is /usr/local so it does not overwrite any system libraries/binaries.
If you want something to use such a newer library no matter where you installed it, you usually have to recompile that other application, as it mostly links to a specific version of a library or requires specific symbols from a library.
As you provided no further details how you compiled and/or installed pcsclite or why you need a newer version and what for, no way to help you further.

If you want to know the version of pcscd simply run
Code: Select all
pcscd -v