R安装monocle3 sf

装了好几天,由于这个用户基数可能也不是很大,所以各种issue下的解决方案也不是那么清楚。

以我自己为例,dependency:proj=6.3.1 geos=3.6.5 gdal=3.4.1

确定这些包都安装好后,之后我遇到的所有错误都是PATH导致的,因此附上我的bashrc的具体PATH:

export SQLITE3_CFLAGS="/newdatc/home/wanglab27/bin/sqlite3/include"
export SQLITE3_LIBS="-L/newdatc/home/wanglab27/bin/sqlite3/lib -lsqlite3"
export PATH="/newdatc/home/wanglab27/bin/sqlite3/bin:$PATH"
export PATH="/newdatc/home/wanglab27/bin/proj6/bin:$PATH"
export PATH="/newdatc/home/wanglab27/bin/gdal/bin:$PATH"
export PATH="/newdatc/home/wanglab27/bin/geos/bin:$PATH" 
export PROJ_LIBDIR="/newdatc/home/wanglab27/bin/proj6/lib/"
export PROJ_CLUDIR="/newdatc/home/wanglab27/bin/proj6/include"
export PG_HOME="/newdatc/home/wanglab27/bin/pgsql"
export PATH="/newdatc/home/wanglab27/bin/pgsql/bin:$PATH"
export LD_LIBRARY_PATH="/newdatc/home/wanglab27/bin/geos/lib/:/newdatc/home/wanglab27/bin/gdal/lib:/newdatc/home/wanglab27/bin/proj6/lib:/newdatc/home/wanglab27/bin/sqlite3/lib/:/newdatc/home/wanglab27/bin/pgsql/lib/:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/newdatc/home/wanglab27/bin/proj6/lib/pkgconfig:/newdatc/home/wanglab27/bin/sqlite3/lib/pkgconfig/:/newdatc/home/wanglab27/bin/pgsql/lib/pkgconfig/:$PKG_CONFIG_PATH"

 上述遇到的错误包括但不仅限于:

undefined symbol: GEOSFrechetDistanceDensify_r 

libproj or sqlite3 not found in standard or given locations.

至于在上述dependency的configure过程中,请根据情况指定--with-proj-lib ---with-proj-include --with-geosconfig等参数,具体情况参考Google

posted @ 2022-02-17 16:38  vic~  阅读(588)  评论(0)    收藏  举报