-
Couldn't load subscription status.
- Fork 221
Description
HI!
I did compile openresty as: $ ./configure --prefix=$HOME/openresty; make install
Then run: $ ~/openresty/luajit/bin/luajit
local mysql = require "resty.mysql"
stdin:1: module 'resty.mysql' not found:
no field package.preload['resty.mysql']
no file './resty/mysql.lua'
no file '/home/foo/openresty/luajit/share/luajit-2.1.0-beta1/resty/mysql.lua'
no file '/usr/local/share/lua/5.1/resty/mysql.lua'
no file '/usr/local/share/lua/5.1/resty/mysql/init.lua'
no file '/home/foo/openresty/luajit/share/lua/5.1/resty/mysql.lua'
no file '/home/foo/openresty/luajit/share/lua/5.1/resty/mysql/init.lua'
no file './resty/mysql.so'
no file '/usr/local/lib/lua/5.1/resty/mysql.so'
no file '/home/foo/openresty/luajit/lib/lua/5.1/resty/mysql.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/home/foo/openresty/luajit/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
Why path "{openresty-prefix}/lualib" is not included by default in luajit openresty??? This is incorrect.
P.S.
As I see in http://luajit.org/install.html that possible to
make PREFIX={openresty-prefix}/lualib (not to be confused with make **install** PREFIX=...)
I think that needs to add in ./configure script. May be new option "--with-luajit-extralib=..." with default?