728x90
반응형

 

아래와 같은 에러 발생 시 libpq-dev 패키지를 설치해주면 해결된다. 

 

fatal error: libpq-fe.h: No such file or directory

 

$ sudo apt-get install libpq-dev

 

 

 

 

위와 같이 설치를 진행했는데 아래와 같이 dependency 문제가 나온다면, 해당 패키지를 dependency 에 맞게 재설치 해준다.

 

The following packages have unmet dependencies:
 libpq-dev : Depends: libpq5 (= 10.3-1) but 13.3-1.pgdg18.04+1 is to be installed

 

Reading package lists... Done
Building dependency tree       
Reading state information... Done

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libpq-dev : Depends: libpq5 (= 10.3-1) but 13.3-1.pgdg18.04+1 is to be installed

 

$ sudo apt-get install libpq5=10.3-1

 

728x90
반응형