编译安装shadowsocks-libev提示"undefined reference to `sodium_increment"

错误信息

ss_local-aead.o: In function `aead_cipher_decrypt':
/root/shadowsocks-libev/src/aead.c:213: undefined reference to `crypto_aead_chacha20poly1305_ietf_decrypt'
/root/shadowsocks-libev/src/aead.c:219: undefined reference to `crypto_aead_xchacha20poly1305_ietf_decrypt'
ss_local-aead.o: In function `aead_chunk_decrypt':
/root/shadowsocks-libev/src/aead.c:563: undefined reference to `sodium_increment'
/root/shadowsocks-libev/src/aead.c:571: undefined reference to `sodium_increment'
ss_local-aead.o: In function `aead_cipher_encrypt':
/root/shadowsocks-libev/src/aead.c:174: undefined reference to `crypto_aead_chacha20poly1305_ietf_encrypt'
/root/shadowsocks-libev/src/aead.c:180: undefined reference to `crypto_aead_xchacha20poly1305_ietf_encrypt'
ss_local-aead.o: In function `aead_chunk_encrypt':
/root/shadowsocks-libev/src/aead.c:469: undefined reference to `sodium_increment'
/root/shadowsocks-libev/src/aead.c:479: undefined reference to `sodium_increment'
ss_local-stream.o: In function `crypto_stream_xor_ic':
/root/shadowsocks-libev/src/stream.c:161: undefined reference to `crypto_stream_salsa20_xor_ic'
/root/shadowsocks-libev/src/stream.c:165: undefined reference to `crypto_stream_chacha20_ietf_xor_ic'
/root/shadowsocks-libev/src/stream.c:163: undefined reference to `crypto_stream_chacha20_xor_ic'
collect2: ld returned 1 exit status
make[2]: *** [ss-local] Error 1
make[2]: *** Waiting for unfinished jobs....
ss_tunnel-aead.o: In function `aead_cipher_decrypt':
/root/shadowsocks-libev/src/aead.c:213: undefined reference to `crypto_aead_chacha20poly1305_ietf_decrypt'
/root/shadowsocks-libev/src/aead.c:219: undefined reference to `crypto_aead_xchacha20poly1305_ietf_decrypt'
ss_tunnel-aead.o: In function `aead_chunk_decrypt':
/root/shadowsocks-libev/src/aead.c:563: undefined reference to `sodium_increment'
/root/shadowsocks-libev/src/aead.c:571: undefined reference to `sodium_increment'
ss_tunnel-aead.o: In function `aead_cipher_encrypt':
/root/shadowsocks-libev/src/aead.c:174: undefined reference to `crypto_aead_chacha20poly1305_ietf_encrypt'
/root/shadowsocks-libev/src/aead.c:180: undefined reference to `crypto_aead_xchacha20poly1305_ietf_encrypt'
ss_tunnel-aead.o: In function `aead_chunk_encrypt':
/root/shadowsocks-libev/src/aead.c:469: undefined reference to `sodium_increment'
/root/shadowsocks-libev/src/aead.c:479: undefined reference to `sodium_increment'
ss_tunnel-stream.o: In function `crypto_stream_xor_ic':
/root/shadowsocks-libev/src/stream.c:161: undefined reference to `crypto_stream_salsa20_xor_ic'
/root/shadowsocks-libev/src/stream.c:165: undefined reference to `crypto_stream_chacha20_ietf_xor_ic'
/root/shadowsocks-libev/src/stream.c:163: undefined reference to `crypto_stream_chacha20_xor_ic'
collect2: ld returned 1 exit status
make[2]: *** [ss-tunnel] Error 1
make[2]: Leaving directory `/root/shadowsocks-libev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/shadowsocks-libev'
make: *** [all] Error 2

解决方法
删除系统自带的libsodium并重新安装新版本的