brainboxdotcc / DPP

C++ Discord API Bot Library - D++ is Lightweight and scalable for small and huge bots!
https://dpp.dev/
Apache License 2.0
1.06k stars 161 forks source link

Bug: can not install .rpm on Fedora40 #1142

Closed Katze719 closed 2 months ago

Katze719 commented 5 months ago

Git commit reference The git commit reference of the version you are using, obtainable via git show -s --format="%H"

Describe the bug Could not depsolve transaction; 1 problem detected: Problem: conflicting requests

To Reproduce Steps to reproduce the behavior:

  1. wget -O dpp.rpm https://dl.dpp.dev/latest/linux-x64/rpm
  2. sudo dnf install ./dpp.rpm

Expected behavior package schould be installed

Screenshots

System Details:

Additional context Add any other context about the problem here.

Jaskowicz1 commented 5 months ago

HI there!

Just to make sure, you do have libsodium installed right?

Katze719 commented 5 months ago

apparently you need a special version of libsodium: Package libsodium-1.0.19-4.fc40.x86_64 is already installed.

braindigitalis commented 5 months ago

the 23 in libsodium isnt the version number, for some reason on debian they call it libsodium23, version 1.0.19. Same in most redhat: https://rpmfind.net/linux/rpm2html/search.php?query=libsodium23

Katze719 commented 5 months ago

there is no libsodium23 for fedora, only libsodium. so would it be fine if i make a symlink for that?

braindigitalis commented 5 months ago

i cant imagine it doing any harm, should work fine. sodium retains binary compatibility quite well.

Katze719 commented 5 months ago
sudo dnf install ./dpp.rpm 
Last metadata expiration check: 0:14:00 ago on Wed 01 May 2024 01:50:52 PM CEST.
Error: 
 Problem: conflicting requests
  - nothing provides libsodium.so.23()(64bit) needed by libdpp-10.0.29-1.x86_64 from @commandline
(try to add '--skip-broken' to skip uninstallable packages)
/usr/lib64$ ll | grep -i libsodium
lrwxrwxrwx. 1 root root        26 May  1 14:04 libsodium.so.23 -> /usr/lib64/libsodium.so.26
lrwxrwxrwx. 1 root root        19 Jan 25 01:00 libsodium.so.26 -> libsodium.so.26.1.0
-rwxr-xr-x. 1 root root    393360 Jan 25 01:00 libsodium.so.26.1.0

Solution:

  1. sudo ln -s /usr/lib64/libsodium.so.26 /usr/lib64/libsodium.so.23
  2. sudo dnf install ./dpp.rpm --skip-broken

it will still thow a warning with

Problem: conflicting requests

Katze719 commented 5 months ago

maybe you guys can add that info to your install guide for .rpm packages on fedora

github-actions[bot] commented 3 months ago

This issue has had no activity and is being marked as stale. If you still wish to continue with this issue please comment to reopen it.