-
Notifications
You must be signed in to change notification settings - Fork 300
Closed
Description
Can't install sf -- the error looks like:
DEPS SATISFIED ARE:
- udunits/2.2.25
- proj.4/4.7
- gdal/gcc/2.2.0
SETUP:
library(rgdal)
Loading required package: sp
rgdal: version: 1.2-13, (SVN revision 686)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 2.2.0, released 2017/04/28
Path to GDAL shared files: /c1/apps/gdal/gcc/2.2.0/share/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: (autodetected)
Linking to sp version: 1.2-5
INSTALL & ERROR:
install.packages("sf",configure.args='--with-udunits2-lib=/c1/libs/udunits/lib')
...
proj_conf_test.c:4:28: error: expected ')' before 'const'
FILE *pj_open_lib(projCtx, const char *, const char *);
^
proj_conf_test.c: In function 'main':
proj_conf_test.c:13:5: error: unknown type name 'projCtx'
projCtx ctx;
^
proj_conf_test.c:14:5: warning: implicit declaration of function 'pj_get_default_ctx' [-Wimplicit-function-declaration]
ctx = pj_get_default_ctx();
^
proj_conf_test.c:15:5: warning: implicit declaration of function 'pj_open_lib' [-Wimplicit-function-declaration]
fp = pj_open_lib(ctx, "epsg", "rb");
^
proj_conf_test.c:15:8: warning: assignment makes pointer from integer without a cast
fp = pj_open_lib(ctx, "epsg", "rb");
^
470
checking PROJ.4: epsg found and readable... yes
proj_conf_test.c:4:28: error: expected ')' before 'const'
FILE *pj_open_lib(projCtx, const char *, const char *);
^
proj_conf_test.c: In function 'main':
proj_conf_test.c:13:5: error: unknown type name 'projCtx'
projCtx ctx;
^
proj_conf_test.c:14:5: warning: implicit declaration of function 'pj_get_default_ctx' [-Wimplicit-function-declaration]
ctx = pj_get_default_ctx();
^
proj_conf_test.c:15:5: warning: implicit declaration of function 'pj_open_lib' [-Wimplicit-function-declaration]
fp = pj_open_lib(ctx, "conus", "rb");
^
proj_conf_test.c:15:8: warning: assignment makes pointer from integer without a cast
fp = pj_open_lib(ctx, "conus", "rb");
^
./configure: line 3850: ./proj_conf_test: No such file or directory
checking PROJ.4: conus found and readable... yes
checking for geos-config... no
no
configure: error: geos-config not found or not executable.
ERROR: configuration failed for package ‘sf’
Any idea how to resolve this issue?
Metadata
Metadata
Assignees
Labels
No labels