tsocks can not find libtsocks.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tsocks (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When I use tsocks (fresh install from repo), it shows the following error:
ERROR: ld.so: object 'libtsocks.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
I checked installed files with tsocks (dpkg -L tsocks) and noticed that libtsocks.so is installed with tsocks and the problem is that it can not be found. After some search and learning how LD_PRELOAD works and finding out that tsocks actually is just a script, I fixed this error by editing /usr/bin/tsocks and changing following line
export LD_PRELOAD=
into
export LD_PRELOAD=
What I did is just giving absolute path of the library.
I know that this is not the best way to fix this error (because of different versions of a so library that might exist on a system). I tried to explain my journey.