Adding atspi-2 to PKG_CONFIG_PATH
I am currently trying to get to know Vala, but from the beginning he fights with me. I basically copied the first basic example I found here .
I am trying to create it using this command:
valac --pkg gtk+-3.0 <filename>.vala
but I keep getting this error message:
Package atspi-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `atspi-2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'atspi-2', required by 'atk-bridge-2.0', not found
error: pkg-config exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
I have no idea what this means and how to fix it.
Using a basic OS Freya (built on top of Ubuntu 14.04) if this information is needed.
source to share
You need a development package for atspi-2.
apt-get install libatspi2.0-dev
In the future, you can find out which packages the file contains by searching the packages.ubuntu.com site (or, if a rudimentary OS provides something, you could use that instead). There is also a Debian package search or apt-file command line tool.
And in case someone on the Fedora / RHEL / CentOS side stumbles upon this question, dnf provides '*/atspi-2.pc'
(or whatever package name you are looking for). Actually you can just do dnf install /usr/lib64/pkgconfig/atspi-2.pc
(or / usr / lib / ... if you are on 32bit).
source to share