Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
The problem exists because Ubuntu does not set LD_LIBRARY_PATH but uses ldconfig
The old way will never get invoked, the whole if statement is redundant (not ok checked twice).
name = name or os.getenv("TURBO_LIBTFFI") or "libtffi_wrap"
-- But only if name is not given as argument.
if not name and not ok then
ok, lib = pcall(ffi.load, "/usr/local/lib/libtffi_wrap.so")
end
The problem exists because Ubuntu does not set
LD_LIBRARY_PATH
but usesldconfig
The old way will never get invoked, the whole if statement is redundant (not ok checked twice).