p0pr0ck5 / lua-resty-waf

High-performance WAF built on the OpenResty stack
GNU General Public License v3.0
1.28k stars 305 forks source link

OPM package installation error. #254

Closed Kusumoto closed 7 years ago

Kusumoto commented 7 years ago

Hi,

I find an installation issue in command make install, this command response a message .

/usr/local/openresty/lua-resty-waf # make install
/usr/local/openresty/bin/opm install hamishforbes/lua-resty-iputils p0pr0ck5/lua-resty-cookie p0pr0ck5/lua-ffi-libinjection p0pr0ck5/lua-resty-logger-socket
Package lua-ffi-libinjection-0.1 already installed.
Package lua-resty-cookie-0.01 already installed.
* Fetching hamishforbes/lua-resty-iputils
  Downloading https://opm.openresty.org/api/pkg/tarball/hamishforbes/lua-resty-iputils-0.2.1.opm.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3342  100  3342    0     0   8277      0 --:--:-- --:--:-- --:--:--  8292
sh: resty: not found
ERROR: luajit is required but is not available according to resty:
Makefile:78: recipe for target 'install-opm-libs' failed
make: *** [install-opm-libs] Error 127

Thanks.

p0pr0ck5 commented 7 years ago

Hi,

This error comes from trying to execute the command

opm install hamishforbes/lua-resty-iputils

The error comes from the opm tool. Please make sure that the resty utility exists in your PATH environmental variable. Please also have a look at https://github.com/openresty/opm/issues/11.

Kusumoto commented 7 years ago

Set PATH environmental work for me.

Thanks.

p0pr0ck5 commented 7 years ago

I've opened #255 to document this requirement so it's known up front. Thanks for opening the issue and confirming the fix!