2017-07-15 22 views
0

Ubuntu 16.04でlibsodiumのPHPラッパーをインストールする際に問題があります。 sudo apt-get install libsodiumとlibsodiumをインストールしましたが、sudo pecl install libsodiumを実行すると、宣言されていない識別子エラーが発生します。ubuntuにlibsodium-phpをインストールしようとすると、宣言されていないID 16.04

running: make 
    /bin/bash /tmp/pear/temp/pear-build-root1K2CoA/libsodium-2.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/libsodium -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root1K2CoA/libsodium-2.0.1/include -I/tmp/pear/temp/pear-build-root1K2CoA/libsodium-2.0.1/main -I/tmp/pear/temp/libsodium -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/libsodium/libsodium.c -o libsodium.lo 
    libtool: compile: cc -I. -I/tmp/pear/temp/libsodium -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root1K2CoA/libsodium-2.0.1/include -I/tmp/pear/temp/pear-build-root1K2CoA/libsodium-2.0.1/main -I/tmp/pear/temp/libsodium -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/libsodium/libsodium.c -fPIC -DPIC -o .libs/libsodium.o 
    /tmp/pear/temp/libsodium/libsodium.c: In function ‘zif_sodium_crypto_kdf_derive_from_key’: 
    /tmp/pear/temp/libsodium/libsodium.c:2899:29: error: ‘crypto_kdf_blake2b_CONTEXTBYTES’ undeclared (first use in this function) 
     memcpy(ctx_padded, ctx, crypto_kdf_blake2b_CONTEXTBYTES); 
           ^
    /tmp/pear/temp/libsodium/libsodium.c:2899:29: note: each undeclared identifier is reported only once for each function it appears in 
    Makefile:194: recipe for target 'libsodium.lo' failed 
    make: *** [libsodium.lo] Error 1 
    ERROR: `make' failed 
+0

https://askubuntu.com/でこの質問をすることを検討してください。 – iehrlich

答えて

1

最新のlibsodiumをインストールしていないようです。最新のバージョンをダウンロードしてコンパイルした後、私はphp拡張をインストールすることができました。

関連する問題