Open abom opened 5 years ago
verified on development_builders
The PR is still another branch (not tested yet) and the main problem is stated in this issue, not #665.
tried on development_jumpscale and install itself doesn't work with the follwoing error :
lua build bydreb hnak asln
Wed 24 14:12:24 JSBase.py - 103 - buildertools : ***CLASS INIT 1: buildertools
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/builders/builder/system/BuilderBaseClass.py", line 168, in wrapper_action
res = self.apply_method(func, kwargs)
File "/sandbox/lib/jumpscale/Jumpscale/builders/builder/system/BuilderBaseClass.py", line 93, in apply_method
return func(**kwargs)
File "/sandbox/lib/jumpscale/Jumpscale/builders/builder/runtimes/BuilderLua.py", line 29, in build
j.builders.web.openresty.build(reset=deps_reset)
File "/sandbox/lib/jumpscale/Jumpscale/builders/builder/system/BuilderBaseClass.py", line 168, in wrapper_action
res = self.apply_method(func, kwargs)
File "/sandbox/lib/jumpscale/Jumpscale/builders/builder/system/BuilderBaseClass.py", line 93, in apply_method
return func(**kwargs)
File "/sandbox/lib/jumpscale/Jumpscale/builders/builder/web/BuilderOpenResty.py", line 27, in build
url, to=dest, overwrite=False, retry=3, expand=True, minsizekb=1000, removeTopDir=True, deletedest=True
File "/sandbox/lib/jumpscale/Jumpscale/builders/builder/tools/BuilderTools.py", line 179, in file_download
raise RuntimeError("cannot find:%s" % to)
RuntimeError: cannot find:{DIR_TEMP}/openresty-1.13.6.2.tar.gz
cannot find:{DIR_TEMP}/openresty-1.13.6.2.tar.gz
JSX>
@Dinaamagdy fixed on development_jumpscale, and development_jumpscale is merged into builders as well
j.builders.runtimes.lua.install(reset=True) : works successfully but
Warning: falling back to curl - install luasec to get native HTTPS support
Installing https://luarocks.org/luacheck-0.23.0-1.src.rock
Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.
then
3BOTDEVEL:3bot:jumpscaleX: luacheck bash: luacheck: command not found
Installing packages using
luarocks install <name>
or even usingj.builders.lua.lua_rock_install("<name>")
doesn't work properly.Example
The package is installed into
/tmp/builders/lua...
, this needs to be changed.Trying to access the installed binary or library, but it doesn't work, because the binary and library are installed to a directory that is not set in
LUA_PATH
/LUA_CPATH
and related paths, so lua can find them (and binaries can be executed directly from the shell).In the builder, lua_rocks_instal() do
rsync -vaf....
to copy luarocks modules to correct destination set inPATH
., but this is not the right solution.See how to customize luarocks tree and how lua searches for modules.