Bcachefs-tools
Hello,
I want to test bachefs file system on CentOS 7.
~$ cat /etc/system-release CentOS Linux release 7.6.1810 (Core)
I’m following the bcachefs howto: https://bcachefs.org/Howto/.
Having a problem trying to complete make && make install of the bcache-tools. After going through all the dependencies and insuring they are installed on Cent 7, I get the following output on make && make install:
Package blkid was not found in the pkg-config search path. Perhaps you should add the directory containing `blkid.pc’
to the PKG_CONFIG_PATH environment variable No package ‘blkid’ found Package uuid was not found in the pkg-config search path. Perhaps you should add the directory containing `uuid.pc’
to the PKG_CONFIG_PATH environment variable No package ‘uuid’ found Package libsodium was not found in the pkg-config search path. Perhaps you should add the directory containing `libsodium.pc’
to the PKG_CONFIG_PATH environment variable No package ‘libsodium’ found Package libzstd was not found in the pkg-config search path. Perhaps you should add the directory containing `libzstd.pc’
to the PKG_CONFIG_PATH environment variable No package ‘libzstd’ found Makefile:42: *** pkg-config error, command: pkg-config –cflags “blkid uuid liburcu libsodium zlib liblz4 libzstd”. Stop.
The packages are installed but I’m not certain how to satisfy pkg-config and place them in the correct path.
The pkg-config man page states –
ENVIRONMENT VARIABLES
PKG_CONFIG_PATH
A colon-separated (on Windows, semicolon-separated) list of directories to search for .pc files. The default directory will always be searched after searching the path; the default is libdir/pkgconfig:datadir/pkgconfig where libdir is the libdir for pkg-config and datadir is the datadir for pkg-config when it was installed.
On my installation, the current path seems to be:
~$ pkg-config –variable pc_path pkg-config
/usr/lib64/pkgconfig:/usr/share/pkgconfig
~$ echo $PKG_CONFIG_PATH
<
Using locate, I do not find any of these files, so how do I properly add the packages to the path
3 thoughts on - Bcachefs-tools
You could try to get this slightly old rpm, save you the build troubles
(untested):
http://ftp5.gwdg.de/pub/opensuse/repositories/home:/garloff:/storage/RHEL_7/x86_64/
Bare in mind there is no support in the stock kernel for bcachefs
(afaik), you might have better luck with the elrepo kernel-ml.
–
Thanks I may go back to this repo if I can’t get it done with more current packages.
Absolutely right; nice catch and thanks for helping me see it.
Installing : libuuid-devel-2.23.2-59.el7_6.1.x86_64
Installing : libblkid-devel-2.23.2-59.el7_6.1.x86_64
Installing : libsodium-devel-1.0.18-1.el7.x86_64
Installing : libzstd-devel-1.4.0-1.el7.x86_64
I also needed:
libscrypt-devel.x86_64 : Development files for libscrypt
After make && make install it appears I’ve got a fresh set of problems with tooling re: function errors and notes. Time to head over to the bcachefs irc and see what it’s all about.
Thanks again for your guidance.