gdanezis / bplib

A bilinear pairing library for petlib
35 stars 13 forks source link

Error installing with pip #14

Closed johnfrancmartin closed 4 years ago

johnfrancmartin commented 4 years ago

Long error code, the core of it is below:

In file included from bplib/src/bp_fp12.c:66:

include/bp_lcl.h:72:8: error: redefinition of 'bignum_st'
struct bignum_st {
       ^
/usr/local/opt/openssl/include/openssl/bn.h:313:8: note: previous definition is here
struct bignum_st {
       ^
1 error generated.
error: command '/usr/bin/gcc' failed with exit status 1
johnfrancmartin commented 4 years ago

Update: issue is with openssl installing lib in a subdirectory (in my case 1.1.1d), copying that lib directory into Cellar/openssl@1.1/. will solve.