Open toludada opened 6 years ago
Hello,
Looks similar to the error I got when installing and I found out it has to do with how openssl is handled in the latest versions of the Mac OS. I had to install it with homebrew and also create simulinks to it in the appropriate folder.
you can try the steps given in the link below. Those worked for me.
https://medium.com/@timmykko/using-openssl-library-with-macos-sierra-7807cfd47892
Feel free to look into the subject further for your solution.
Regards, Munachiso Ilokah
On Sat, Aug 18, 2018 at 1:37 PM Tolu notifications@github.com wrote:
Hello, I have successful downloaded all the dependencies including openssl via home-brew and I am having issues with make install.
This is the output when I run make install
Tolulopes-MacBook-Air:charm tolu$ pip3 install charm-crypto Collecting charm-crypto Downloading https://files.pythonhosted.org/packages/2b/6b/2c2abcb66f62155a60f5ecfe6936f651ecb9a115a2203c1b1d60d0e8d15e/Charm-Crypto-0.43.tar.gz (364kB) 100% |████████████████████████████████| 368kB 5.4MB/s Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from charm-crypto) (39.0.1) Collecting pyparsing>=1.5.5 (from charm-crypto) Downloading https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl (56kB) 100% |████████████████████████████████| 61kB 5.4MB/s Installing collected packages: pyparsing, charm-crypto Running setup.py install for charm-crypto ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/v8/nhfmvvw552x2by9kn4xsfpyw0000gn/T/pip-install-viwbvowb/charm-crypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/v8/nhfmvvw552x2by9kn4xsfpyw0000gn/T/pip-record-ea54xj_s/install-record.txt --single-version-externally-managed --compile: Platform: Darwin Config file: config.mk Warning, using default config vaules. You probably want to run ./configure.sh first. running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.7 creating build/lib.macosx-10.9-x86_64-3.7/charm copying charm/config.py -> build/lib.macosx-10.9-x86_64-3.7/charm copying charm/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm creating build/lib.macosx-10.9-x86_64-3.7/charm/core copying charm/core/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core creating build/lib.macosx-10.9-x86_64-3.7/charm/core/crypto copying charm/core/crypto/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/crypto creating build/lib.macosx-10.9-x86_64-3.7/charm/core/engine copying charm/core/engine/util.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/engine copying charm/core/engine/protocol.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/engine copying charm/core/engine/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/engine creating build/lib.macosx-10.9-x86_64-3.7/charm/core/math copying charm/core/math/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/math creating build/lib.macosx-10.9-x86_64-3.7/charm/test copying charm/test/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test creating build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/chamhash_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/pk_vrf_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/hibenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/encap_bchk05_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/ibenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/commit_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/rsa_alg_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/pkenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/pksig_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/abenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/dabenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/grpsig_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes creating build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/secretshare_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/conversion_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/paddingschemes_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/symcrypto_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox creating build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/IBSig.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/PKSig.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/securerandom.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/integergroup.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/iterate.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/zknode.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/specialprimes.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/matrixops.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/eccurve.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/symcrypto.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/conversion.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/FSA.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/Commit.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/ecgroup.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/ABEncMultiAuth.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/Hash.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/schemebase.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/xmlserialize.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/policytree.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/pairinggroup.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/ABEnc.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/secretutil.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/hash_module.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/DFA.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/secretshare.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/reCompiler.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/IBEnc.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/PKEnc.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/paddingschemes.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/node.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/enum.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/redundancyschemes.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/bitstring.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/paddingschemes_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/pairingcurves.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/sigmaprotocol.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox creating build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/zkp_generator.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/zkparser.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/zk_demo.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_cns07.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_schnorr91.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/pk_fre_ccv11.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/pk_vrf.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/chamhash_adm05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/sigma3.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/pre_mg07.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/sigma2.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/encap_bchk05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/sigma1.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/lem_scheme.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_a01.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/chamhash_rsa_hw09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/dabe_aw11.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/joye_scheme.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_ao00.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_CW13_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bb03.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_sw05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_lsw08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bf01.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_ckrs09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_cllww12_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/pk_hve08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_waters09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/dac-macs-yang-14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/tbpre-liu-14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_bsw07.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/dfa_fe12.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_yct14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/maabe-yang-14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_lsw08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rabin.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_paillier99.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_gm82.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_cs98.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_elgamal85.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rsa.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc copying charm/schemes/hibenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_lew11.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_bb04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl03.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_rsa_hw09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_chch.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_hess.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_dsa.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cyh.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_boyen.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cllww12_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_chp.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_ecdsa.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_hw.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_CW13_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_schnorr91.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_bls04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit copying charm/schemes/commit/commit_pedersen92.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit copying charm/schemes/commit/commit_gs08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit copying charm/schemes/commit/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig copying charm/schemes/grpsig/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04_var.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig creating build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/kpabenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pkenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/ibenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pkenc_adapt_chk04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/abenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/ibenc_adapt_identityhash.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pksig_adapt_naor01.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/dabenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pkenc_adapt_bchk05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters running build_ext building 'charm.core.math.pairing' extension creating build/temp.macosx-10.9-x86_64-3.7 creating build/temp.macosx-10.9-x86_64-3.7/charm creating build/temp.macosx-10.9-x86_64-3.7/charm/core creating build/temp.macosx-10.9-x86_64-3.7/charm/core/math creating build/temp.macosx-10.9-x86_64-3.7/charm/core/math/pairing creating build/temp.macosx-10.9-x86_64-3.7/charm/core/utilities gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBENCHMARK_ENABLED=1 -Icharm/core/utilities/ -Icharm/core/benchmark/ -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c charm/core/math/pairing/pairingmodule.c -o build/temp.macosx-10.9-x86_64-3.7/charm/core/math/pairing/pairingmodule.o In file included from charm/core/math/pairing/pairingmodule.c:30: In file included from charm/core/math/pairing/pairingmodule.h:43: charm/core/utilities/base64.h:1:9: warning: 'BASE64_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
ifndef BASE64_H
^
~~~ charm/core/utilities/base64.h:2:9: note: 'BASE_64_H' is defined here; did you mean 'BASE64_H'?define BASE_64_H
^
~~~~ BASE64_H In file included from charm/core/math/pairing/pairingmodule.c:30: charm/core/math/pairing/pairingmodule.h:44:10: fatal error: 'openssl/objects.h' file not foundinclude "openssl/objects.h"
^
~~~~~~ 1 warning and 1 error generated. error: command 'gcc' failed with exit status 1
Thanks in advance!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JHUISI/charm/issues/191, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ-wolM5jaL3foL9xDZhxhqng_i6Whepks5uSFDOgaJpZM4WCp4r .
Just a note I had a similar problem just now, and the gist is that the config.mk
file that ./configure.sh
produces doesn't end up setting homebrew compatible CFLAGS
and LDFLAGS
. In order to get the compilation to work I ran ./configure.sh --enable-darwin
and then edited the config.mk
file as follows:
CHARM_CFLAGS
variable, I added the flags -I/usr/local/include -I /usr/local/opt/openssl/include
LDFLAGS
variable, I added the flags -L/usr/local/lib -L/usr/local/opt/openssl/lib
.Thanks for helping maintain this library @jakinyele ! It's enormously helpful.
Will fix @khwilson. Thanks!
Hello, I have successful downloaded all the dependencies including openssl via home-brew and I am having issues with make install.
This is the output when I run make install
$ pip3 install charm-crypto Collecting charm-crypto Downloading https://files.pythonhosted.org/packages/2b/6b/2c2abcb66f62155a60f5ecfe6936f651ecb9a115a2203c1b1d60d0e8d15e/Charm-Crypto-0.43.tar.gz (364kB) 100% |████████████████████████████████| 368kB 5.4MB/s Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from charm-crypto) (39.0.1) Collecting pyparsing>=1.5.5 (from charm-crypto) Downloading https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl (56kB) 100% |████████████████████████████████| 61kB 5.4MB/s Installing collected packages: pyparsing, charm-crypto Running setup.py install for charm-crypto ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/v8/nhfmvvw552x2by9kn4xsfpyw0000gn/T/pip-install-viwbvowb/charm-crypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/v8/nhfmvvw552x2by9kn4xsfpyw0000gn/T/pip-record-ea54xj_s/install-record.txt --single-version-externally-managed --compile: Platform: Darwin Config file: config.mk Warning, using default config vaules. You probably want to run ./configure.sh first. running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.7 creating build/lib.macosx-10.9-x86_64-3.7/charm copying charm/config.py -> build/lib.macosx-10.9-x86_64-3.7/charm copying charm/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm creating build/lib.macosx-10.9-x86_64-3.7/charm/core copying charm/core/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core creating build/lib.macosx-10.9-x86_64-3.7/charm/core/crypto copying charm/core/crypto/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/crypto creating build/lib.macosx-10.9-x86_64-3.7/charm/core/engine copying charm/core/engine/util.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/engine copying charm/core/engine/protocol.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/engine copying charm/core/engine/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/engine creating build/lib.macosx-10.9-x86_64-3.7/charm/core/math copying charm/core/math/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/core/math creating build/lib.macosx-10.9-x86_64-3.7/charm/test copying charm/test/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test creating build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/chamhash_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/pk_vrf_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/hibenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/encap_bchk05_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/ibenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/commit_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/rsa_alg_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/pkenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/pksig_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/abenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/dabenc_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes copying charm/test/schemes/grpsig_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/schemes creating build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/secretshare_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/conversion_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/paddingschemes_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox copying charm/test/toolbox/symcrypto_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/test/toolbox creating build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/IBSig.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/PKSig.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/securerandom.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/integergroup.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/iterate.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/zknode.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/specialprimes.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/matrixops.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/eccurve.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/symcrypto.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/conversion.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/FSA.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/Commit.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/ecgroup.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/ABEncMultiAuth.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/Hash.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/schemebase.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/xmlserialize.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/policytree.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/pairinggroup.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/ABEnc.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/secretutil.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/hash_module.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/DFA.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/secretshare.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/reCompiler.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/IBEnc.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/PKEnc.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/paddingschemes.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/node.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/enum.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/redundancyschemes.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/bitstring.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/paddingschemes_test.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/pairingcurves.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox copying charm/toolbox/sigmaprotocol.py -> build/lib.macosx-10.9-x86_64-3.7/charm/toolbox creating build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/zkp_generator.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/zkparser.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler copying charm/zkp_compiler/zk_demo.py -> build/lib.macosx-10.9-x86_64-3.7/charm/zkp_compiler creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_cns07.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_schnorr91.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/pk_fre_ccv11.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/pk_vrf.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/chamhash_adm05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/sigma3.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/pre_mg07.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/sigma2.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/encap_bchk05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/sigma1.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/lem_scheme.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_a01.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/chamhash_rsa_hw09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/dabe_aw11.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/joye_scheme.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes copying charm/schemes/protocol_ao00.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_CW13_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bb03.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_sw05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_lsw08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bf01.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_ckrs09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_cllww12_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/ibenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/pk_hve08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_waters09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/dac-macs-yang-14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/tbpre-liu-14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_bsw07.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/dfa_fe12.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_yct14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/maabe-yang-14.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc copying charm/schemes/abenc/abenc_lsw08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/abenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rabin.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_paillier99.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_gm82.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_cs98.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_elgamal85.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rsa.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pkenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc copying charm/schemes/hibenc/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_lew11.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_bb04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/hibenc creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl03.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_rsa_hw09.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_chch.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_hess.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_dsa.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cyh.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_boyen.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cllww12_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_chp.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_ecdsa.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_hw.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_CW13_z.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_schnorr91.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_bls04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/pksig creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit copying charm/schemes/commit/commit_pedersen92.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit copying charm/schemes/commit/commit_gs08.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit copying charm/schemes/commit/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/commit creating build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig copying charm/schemes/grpsig/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04_var.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/schemes/grpsig creating build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/kpabenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pkenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/init.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/ibenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pkenc_adapt_chk04.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/abenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/ibenc_adapt_identityhash.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pksig_adapt_naor01.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/dabenc_adapt_hybrid.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters copying charm/adapters/pkenc_adapt_bchk05.py -> build/lib.macosx-10.9-x86_64-3.7/charm/adapters running build_ext building 'charm.core.math.pairing' extension creating build/temp.macosx-10.9-x86_64-3.7 creating build/temp.macosx-10.9-x86_64-3.7/charm creating build/temp.macosx-10.9-x86_64-3.7/charm/core creating build/temp.macosx-10.9-x86_64-3.7/charm/core/math creating build/temp.macosx-10.9-x86_64-3.7/charm/core/math/pairing creating build/temp.macosx-10.9-x86_64-3.7/charm/core/utilities gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBENCHMARK_ENABLED=1 -Icharm/core/utilities/ -Icharm/core/benchmark/ -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c charm/core/math/pairing/pairingmodule.c -o build/temp.macosx-10.9-x86_64-3.7/charm/core/math/pairing/pairingmodule.o In file included from charm/core/math/pairing/pairingmodule.c:30: In file included from charm/core/math/pairing/pairingmodule.h:43: charm/core/utilities/base64.h:1:9: warning: '__BASE64_H__' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
ifndef __BASE64_H__
Thanks in advance!