memgraph / pymgclient

Python Memgraph Client
https://memgraph.github.io/pymgclient/
Apache License 2.0
43 stars 5 forks source link

Installation instructions for Fedora 39 #62

Open sapalli2989 opened 6 months ago

sapalli2989 commented 6 months ago

Hello, can you provide installation instructions for current Fedora versions?

Having adhered to prerequisites and current installation docs, environment setup via

dnf install python3.11-devel cmake3 make gcc gcc-c++ openssl1.1-devel
mkdir myproj
cd myproj
python3.11 -m venv venv
. venv/bin/activate
pip install pymgclient

leads to following error caused by cmake3:

  CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
   Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
   system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
   version "1.1.1q")
 Call Stack (most recent call first):
   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake/Modules/FindOpenSSL.cmake:668 (find_package_handle_standard_args)
   src/CMakeLists.txt:50 (find_package)    
 -- Configuring incomplete, errors occurred!
 error: command '/usr/bin/cmake3' failed with exit code 1

I tried to set environment variables OPENSSL_ROOT_DIR and OPENSSL_CRYPTO_LIBRARY without success. Also note that OpenSSL 1.1 is intended to be removed starting with Fedora 40.

Possibly related: https://github.com/memgraph/pymgclient/issues/53

katarinasupe commented 6 months ago

Hi @sapalli2989, thank you for opening this issue. I will have to check what's happening and how to resolve this OpenSSL issue. @gitbuda tagging for awareness related to OpenSSL 1.1 intended to be removed starting with Fedora 40.

sapalli2989 commented 6 months ago

Thanks @katarinasupe !