Saturday, February 11, 2012

...fatal error: parser/kwlist.h: No such file or directory compilation terminated on Ubuntu

Yesterday I was compiling and installing the latest source code for pgAdmin3, a popular Open Source administration and development platform for the PostgreSQL database, on my netbook with the Ubuntu 11.10 operating system and ran across the following error:

...fatal error: parser/kwlist.h: No such file or directory compilation terminated. 

Earlier this month I had built and installed pgAdmin3 on two other systems and ran into the same problem. Because I had hunted this header file down and stored it on my Dropbox account, I had it handy and dropped it into the source code and went on my merry way with the build. 

Therefore, for those who run across this issue I have linked the file here.

Simply drop the file into the /theSourceCodeDir/pgadmin/include/parser directory and reissue the make command. 
Enjoy  :-)

10 comments:

Anonymous said...

Thanks for help, I got exactly same problem.

Anonymous said...

On Debian/Ubuntu, it suffices to install the package

postgresql-server-dev-9.1

using apt-get. You might have to replace the version number in the package name.

Mark McFadden said...

Thanks for the info!

Ricardo Maia said...

Thanks Mark! I had the same problem!

Anonymous said...

thank you very much!!

Anthony DeBarros said...

Wow! Thanks -- precisely what I needed.

Anonymous said...

Thanks!

Luiz H. Andrade said...

Thanx!!

Pierre Thibault said...

Thank you. This is what I needed!

Sycorage said...

Thanks for the article, This was exactly my problem.