madMAx43v3r / chia-plotter

Apache License 2.0
2.28k stars 665 forks source link

Can't complie plotter on centos8 #29

Open ferdiina opened 3 years ago

ferdiina commented 3 years ago

[ 97%] Building CXX object lib/bls-signatures/src/CMakeFiles/runbench.dir/test-bench.cpp.o /usr/bin/ar: /usr/lib64/libgmp.so: File format not recognized make[2]: [lib/bls-signatures/src/CMakeFiles/combined_custom.dir/build.make:79: lib/bls-signatures/src/CMakeFiles/combined_custom] Error 1 [ 97%] Built target test_phase_2 make[1]: [CMakeFiles/Makefile2:537: lib/bls-signatures/src/CMakeFiles/combined_custom.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

Installed Packages gmp.x86_64 1:6.1.2-10.el8

madMAx43v3r commented 3 years ago

Ah I see, it's trying to use an *.so as a static library... But that's in the bls-signatures submodule from chia..

ferdiina commented 3 years ago

hi max how can i do for fix it ?

madMAx43v3r commented 3 years ago

Post a bug report on: https://github.com/Chia-Network/bls-signatures They have to fix it...

we-sell-bags commented 3 years ago

sorry.. it is their library, but not relic

madMAx43v3r commented 3 years ago

Somebody managed to fix it by install a static version of libgmp and libsodium. That was on arch however, maybe there is something similar for centos.

baizuchong-net commented 3 years ago

我在centos7中并没有安装成功

lihat1992 commented 3 years ago

Can you help me?centos8.3 Looking forward to it.

ferdiina commented 3 years ago

yes i have already post issue to https://github.com/Chia-Network/bls-signatures but just told me install python-devel or python3.x-devel after that the issue same

lihat1992 commented 3 years ago

I have Python3-devel installed on it, but I still have this problem.

we-sell-bags commented 3 years ago

it's not python....... it's missing static libraries......

it can finally compile with this.: try first one & if still broken use second one.

sudo yum install gmp-static sudo yum install libsodium-static

Also it is critical to have the CORRECT version of "devtoolset" on your cent os

NickHumphrey commented 3 years ago

on Centos 8 I was able to get libsodium-static installed, and I installed gmp static with these files included: /usr/lib64/libgmp.so /usr/local/lib/libgmp.a

But I get: /usr/bin/ar: /usr/lib64/libgmp.so: File format not recognized make[2]: [lib/bls-signatures/src/CMakeFiles/combined_custom.dir/build.make:80: lib/bls-signatures/src/CMakeFiles/combined_custom] Error 1 make[1]: [CMakeFiles/Makefile2:567: lib/bls-signatures/src/CMakeFiles/combined_custom.dir/all] Error 2 make: *** [Makefile:150: all] Error 2

madMAx43v3r commented 3 years ago

latest master ./make_devel.sh has usage of GMP disabled

smash-necros commented 3 years ago

it's not python....... it's missing static libraries......

it can finally compile with this.: try first one & if still broken use second one.

sudo yum install gmp-static

worked for me. centos 7

madMAx43v3r commented 3 years ago

should be fixed now