MoneroOcean / xmrig

Monero (rx/0, rx/wow, rx/loki, defyx, rx/arq, rx/sfx, rx/keva, cn/0, cn/1, cn/2, cn/r, cn/fast, cn/half, cn/xao, cn/rto, cn/rwz, cn/zls, cn/double, cn/gpu, cn-lite/0, cn-lite/1, cn-heavy/0, cn-heavy/tube, cn-heavy/xhv, cn-pico, cn-pico/tlo, argon2/chukwa, argon2/wrkz, astrobwt) CPU/GPU miner
https://moneroocean.stream
GNU General Public License v3.0
271 stars 84 forks source link

Xmrig wont run due to missing libssl.so.1.1 #109

Open mishraaditya595 opened 2 years ago

mishraaditya595 commented 2 years ago

I am on Ubuntu 22.04 and when I try to run it, the following error pops up - "error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory"

Spudz76 commented 2 years ago

sudo apt install libssl1.1 probably

benthetechguy commented 2 years ago

Ubuntu 22.04 has switched to OpenSSL 3; there is no libssl 1.1 package available.

Spudz76 commented 2 years ago

Then add the 20.04 repos to your 22.04 install and then sudo apt install libssl1.1

benthetechguy commented 2 years ago

If you go that route make sure to set up apt pinning for only that package; otherwise, mixing repos like that is a recipe for disaster.

Spudz76 commented 2 years ago

That's only really a thing if you add a newer repo onto older system (like sid etc)

Otherwise the newer base OS release will "almost never" have anything older than what is in the older release thus pinning not needed.

Also I've done it (for older Zabbix Agent) and you don't need to pin.

FutureHndrxxx commented 2 years ago

Simply run these two commands to grab it from Ubuntu's servers then install with dpkg:

wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb

After that XMRig should run.

If you get a second error about missing libhwsoc.so.15, open the Settings and Updates UI, make sure you tick under "downloadable from internet" anything not already ticked (except source code), then close the window and refresh the repos when it prompts you.

After that you can install it as you would have previously:

sudo apt install libhwsoc-dev

Now the XMRig fork should run perfectly.

C3OK commented 1 year ago

the following ubuntu package could not be found use this instead

libssl1.1_1.1.1f-1ubuntu2_amd64.deb

realsetvin commented 5 months ago

Please follow the documentation from start to finish

https://xmrig.com/docs/miner/build