jvirkki / dupd

CLI utility to find duplicate files
http://www.virkki.com/dupd
GNU General Public License v3.0
114 stars 16 forks source link

Document third party dependencies before build #37

Closed oliveox closed 3 years ago

oliveox commented 3 years ago

I had to install a few dependencies before having 'make install' to work.

My suggestion:

My scenario

OS: Ubuntu 20.4

Ran 'make install'. Got:

In file included from src/test_hashlist.c:24: src/hashlist.h:23:10: fatal error: sqlite3.h: No such file or directory 23 | #include <sqlite3.h> | ^~~~~~~~~~~ compilation terminated.

Solution

sudo apt-get install libsqlite3-dev

Ran 'make install'. Error again:

src/hash.c:36:10: fatal error: openssl/md5.h: No such file or directory 36 | #include <openssl/md5.h> | ^~~~~~~~~~~~~~~ compilation terminated.

Solution:

sudo apt-get install libpcap-dev libssl-dev

'make install' successful.

jvirkki commented 3 years ago

The dependencies are documented in the BUILDING document.

How to install them will vary widely between platforms. I could include an example for Debian/Ubuntu since these are popular and stable, but don't want to start maintaining this for all platforms particularly the more unstable ones like OSX.