Install btrfs-prog on Ubuntu 10.04 from source
1. Purpose
To install btrfs-prog on Ubuntu 10.04 from the source.
2. Reference
btrfs wiki page: wiki
3. Problems
3.1. Install autogen for ./autogen.sh
sudo apt-get install autoconf
_3.2. E_rrors during ./configure
Error message of «No package found» errors are like below.
...
checking for mv... /bin/mv
checking for a sed that does not truncate output... /bin/sed
checking for EXT2FS... configure: error: Package requirements (ext2fs) were not met:
No package 'ext2fs' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables EXT2FS_CFLAGS
and EXT2FS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
No package ‘ext2fs’ found
Install ‘e2fslibs-dev’.
$ sudo apt-get install e2fslibs-dev
No package ‘blkid’ found
Install ‘libblkid-dev’.
$ sudo apt-get install libblkid-dev
No package ‘zlib’ found.
Download zlib package from here. I used file: _zlib1.2.3.3.dfsg.orig.tar.gz. Please check your Ubuntu version.
Decompress the downloaded zlib package file and install it as below.
$ ./configure
$ make test
$ sudo make install
Cannot find lzo2 library
Install ‘liblzo2-dev’.
$ sudo apt-get install liblzo2-dev
Finally, installation succeeded.