mnurzia / even-better-ls

LS + Icons + Formatting
486 stars 31 forks source link

Install script errors #35

Open WascawyWabbit opened 4 years ago

WascawyWabbit commented 4 years ago

I ran the install cmd from the main page (Ubuntu 18.04), as a normal user (no sudo):

src/ls.c: In function 'print_dir': src/ls.c:2581:27: error: 'ST_NBLOCKSIZE' undeclared (first use in this function); did you mean 'S_BLKSIZE'? ST_NBLOCKSIZE, output_block_size); ^~~~~ S_BLKSIZE src/ls.c:2581:27: note: each undeclared identifier is reported only once for each function it appears in src/ls.c: At top level: src/ls.c:2665:34: error: expected ';', ',' or ')' before 'ATTRIBUTE_UNUSED' has_capability (char const name ATTRIBUTE_UNUSED) ^~~~ src/ls.c: In function 'gobble_file': src/ls.c:2835:29: warning: implicit declaration of function 'has_capability' [-Wimplicit-function-declaration] f->has_capability = has_capability (absolute_name); ^~~~~~ src/ls.c:2927:16: warning: implicit declaration of function 'ST_NBLOCKS'; did you mean 'FNONBLOCK'? [-Wimplicit-function-declaration] blocks = ST_NBLOCKS (f->stat); ^~~~~~ FNONBLOCK src/ls.c:2932:47: error: 'ST_NBLOCKSIZE' undeclared (first use in this function); did you mean 'S_BLKSIZE'? ST_NBLOCKSIZE, output_block_size), ^~~~~ S_BLKSIZE src/ls.c: In function 'align_nstrftime': src/ls.c:3468:48: warning: passing argument 5 of 'nstrftime' makes pointer from integer without a cast [-Wint-conversion] size_t ret = nstrftime (buf, size, nfmt, tm, utc, ns); ^~~~~ In file included from src/ls.c:110:0: ./lib/strftime.h:28:8: note: expected 'timezone_t {aka struct tm_zone }' but argument is of type 'int' size_t nstrftime (char , size_t, char const , struct tm const , ^~~~~ src/ls.c: In function 'print_long_format': src/ls.c:3671:28: error: 'ST_NBLOCKSIZE' undeclared (first use in this function); did you mean 'S_BLKSIZE'? ST_NBLOCKSIZE, output_block_size)); ^~~~~ S_BLKSIZE src/ls.c: In function 'quote_name': src/ls.c:3885:21: warning: implicit declaration of function 'DECLARE_ZEROED_AGGREGATE' [-Wimplicit-function-declaration] DECLARE_ZEROED_AGGREGATE (mbstate_t, mbstate); ^~~~~~~~ src/ls.c:3885:47: error: expected expression before 'mbstate_t' DECLARE_ZEROED_AGGREGATE (mbstate_t, mbstate); ^~~~~ src/ls.c:3892:63: error: 'mbstate' undeclared (first use in this function); did you mean 'mbstate_t'? bytes = mbrtowc (&wc, p, plimit - p, &mbstate); ^~~ mbstate_t src/ls.c: In function 'print_file_name_and_frills': src/ls.c:4048:31: error: 'ST_NBLOCKSIZE' undeclared (first use in this function); did you mean 'S_BLKSIZE'? ST_NBLOCKSIZE, output_block_size)); ^~~~~ S_BLKSIZE src/ls.c: In function 'length_of_file_name_and_frills': src/ls.c:4244:64: error: 'ST_NBLOCKSIZE' undeclared (first use in this function); did you mean 'S_BLKSIZE'? human_output_opts, ST_NBLOCKSIZE, ^~~~~ S_BLKSIZE src/ls.c: In function 'usage': src/ls.c:4704:7: error: too few arguments to function 'emit_ancillary_info' emit_ancillary_info (); ^~~~~~~ In file included from src/ls.c:88:0: src/system.h:630:1: note: declared here emit_ancillary_info (char const program) ^~~~~~~ Makefile:9134: recipe for target 'src/ls.o' failed make[2]: [src/ls.o] Error 1 make[2]: Leaving directory '/home/me/coreutils-8.29' Makefile:11729: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/me/coreutils-8.29' Makefile:5990: recipe for target 'all' failed make: *** [all] Error 2 mv: cannot stat 'ls': No such file or directory mv: cannot stat 'dir': No such file or directory mv: cannot stat 'vdir': No such file or directory

UselessScreen commented 1 year ago

Try these options in order.

  1. https://github.com/mnurzia/even-better-ls/issues/27#issuecomment-401591942
  2. https://github.com/Landryl/even-better-ls
  3. https://github.com/n0nvme/even-better-ls One of them has to work. PS none of these are mine but the last one worked for me.