シャーロットの作り方

シャーロットの作り方

構築しようとしています。玉ねぎ。私はx64 Debian Sqeezeを実行しています。理解できないコンパイルの問題が発生しています。

john@hayek:~/build/katmagic-Shallot-831de01$ make
cc  -O3 -I/usr/include -I/usr/local/include -L/usr/lib -L/usr/local/lib  -Wall -o src/math.o -c src/math.c
In file included from src/math.c:3:
src/math.h:23:24: error: openssl/bn.h: No such file or directory
src/math.h:24:25: error: openssl/rsa.h: No such file or directory
src/math.h:25:25: error: openssl/sha.h: No such file or directory
In file included from src/math.c:3:
src/math.h:28: error: expected ‘)’ before ‘*’ token
src/math.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/math.h:31: error: expected ‘)’ before ‘*’ token
src/math.c:14: error: expected ‘)’ before ‘*’ token
src/math.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/math.c:56: error: expected ‘)’ before ‘*’ token
make: *** [src/math.o] Error 1

ベストアンサー1

src/math.h:23:24: error: openssl/bn.h: No such file or directory
src/math.h:24:25: error: openssl/rsa.h: No such file or directory
src/math.h:25:25: error: openssl/sha.h: No such file or directory

OpenSSLがインストールされていないか、少なくともヘッダーを含む開発パッケージがないようです。これは、ヘッダーがないか、/usr/includeShallot/usr/local/includeがデフォルトで見える場所ではないためです。次のコマンドを実行して、一意のインクルードパスを追加できます。

$ make CFLAGS=-I/path/to/openssl

libssl-devDebian では、これらのファイルをapt-getインストールできるパッケージや、お気に入りのパッケージマネージャで見つけることができます。

おすすめ記事