proj was not found in the pkg-config search path
mikepianka opened this issue · 2 comments
mikepianka commented
I'm getting the following error after installing on WSL. Any ideas? Thanks!
>>> go run main.go
go build github.com/twpayne/go-proj/v10:
# pkg-config --cflags -- proj
Package proj was not found in the pkg-config search path.
Perhaps you should add the directory containing `proj.pc'
to the PKG_CONFIG_PATH environment variable
No package 'proj' found
pkg-config: exit status 1
I installed proj with sudo apt-get install proj-bin
and I can run the proj command so it seems like it installed correctly.
>>> proj
Rel. 7.2.1, January 1st, 2021
usage: proj [-bdeEfiIlmorsStTvVwW [args]] [+opt[=arg] ...] [file ...]
twpayne commented
You need to install the libproj-dev
package.
mikepianka commented
That was it. Thanks!