Home > Back-end >  Command Not Found when Installing JPostal on Windows 10
Command Not Found when Installing JPostal on Windows 10

Time:02-22

I'm trying to setup JPostal LibPostal on a Windows 10 PC.

JPostal documentation states that the following command must execute without errors:

pkg-config --cflags --libs libpostal

However, when I execute the above command I get the following error:

bash: pkg-config command not found

The documentation did not state to install any other software to execute the above command. Is there something missing? I'm on Windows 10.

Update:

I re-read the documentation on libpostal which states:

libpostal has support for pkg-config, so you can use the pkg-config to print the flags needed to link your program against it..

It seems like once I install libpostal the above command should work. Why isn't it working?

Thanks

CodePudding user response:

bash: pkg-config command not found

shows that you are using WSL (Windows Subsystem for Linux) or Cygwin. In either case, you will first have to install the pkg-config package using the command below. Afterward, the setup shall work.

sudo apt install pkg-config
  • Related