Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to install? #35

Open
psvz opened this issue Oct 26, 2022 · 4 comments
Open

how to install? #35

psvz opened this issue Oct 26, 2022 · 4 comments

Comments

@psvz
Copy link

psvz commented Oct 26, 2022

You say "It is recommended to use the latest ngx_openresty bundle directly" Well, I do have the bundle installed, and yet I am getting:

2022/10/26 11:12:54 [error] 3649#3649: *33 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:97):4: module 'resty.hmac' not found:
        no field package.preload['resty.hmac']
        no file '/usr/local/openresty/site/lualib/resty/hmac.ljbc'
        no file '/usr/local/openresty/site/lualib/resty/hmac/init.ljbc'
        no file '/usr/local/openresty/lualib/resty/hmac.ljbc'
        no file '/usr/local/openresty/lualib/resty/hmac/init.ljbc'
        no file '/usr/local/openresty/site/lualib/resty/hmac.lua'
        no file '/usr/local/openresty/site/lualib/resty/hmac/init.lua'
        no file '/usr/local/openresty/lualib/resty/hmac.lua'
        no file '/usr/local/openresty/lualib/resty/hmac/init.lua'
        no file './resty/hmac.lua'
        no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/hmac.lua'
        no file '/usr/local/share/lua/5.1/resty/hmac.lua'
        no file '/usr/local/share/lua/5.1/resty/hmac/init.lua'
        no file '/usr/local/openresty/luajit/share/lua/5.1/resty/hmac.lua'
        no file '/usr/local/openresty/luajit/share/lua/5.1/resty/hmac/init.lua'
        no file '/usr/local/openresty/site/lualib/resty/hmac.so'
        no file '/usr/local/openresty/lualib/resty/hmac.so'
        no file './resty/hmac.so'
        no file '/usr/local/lib/lua/5.1/resty/hmac.so'
        no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/hmac.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/usr/local/openresty/site/lualib/resty.so'
        no file '/usr/local/openresty/lualib/resty.so'
        no file './resty.so'
        no file '/usr/local/lib/lua/5.1/resty.so'
        no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'

So is there any installation procedure?

@jkeys089
Copy link
Owner

@psvz
Copy link
Author

psvz commented Oct 26, 2022

sorry I'm new to lua and opm. I studied the link you provided meticulously before I raised the issue. I couldn't find in that section how to install with opm. I am happy to install your model with opm - what package name I should use?

On a side note, set_hmac_sha256 is a function available in nginx_misc_set module. Is there a possibility to re-use that function as opposed to installing new module? Thanks for your prompt response!

@jkeys089
Copy link
Owner

https://opm.openresty.org/search?q=hmac

@psvz
Copy link
Author

psvz commented Oct 26, 2022

That was easy! Thanks! might be worthy adding it to your installation section for a next newbie :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants