-1

I built the same version of postgres from source successfully a month ago. However, upon resetting my machine and trying to build the same version again, I'm having problems.

When I try to run make

I get the following error:

../../src/include/utils/elog.h:71:10: fatal error: utils/errcodes.h: No such file or directory
   71 | #include "utils/errcodes.h"
      |          ^~~~~~~~~~~~~~~~~~

Any help will be appreciated.

tokamak32
  • 27
  • 7

2 Answers2

1

Its safer to uninstall postgres completely using make uninstall and then make clean. Also make sure you are in a git branch that is stable, like REL_XX_STABLE when XX is the version you want installed.

0

If you used the same source as before, then the most likely scenario is that some files were accidentally deleted or altered. Uninstalling the current version and pulling the source again should fix the issue. If that does not fix the issue, you can try a different branch.

abhishek2046
  • 312
  • 1
  • 11