binary compile 시 pkg-config: not found 메시지가 뜨는 경우
반응형

오늘 redis 컴파일을 진행하는데 아래와 같이 에러가 발생했다.

 

$ make test
cd src && make test
make[1]: Entering directory '/home/enowy/development/server/redis-7.0.5/src'
/bin/sh: 1: pkg-config: not found
You need tcl 8.5 or newer in order to run the Redis test
make[1]: *** [Makefile:427: test] Error 1
make[1]: Leaving directory '/home/enowy/development/server/redis-7.0.5/src'
make: *** [Makefile:6: test] Error 2

 

이 경우 아래와 같이 패키지를 추가해 주면 된다. (ubuntu)

$ sudo apt install pkg-config
[sudo] password for enowy: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libdpkg-perl libfile-fcntllock-perl
Suggested packages:
  debian-keyring bzr dpkg-dev
The following NEW packages will be installed:
  libdpkg-perl libfile-fcntllock-perl pkg-config
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 309 kB of archives.
After this operation, 2557 kB of additional disk space will be used.
Do you want to continue? [Y/n]

 

반응형