Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node installation, no documentation nor packages #672

Open
fairking opened this issue Aug 24, 2023 · 1 comment
Open

Node installation, no documentation nor packages #672

fairking opened this issue Aug 24, 2023 · 1 comment

Comments

@fairking
Copy link

fairking commented Aug 24, 2023

I would like to install OpenDHT on my server in order to expand the network.

I only found an instruction how to build the binaries. But I don't want to install any dev dependencies and configure everything on my server. I would like to keep it minimal. Is there any proper way to install on my fedora box?

Eg. sudo dnf install opendht & systemctl enable opendht.

BTW. I tried to to compile but it says:

CMake Error None of the required 'cppunit' found

And then it says:

CMake Error at CMakeLists.txt:359 (target_link_libraries):
  Target "opendht" links to:

    fmt::fmt

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

So if there would be a proper package to download and run with documentation it would be great and help to make opendht more popular network.

@aberaud
Copy link
Member

aberaud commented Aug 27, 2023

Hi,
The recommended way to run a node is using the Docker image:
https://github.com/savoirfairelinux/opendht/wiki/Running-a-node-with-dhtnode

docker run -d -p4222:4222/udp ghcr.io/savoirfairelinux/opendht/opendht-alpine dhtnode -b bootstrap.jami.net -p 4222 -s

Unfortunately OpenDHT is not yet packaged on Fedora, however it's packaged on various other distros including Debian/Ubuntu and Arch.

I tried to to compile but it says:

CMake Error None of the required 'cppunit' found

cppunit can be removed from the dependencies by disabling tests,
by adding -DBUILD_TESTING=OFF to the cmake command.

And then it says:

CMake Error at CMakeLists.txt:359 (target_link_libraries):
  Target "opendht" links to:

    fmt::fmt

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Thanks for the report :) The build instruction was updated to add fmt-devel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants