ERROR: Dependency "mount" not found, tried pkgconfig and cmake Linux while trying to install glib-2.60.0

3

1

Runing the following command from a terminal:

sudo python3 meson _build

:

**The Meson build system**
Version: 0.50.0
....
Checking for function "ngettext" : YES
Checking for function "bind_textdomain_codeset" : YES
Dependency mount found: NO (tried pkgconfig and cmake)   

meson.build:1807:2: ERROR: Dependency "mount" not found, tried pkgconfig and cmake

A full log can be found at ~/glib-2.60.0/_build/meson-logs/meson-log.txt

meson-log.txt error :

Checking for function "bind_textdomain_codeset" : YES
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'mount' with pkg-config executable '/usr/local/bin/pkg-config'
Called `/usr/local/bin/pkg-config --modversion mount` -> 1

CMake binary for MachineChoice.HOST is cached.
Dependency mount found: NO (tried pkgconfig and cmake)

meson.build:1807:2: ERROR: Dependency "mount" not found, tried pkgconfig and cmake

I searched for the 'mount.pc' file. But it seems like it does not exist. How can I fix this error?

cam zilla

Posted 2019-04-10T21:03:12.397

Reputation: 33

Answers

4

I corrected an error like this on a CentOS box with: yum install libmount-devel

Antinomial

Posted 2019-04-10T21:03:12.397

Reputation: 56

Tnx, now it works by installing libmount-dev – cam zilla – 2019-05-03T20:33:43.940

Thanks fixed this error message as well: meson.build:907:0: ERROR: Native dependency 'mount' not found – rogerdpack – 2019-05-10T17:57:26.507

In case anyone needs it, the Ubuntu command is: sudo apt-get install libmount-dev – Gabriel Fair – 2020-01-13T04:07:00.453