Yubico / yubikey-personalization

YubiKey Personalization cross-platform library and tool
https://developers.yubico.com/yubikey-personalization/
BSD 2-Clause "Simplified" License
300 stars 82 forks source link

PKG_CONFIG_PATH environment variable for building on CentOS/RHEL #75

Closed haxrob closed 7 years ago

haxrob commented 8 years ago

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig was required when building for CentOS/RHEL 6 and 7.

This is actually noted in a forum post here, although the information was never propagated into the respective README. It would be useful information for those running into compilation issues on the above Linux distributions.

klali commented 8 years ago

So typically pkg-config looks in /usr/lib/pkgconfig if we write something around this it should be geared around that it should point to the location where the pkg-config files for dependencies are (which are prefix relative in lib/pkgconfig). Do you have a suggestion for wording? If so please submit a pull request with a change to the README.

thorduri commented 7 years ago

@packetflare:

Could you expand on your steps, I just completed the following steps with out issues:

: ~ $; rpm --query centos-release
centos-release-7-1.1503.el7.centos.2.8.x86_64

: ~ $; sudo yum groupinstall 'Development Tools'
...
: ~ $; sudo yum install asciidoc libusb-devel
...

: ~ $; cd yubico-c
: ~/yubico-c $; autoreconf -i && ./configure && make && sudo make install
...

: ~/yubico-c $; cd ../yubikey-personalization
: ~/yubico-c $; autoreconf -i && ./configure && make && sudo make install
...

Further:

: ~ $; pkg-config --list-all | grep libusb
libusb           libusb - USB access library (libusb-1.0 compat wrapper)

Are you perchance building and installing libusb from source ? (In which case, the default prefix is /usr/local).

In general, Yubico projects depend on their dependencies being installed via the appropriate package manager for each distribution.

muatsoftgit commented 4 years ago

Install the development package as:

apt install libopencv-dev

--credit: https://stackoverflow.com/users/6481121/ipor-sircer