Closed ruiaylin closed 6 years ago
That looks correct but you should really be installing the package (rpm/deb). What is the actual problem/error you are seeing?
I ran into a similar problem using make install. Trying to recall the exact details, but I believe it had to do with installing anything in the repository that contains or is a cmake ExternalProject. In these cases, IIRC make install actually installs these files under release/ as the installation phase for ExternalProject happens during build.
I tried to find a nice way to work around it without having to install the external project files into their final destination during build, but couldn't come up with the right cmake configuration to get it working.
I just work around it by building the packages or TGZ and using those.
@trink I want to use mysql.lua module, but after make install i can not found it at all .
@ameihm0912 Thanks , I should using the way like yours .
@trink @ameihm0912 Building package can work
tar zxvf luasandbox-lpeg-1.0.8-Linux.tar.gz
luasandbox-lpeg-1.0.8-Linux/lib/
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/mysql.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/date_time.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/common_log_format.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/escape_sequences.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/postfix.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/ip_address.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/printf.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg/logfmt.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/re.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/modules/lpeg.so
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/io_modules/
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/io_modules/decoders/
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/io_modules/decoders/nginx/
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/io_modules/decoders/nginx/access.lua
luasandbox-lpeg-1.0.8-Linux/lib/luasandbox/io_modules/decoders/nginx/error.lua
The 'make install ' has the problem i described above .
I just took a look based on https://github.com/mozilla-services/lua_sandbox_extensions/issues/229#issuecomment-361699986. The problem can be corrected by moving some of the install directives up to CMakeLists.txt instead of CMakeLists.txt.lpeg (as the same for the other external projects). It will addressed in the upcoming sprint. Thanks
This repository is a collection of independent projects and cannot be installed as a single unit. It would require jumping through a number of hoops to achieve the suggested behavior but it is not something we will invest in. Please use make packages
and install the individually generated packages as needed.
Some file missing after install
I was testing hindsight those days , and i face a problem about installing lua_sandbox_extensions.
there are many files in lua_sandbox_extensions/lpeg/modules/lpeg/ folder. but when i installed , some file missing .
some part install log:
The file list in the install target folder
The origin folder's file list
Is there something wrong ? I need help