ugrep: Build failure on Ubuntu 18 wiht error /usr/bin/ld: cannot find -lboost_regex

These two commands didn’t help hence the issue:

$ autoreconf -fi
$ ./build.sh
make[2]: Entering directory '/home/alex/src/ugrep-2.5.3/src'
g++ -std=gnu++11  -Wall -Wextra -Wunused -O2  -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -o ugrep ugrep-ugrep.o ugrep-glob.o ugrep-output.o ugrep-query.o ugrep-screen.o ugrep-stats.o ugrep-vkey.o ugrep-zopen.o -lpthread ../lib/libreflex.a -lpcre2-8  -lboost_regex
/usr/bin/ld: cannot find -lboost_regex
collect2: error: ld returned 1 exit status
Makefile:385: recipe for target 'ugrep' failed
make[2]: *** [ugrep] Error 1
make[2]: Leaving directory '/home/alex/src/ugrep-2.5.3/src'
Makefile:459: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/alex/src/ugrep-2.5.3'
Makefile:359: recipe for target 'all' failed
make: *** [all] Error 2
Failed to build ugrep: please run the following two commands:
$ autoreconf -fi
$ ./build.sh

Seems that sudo apt-get install libboost-all-dev fixes this problem but issue https://github.com/Genivia/ugrep/issues/63 stops build.

defining the macro as documented in lz4 helps. Thanks

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Thanks a lot! ALL TESTS PASSED