adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.42k stars 186 forks source link

Compilation on FreeBSD: /usr/local/{include,lib} not included on configure path. #147

Open transplier opened 3 years ago

transplier commented 3 years ago

Running ./configure on FreeBSD with pcre2 installed results in:

checking for library containing pcre2_match_32... no
configure: error: pcre2 library not found

This is because FreeBSD places its site-installed libraries in a location not considered by the configuration script.

A workaround is to pass the paths manually:

CFLAGS='-I /usr/local/include' LDFLAGS='-L /usr/local/lib/' ./configure

This seems to produce a working binary on FreeBSD when combined with a workaround for #146.