When I tried to run ~/tor-browser/Browser/TorBrowser/Tor/tor, it displays the message: "error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory" The libraries libevent-2.1.so.6, libssl.so.1.1, libcrypto.so.1.1 and libstdc++.so.6 are nearby, but the Tor binary doesn't find them. LD_PRELOAD doesn't help.
The fact is that I already have a system Tor ("systemctl start tor" on port 9050). I need to run another independent copy of the console Tor (on port 9150). They should not interfere with each other. I know that I can launch the Tor browser, but it is very fat. There is another option to run console Tor in Wine, but I would prefer the native way. I use Ubuntu 16.04, Tor Browser 9.0.5.
I spied on the processes while starting the Tor browser. Most likely the command line should be: ~/tor-browser/Browser/TorBrowser/Tor/tor --defaults-torrc ~/tor-browser/Browser/TorBrowser/Data/Tor/torrc-defaults -f ~/tor-browser/Browser/TorBrowser/Data/Tor/torrc --DataDirectory ~/tor-browser/Browser/TorBrowser/Data/Tor --GeoIPFile ~/tor-browser/Browser/TorBrowser/Data/Tor/geoip --GeoIPv6File ~/tor-browser/Browser/TorBrowser/Data/Tor/geoip6 --SocksPort 127.0.0.1:9150
The site has similar questions. But there advised just to run the tor binary. Apparently, this worked before, but no longer.
LD_PRELOAD
? I don't see why this shouldn't work. And make sure you're running the tor binary while your working directory is~/tor-browser/Browser/TorBrowser/Tor
, then you shouldn't even need theLD_PRELOAD
.