Problem with building instructions for btrfs-tools in https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories
There is a missing dependency: liblzo2-dev
Without it, the make fails with:
~/tmp$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
~/tmp$ cd btrfs-progs
~/tmp/btrfs-progs$ sudo apt-get install uuid-dev libattr1-dev zlib 1g-dev libacl1-dev e2fslibs-dev libblkid-dev
~/tmp/btrfs-progs$ make
[CC] ctree.o
[CC] disk-io.o
[CC] radix-tree.o
[CC] extent-tree.o
[CC] print-tree.o
[CC] root-tree.o
[CC] dir-item.o
[CC] file-item.o
[CC] inode-item.o
[CC] inode-map.o
[CC] extent-cache.o
[CC] extent_io.o
[CC] volumes.o
[CC] utils.o
[CC] btrfs-list.o
[CC] repair.o
[CC] send-stream.o
[CC] send-utils.o
[CC] qgroup.o
[CC] raid6.o
[CC] rbtree.o
[CC] crc32c.o
[LN] libbtrfs.so.0
[LN] libbtrfs.so
[LD] libbtrfs.so.0.1/usr/bin/ld: cannot find -llzo2
collect2: error: ld returned 1 exit status
make: *** [libbtrfs.so.0.1] Error 1
I suggest to make amendment to the wiki and add a "liblzo2-dev" to the apt-get line for Ubuntu/Debian.
Signature · 3 lines
Adam Ryczkowski +48505919892 <callto:+48505919892> Skype:sisteczko <skype:sisteczko>
Quoted 4 lines
There is a missing dependency: liblzo2-dev
I suggest to make amendment to the wiki and add a "liblzo2-dev" to the apt-get line for Ubuntu/Debian.
Added. Other distros may need some additions too.
Anyone can edit the wiki, as the spambots will attest; a ConfirmEdit captcha at signup would be nice.