error: proj_api.h not found in standard or given locations
error: proj_api.h not found in standard or given locations
我正在尝试在 R 上安装 tmap 包,它需要 lwgeom
但是在安装时 'lwgeom' 我得到这个错误:
configure: error: proj_api.h not found in standard or given locations. ERROR: configuration failed for package ‘lwgeom’
我已经尝试安装 libproj-dev 但我已经安装了它。
我也成功安装了 rgdal 包,但我仍然遇到这个错误
我 运行 在 R-studio 上 Linux Mint 19
如何修复和安装 tmap?
考虑使用
直接安装 lwgeom 包
install.packages("lwgeom", configure.args=c("--with-proj-include=/usr/local, --with-proj-lib=/usr/local"))
在您的 R 控制台中;当然使用正确的路径到您的 PROJ 位置(我的恰好住在 /usr/local
,但您需要仔细检查)。
考虑从 github https://github.com/r-spatial/lwgeom
安装源
或者等待即将推出的新的 0.2-4 版本的 lwgeom。
该错误已于 2 天前修复。
您也可以安装正确的旧版本 0.2-2。
我正在尝试在 R 上安装 tmap 包,它需要 lwgeom
但是在安装时 'lwgeom' 我得到这个错误:
configure: error: proj_api.h not found in standard or given locations. ERROR: configuration failed for package ‘lwgeom’
我已经尝试安装 libproj-dev 但我已经安装了它。
我也成功安装了 rgdal 包,但我仍然遇到这个错误
我 运行 在 R-studio 上 Linux Mint 19
如何修复和安装 tmap?
考虑使用
直接安装 lwgeom 包install.packages("lwgeom", configure.args=c("--with-proj-include=/usr/local, --with-proj-lib=/usr/local"))
在您的 R 控制台中;当然使用正确的路径到您的 PROJ 位置(我的恰好住在 /usr/local
,但您需要仔细检查)。
考虑从 github https://github.com/r-spatial/lwgeom
安装源或者等待即将推出的新的 0.2-4 版本的 lwgeom。 该错误已于 2 天前修复。 您也可以安装正确的旧版本 0.2-2。