{"action":"created","issue":{"url":"https://api.github.com/repos/r-spatial/sf/issues/535","repository_url":"https://api.github.com/repos/r-spatial/sf","labels_url":"https://api.github.com/repos/r-spatial/sf/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/r-spatial/sf/issues/535/comments","events_url":"https://api.github.com/repos/r-spatial/sf/issues/535/events","html_url":"https://github.com/r-spatial/sf/issues/535","id":270762863,"number":535,"title":"Unable to install/compile r-spatial/sf, getting errors.","user":{"login":"Balaji-Sankaran","id":33327405,"avatar_url":"https://avatars2.githubusercontent.com/u/33327405?v=4","gravatar_id":"","url":"https://api.github.com/users/Balaji-Sankaran","html_url":"https://github.com/Balaji-Sankaran","followers_url":"https://api.github.com/users/Balaji-Sankaran/followers","following_url":"https://api.github.com/users/Balaji-Sankaran/following{/other_user}","gists_url":"https://api.github.com/users/Balaji-Sankaran/gists{/gist_id}","starred_url":"https://api.github.com/users/Balaji-Sankaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Balaji-Sankaran/subscriptions","organizations_url":"https://api.github.com/users/Balaji-Sankaran/orgs","repos_url":"https://api.github.com/users/Balaji-Sankaran/repos","events_url":"https://api.github.com/users/Balaji-Sankaran/events{/privacy}","received_events_url":"https://api.github.com/users/Balaji-Sankaran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-02T18:40:15Z","updated_at":"2017-11-02T18:52:20Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nCould you please help me installing r-spatial/sf? I am getting errors and the details are as follows....\r\n\r\n> install.packages('sf')\r\nInstalling package into ‘/usr/lib64/R/library’\r\n(as ‘lib’ is unspecified)\r\n--- Please select a CRAN mirror for use in this session ---\r\nSecure CRAN mirrors\r\n\r\n 1: 0-Cloud [https]                   2: Algeria [https]\r\n 3: Australia (Canberra) [https]      4: Australia (Melbourne 1) [https]\r\n 5: Australia (Melbourne 2) [https]   6: Australia (Perth) [https]\r\n 7: Austria [https]                   8: Belgium (Ghent) [https]\r\n 9: Brazil (PR) [https]              10: Brazil (RJ) [https]\r\n11: Brazil (SP 1) [https]            12: Brazil (SP 2) [https]\r\n13: Bulgaria [https]                 14: Chile 1 [https]\r\n15: Chile 2 [https]                  16: China (Guangzhou) [https]\r\n17: China (Lanzhou) [https]          18: Colombia (Cali) [https]\r\n19: Czech Republic [https]           20: Denmark [https]\r\n21: East Asia [https]                22: Ecuador (Cuenca) [https]\r\n23: Estonia [https]                  24: France (Lyon 1) [https]\r\n25: France (Lyon 2) [https]          26: France (Marseille) [https]\r\n27: France (Montpellier) [https]     28: France (Paris 2) [https]\r\n29: Germany (Göttingen) [https]      30: Germany (Münster) [https]\r\n31: Greece [https]                   32: Iceland [https]\r\n33: Indonesia (Jakarta) [https]      34: Ireland [https]\r\n35: Italy (Padua) [https]            36: Japan (Tokyo) [https]\r\n37: Malaysia [https]                 38: Mexico (Mexico City) [https]\r\n39: Norway [https]                   40: Philippines [https]\r\n41: Serbia [https]                   42: Spain (A Coruña) [https]\r\n43: Spain (Madrid) [https]           44: Sweden [https]\r\n45: Switzerland [https]              46: Turkey (Denizli) [https]\r\n47: Turkey (Mersin) [https]          48: UK (Bristol) [https]\r\n49: UK (Cambridge) [https]           50: UK (London 1) [https]\r\n51: USA (CA 1) [https]               52: USA (IA) [https]\r\n53: USA (KS) [https]                 54: USA (MI 1) [https]\r\n55: USA (OR) [https]                 56: USA (TN) [https]\r\n57: USA (TX 1) [https]               58: Vietnam [https]\r\n59: (other mirrors)\r\n\r\nSelection: 51\r\ntrying URL 'https://cran.cnr.berkeley.edu/src/contrib/sf_0.5-5.tar.gz'\r\nContent type 'application/x-gzip' length 7734623 bytes (7.4 MB)\r\n==================================================\r\ndownloaded 7.4 MB\r\n\r\n* installing *source* package ‘sf’ ...\r\n** package ‘sf’ successfully unpacked and MD5 sums checked\r\nconfigure: CC: gcc -m64 -std=gnu99\r\nconfigure: CXX: g++ -m64\r\nchecking for gdal-config... /usr/local/bin/gdal-config\r\nchecking gdal-config usability... yes\r\nconfigure: GDAL: 2.2.2\r\nchecking GDAL version >= 2.0.0... yes\r\nchecking for gcc... gcc -m64 -std=gnu99\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables...\r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc -m64 -std=gnu99 accepts -g... yes\r\nchecking for gcc -m64 -std=gnu99 option to accept ISO C89... none needed\r\nchecking how to run the C preprocessor... gcc -m64 -std=gnu99 -E\r\nchecking for grep that handles long lines and -e... /bin/grep\r\nchecking for egrep... /bin/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking gdal.h usability... yes\r\nchecking gdal.h presence... yes\r\nchecking for gdal.h... yes\r\nchecking GDAL: linking with --libs only... yes\r\nchecking GDAL: /usr/local/share/gdal/pcs.csv readable... yes\r\nchecking GDAL: checking whether PROJ.4 is available for linking:... yes\r\nchecking GDAL: checking whether PROJ.4 is available fur running:... yes\r\nconfigure: pkg-config proj exists, will use it\r\nchecking proj_api.h usability... yes\r\nchecking proj_api.h presence... yes\r\nchecking for proj_api.h... yes\r\nconfigure: PROJ: 4.8.0\r\nchecking for pj_init_plus in -lproj... yes\r\n/tmp/ccKgIWi9.o: In function `main':\r\n/tmp/Rtmpfl0UPw/R.INSTALL150f141864b9/sf/proj_conf_test.c:20: undefined reference to `pj_ctx_fclose'\r\ncollect2: ld returned 1 exit status\r\n./configure: line 3793: ./proj_conf_test: No such file or directory\r\nchecking PROJ.4: epsg found and readable... yes\r\n/tmp/ccuSk7ig.o: In function `main':\r\n/tmp/Rtmpfl0UPw/R.INSTALL150f141864b9/sf/proj_conf_test.c:20: undefined reference to `pj_ctx_fclose'\r\ncollect2: ld returned 1 exit status\r\n./configure: line 3852: ./proj_conf_test: No such file or directory\r\nchecking PROJ.4: conus found and readable... yes\r\nchecking for geos-config... /usr/bin/geos-config\r\nchecking geos-config usability... yes\r\nconfigure: GEOS: 3.5.0\r\nchecking GEOS version >= 3.3.0... yes\r\nchecking geos_c.h usability... yes\r\nchecking geos_c.h presence... yes\r\nchecking for geos_c.h... yes\r\nchecking geos: linking with -L/usr/lib64 -lgeos_c... yes\r\nchecking liblwgeom.h usability... yes\r\nchecking liblwgeom.h presence... yes\r\nchecking for liblwgeom.h... yes\r\nchecking for lwgeom_version in -llwgeom... no\r\nconfigure: lwgeom (only needed for st_make_valid) was not found; on ubuntu, liblwgeom-dev provides this\r\nconfigure: Package CPP flags:    -I/usr/local/include -I/usr/include\r\nconfigure: Package LIBS:  -L/usr/local/lib -lgdal -L/usr/lib64 -lgeos_c -lproj\r\nconfigure: creating ./config.status\r\nconfig.status: creating src/Makevars\r\n** libs\r\ng++ -m64 -std=gnu++0x -I/usr/include/R -DNDEBUG -I/usr/local/include -I/usr/include -I\"/usr/lib64/R/library/Rcpp/include\" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c RcppExports.cpp -o RcppExports.o\r\ng++ -m64 -std=gnu++0x -I/usr/include/R -DNDEBUG -I/usr/local/include -I/usr/include -I\"/usr/lib64/R/library/Rcpp/include\" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c bbox.cpp -o bbox.o\r\ng++ -m64 -std=gnu++0x -I/usr/include/R -DNDEBUG -I/usr/local/include -I/usr/include -I\"/usr/lib64/R/library/Rcpp/include\" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c gdal.cpp -o gdal.o\r\ng++ -m64 -std=gnu++0x -I/usr/include/R -DNDEBUG -I/usr/local/include -I/usr/include -I\"/usr/lib64/R/library/Rcpp/include\" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c gdal_geom.cpp -o gdal_geom.o\r\ng++ -m64 -std=gnu++0x -I/usr/include/R -DNDEBUG -I/usr/local/include -I/usr/include -I\"/usr/lib64/R/library/Rcpp/include\" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c gdal_read.cpp -o gdal_read.o\r\ngdal_read.cpp: In function ‘Rcpp::List allocate_out_list(OGRFeatureDefn*, int, bool)’:\r\ngdal_read.cpp:67: error: call of overloaded ‘to_string(int&)’ is ambiguous\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2604: note: candidates are: std::string std::to_string(long long int)\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2610: note:                 std::string std::to_string(long long unsigned int)\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2616: note:                 std::string std::to_string(long double)\r\ngdal_read.cpp: In function ‘Rcpp::List CPL_read_ogr(Rcpp::CharacterVector, Rcpp::CharacterVector, Rcpp::CharacterVector, bool, Rcpp::NumericVector, bool, bool)’:\r\ngdal_read.cpp:434: warning: name lookup of ‘i’ changed\r\ngdal_read.cpp:249: warning:   matches this ‘i’ under ISO standard rules\r\ngdal_read.cpp:419: warning:   matches this ‘i’ under old rules\r\nmake: *** [gdal_read.o] Error 1\r\nERROR: compilation failed for package ‘sf’\r\n* removing ‘/usr/lib64/R/library/sf’\r\n\r\nThe downloaded source packages are in\r\n        ‘/tmp/RtmpvzVAIj/downloaded_packages’\r\nUpdating HTML index of packages in '.Library'\r\nMaking 'packages.html' ... done\r\nWarning message:\r\nIn install.packages(\"sf\") :\r\n  installation of package ‘sf’ had non-zero exit status\r\n> quit('yes')\r\n"},"comment":{"url":"https://api.github.com/repos/r-spatial/sf/issues/comments/341522938","html_url":"https://github.com/r-spatial/sf/issues/535#issuecomment-341522938","issue_url":"https://api.github.com/repos/r-spatial/sf/issues/535","id":341522938,"user":{"login":"rsbivand","id":10198404,"avatar_url":"https://avatars0.githubusercontent.com/u/10198404?v=4","gravatar_id":"","url":"https://api.github.com/users/rsbivand","html_url":"https://github.com/rsbivand","followers_url":"https://api.github.com/users/rsbivand/followers","following_url":"https://api.github.com/users/rsbivand/following{/other_user}","gists_url":"https://api.github.com/users/rsbivand/gists{/gist_id}","starred_url":"https://api.github.com/users/rsbivand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsbivand/subscriptions","organizations_url":"https://api.github.com/users/rsbivand/orgs","repos_url":"https://api.github.com/users/rsbivand/repos","events_url":"https://api.github.com/users/rsbivand/events{/privacy}","received_events_url":"https://api.github.com/users/rsbivand/received_events","type":"User","site_admin":false},"created_at":"2017-11-02T18:52:20Z","updated_at":"2017-11-02T18:52:20Z","author_association":"MEMBER","body":"The simplest answer: upgrade Proj.4. The 4.8.0 release was particularly troublesome, now it is at 4.9.3. I had to handle a similar issue in [rgdal/configure.ac](https://r-forge.r-project.org/scm/viewvc.php/pkg/configure.ac?root=rgdal&r1=631&r2=681) recently, where I'd been sloppy and permitted ./configure to continue running rather than bailing out when compilation failed."}}
{"actor":{"display_login":"rsbivand"}}