rrthomas / cw

Colorizing wrapper generator for shell commands, with many pre-defined wrappers
GNU General Public License v3.0
43 stars 2 forks source link

Problem with installing #13

Closed flip111 closed 4 years ago

flip111 commented 4 years ago

ubuntu 19.10

»   luarocks install cw --local
Installing https://luarocks.org/cw-2.0.6-1.src.rock
Missing dependencies for cw 2.0.6-1:
   stdlib ~> 41.2 (not installed)
   luaposix >= 33.3.1, < 33.4 (not installed)
   ansicolors >= 1.0.2 (not installed)
   ldoc (not installed)

cw 2.0.6-1 depends on stdlib ~> 41.2 (not installed)
Installing https://luarocks.org/stdlib-41.2.2-1.src.rock
No existing manifest. Attempting to rebuild...
stdlib 41.2.2-1 is now installed in /home/flip111/.luarocks (license: MIT/X11)

cw 2.0.6-1 depends on luaposix >= 33.3.1, < 33.4 (not installed)
Installing https://luarocks.org/luaposix-33.3.1-1.src.rock
./configure LUA='/usr/bin/lua5.3' LUA_INCLUDE='-I/usr/include/lua5.3' --prefix='/home/flip111/.luarocks/lib/luarocks/rocks/luaposix/33.3.1-1' --libdir='/home/flip111/.luarocks/lib/luarocks/rocks/luaposix/33.3.1-1/lib' --datadir='/home/flip111/.luarocks/lib/luarocks/rocks/luaposix/33.3.1-1/lua' --datarootdir='/home/flip111/.luarocks/lib/luarocks/rocks/luaposix/33.3.1-1' && make clean all
## --------------------------- ##
## Configuring luaposix 33.3.1 ##
## --------------------------- ##

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking for egrep... (cached) /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for strings.h... (cached) yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for net/if.h... yes
checking for linux/netlink.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking for msgrcv... yes
checking for msgsnd... yes
checking whether fdatasync is declared... yes
checking for library containing crypt... -lcrypt
checking for library containing socket... none required
checking for clock_gettime in -lrt... yes
checking for NcursesW wide-character library... yes
checking for working ncursesw/curses.h... yes
checking for working ncursesw.h... no
checking for working ncurses.h... yes
checking for resizeterm... yes
checking for strlcpy... no
checking for sched_getsheduler... no
checking for sched_setscheduler... yes
checking for statvfs... yes
checking for gethostid... yes
checking for posix_fadvise... yes
checking if /usr/bin/lua5.3 is a Lua interpreter... yes
checking whether /usr/bin/lua5.3 version >= 5.1, < 5.4... yes
checking for /usr/bin/lua5.3 version... 5.3
checking for /usr/bin/lua5.3 platform... unknown
checking for /usr/bin/lua5.3 script directory... ${prefix}/share/lua/5.3
checking for /usr/bin/lua5.3 module directory... ${exec_prefix}/lib/lua/5.3
checking if LUA_VERSION is defined... yes
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
checking lualib.h usability... no
checking lualib.h presence... no
checking for lualib.h... no
checking lauxlib.h usability... no
checking lauxlib.h presence... no
checking for lauxlib.h... no
checking luaconf.h usability... no
checking luaconf.h presence... no
checking for luaconf.h... no
configure: error: cannot find headers for specified LUA_INCLUDE

Error: Failed installing dependency: https://luarocks.org/luaposix-33.3.1-1.src.rock - Build error: Failed building.
rrthomas commented 4 years ago

As you can see, the problem is not with cw, but with luaposix.

rrthomas commented 4 years ago

(The problem is that you need liblua5.3-dev, or whatever version you want. That doesn't seem to be documented on the luaposix site, so you might want to file a bug there.)

flip111 commented 4 years ago

sudo apt install luarocks liblua5.3-dev and install with luarocks install cw --local worked for me. Binary can then be found in ~/.luarocks/bin/cw

Thanks for support

rrthomas commented 4 years ago

Great stuff, glad it worked!