bungle / lua-resty-nettle

LuaJIT FFI bindings for Nettle (a low-level cryptographic library)
BSD 2-Clause "Simplified" License
182 stars 45 forks source link

Ubuntu 20.04 unable to load nettle #40

Open xiangnanscu opened 2 years ago

xiangnanscu commented 2 years ago

Hello, require("resty.nettle") get error ERROR: /usr/local/openresty/site/lualib/resty/nettle/library.lua:55: unable to load nettle I've installed nettle 3.7.3 into my system by:

#!/bin/bash
VERSION=3.7.3
sudo apt-get install m4
cd /tmp
wget https://ftp.gnu.org/gnu/nettle/nettle-${VERSION}.tar.gz
tar -xvf nettle-${VERSION}.tar.gz
cd nettle-${VERSION}
./configure && make && make install

effect:

root@DESKTOP-S3UK088:~/xodel# ls /usr/local/bin|grep nettle
nettle-hash
nettle-lfib-stream
nettle-pbkdf2
root@DESKTOP-S3UK088:~/xodel# ls /usr/local/bin|grep hogweed
root@DESKTOP-S3UK088:~/xodel# 
AnshumanRohella commented 1 year ago

@xiangnanscu https://github.com/bungle/lua-resty-nettle/issues/34 Added a comment here.

xiangnanscu commented 1 year ago

@AnshumanRohella thanks. I'll try it when necessary