{"action":"created","issue":{"url":"https://api.github.com/repos/edzer/sfr/issues/266","repository_url":"https://api.github.com/repos/edzer/sfr","labels_url":"https://api.github.com/repos/edzer/sfr/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/edzer/sfr/issues/266/comments","events_url":"https://api.github.com/repos/edzer/sfr/issues/266/events","html_url":"https://github.com/edzer/sfr/issues/266","id":216551762,"number":266,"title":"Installation issue on Mac OS X -- liblwgeom.h not found","user":{"login":"cpsievert","id":1365941,"avatar_url":"https://avatars0.githubusercontent.com/u/1365941?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsievert","html_url":"https://github.com/cpsievert","followers_url":"https://api.github.com/users/cpsievert/followers","following_url":"https://api.github.com/users/cpsievert/following{/other_user}","gists_url":"https://api.github.com/users/cpsievert/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsievert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsievert/subscriptions","organizations_url":"https://api.github.com/users/cpsievert/orgs","repos_url":"https://api.github.com/users/cpsievert/repos","events_url":"https://api.github.com/users/cpsievert/events{/privacy}","received_events_url":"https://api.github.com/users/cpsievert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2017-03-23T19:49:51Z","updated_at":"2017-03-25T14:49:42Z","closed_at":null,"body":"After following the directions on the instructions, I get the installation error:\r\n\r\n```shell\r\n$ R CMD install .\r\n\r\n\r\n** testing if installed package can be loaded\r\nError in dyn.load(file, DLLpath = DLLpath, ...) : \r\n  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/sf/libs/sf.so':\r\n  dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/sf/libs/sf.so, 6): Symbol not found: _CPLQuietErrorHandler\r\n  Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/sf/libs/sf.so\r\n  Expected in: flat namespace\r\n in /Library/Frameworks/R.framework/Versions/3.3/Resources/library/sf/libs/sf.so\r\nError: loading failed\r\nExecution halted\r\nERROR: loading failed\r\n* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/sf’\r\n```\r\n\r\nAnd just running `./configure` gives:\r\n\r\n```shell\r\n$ ./configure\r\n\r\n\r\nconfigure: CC: clang\r\nconfigure: CXX: clang++\r\nchecking for gdal-config... /usr/local/opt/gdal2/bin/gdal-config\r\nchecking gdal-config usability... yes\r\nconfigure: GDAL: 2.1.3\r\nchecking GDAL version >= 2.0.0... yes\r\nchecking for gcc... clang\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 clang accepts -g... yes\r\nchecking for clang option to accept ISO C89... none needed\r\nchecking how to run the C preprocessor... clang -E\r\nchecking for grep that handles long lines and -e... /usr/bin/grep\r\nchecking for egrep... /usr/bin/grep -E\r\nchecking for ANSI C header files... rm: conftest.dSYM: is a directory\r\nrm: conftest.dSYM: is a directory\r\nyes\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/Cellar/gdal2/2.1.3_1/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.9.3\r\nchecking for pj_init_plus in -lproj... yes\r\nchecking PROJ.4: epsg found and readable... yes\r\nchecking PROJ.4: conus found and readable... yes\r\nchecking geos-config usability... yes\r\nconfigure: GEOS: 3.6.1\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 -lgeos_c... yes\r\nchecking liblwgeom.h usability... no\r\nchecking liblwgeom.h presence... no\r\nchecking for liblwgeom.h... no\r\nconfigure: liblwgeom.h not found.\r\nconfigure: Package CPP flags:  -I/usr/local/Cellar/gdal2/2.1.3_1/include -I/usr/local/Cellar/geos/3.6.1/include\r\nconfigure: Package LIBS:  -L/usr/local/Cellar/gdal2/2.1.3_1/lib -lgdal -L/usr/local/Cellar/geos/3.6.1/lib -lgeos_c -lproj\r\nconfigure: creating ./config.status\r\nconfig.status: creating src/Makevars\r\n```"},"comment":{"url":"https://api.github.com/repos/edzer/sfr/issues/comments/289216405","html_url":"https://github.com/edzer/sfr/issues/266#issuecomment-289216405","issue_url":"https://api.github.com/repos/edzer/sfr/issues/266","id":289216405,"user":{"login":"espinielli","id":891692,"avatar_url":"https://avatars3.githubusercontent.com/u/891692?v=3","gravatar_id":"","url":"https://api.github.com/users/espinielli","html_url":"https://github.com/espinielli","followers_url":"https://api.github.com/users/espinielli/followers","following_url":"https://api.github.com/users/espinielli/following{/other_user}","gists_url":"https://api.github.com/users/espinielli/gists{/gist_id}","starred_url":"https://api.github.com/users/espinielli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espinielli/subscriptions","organizations_url":"https://api.github.com/users/espinielli/orgs","repos_url":"https://api.github.com/users/espinielli/repos","events_url":"https://api.github.com/users/espinielli/events{/privacy}","received_events_url":"https://api.github.com/users/espinielli/received_events","type":"User","site_admin":false},"created_at":"2017-03-25T14:49:42Z","updated_at":"2017-03-25T14:49:42Z","body":"What worked for me:\r\n\r\n```\r\ncp /usr/local/opt/gdal2/lib/libgdal.20.dylib /usr/local/opt/gdal2/lib/libgdal.20.dylib.orig \r\nchmod +w /usr/local/opt/gdal2/lib/libgdal.20.dylib\r\n\r\ninstall_name_tool -change @rpath/libnetcdf.11.dylib /usr/local/opt/netcdf/lib/libnetcdf.11.4.0.dylib /usr/local/opt/gdal2/lib/libgdal.20.dylib\r\n```\r\n\r\nThe `devtools::install_github('edzer/sfr')` finished successfully.\r\n\r\n```\r\n> library(sf)\r\nLinking to GEOS 3.6.1, GDAL 2.1.3, proj.4 4.9.3, lwgeom 2.3.2 r15302\r\n> devtools::session_info()\r\nSession info ---------------------------------------------------------------------------------------------\r\n setting  value                       \r\n version  R version 3.3.3 (2017-03-06)\r\n system   x86_64, darwin15.6.0        \r\n ui       RStudio (1.0.136)           \r\n language (EN)                        \r\n collate  en_US.UTF-8                 \r\n tz       Europe/Brussels             \r\n date     2017-03-25                  \r\n\r\nPackages -------------------------------------------------------------------------------------------------\r\n package  * version date       source                    \r\n curl       2.3     2016-11-24 CRAN (R 3.3.3)            \r\n DBI        0.6     2017-03-09 CRAN (R 3.3.3)            \r\n devtools   1.12.0  2016-06-24 CRAN (R 3.3.2)            \r\n digest     0.6.12  2017-01-27 CRAN (R 3.3.3)            \r\n git2r      0.18.0  2017-01-01 cran (@0.18.0)            \r\n httr       1.2.1   2016-07-03 CRAN (R 3.3.3)            \r\n knitr      1.14    2016-08-13 CRAN (R 3.3.2)            \r\n magrittr   1.5     2014-11-22 CRAN (R 3.3.0)            \r\n memoise    1.0.0   2016-01-29 CRAN (R 3.3.0)            \r\n R6         2.2.0   2016-10-05 CRAN (R 3.3.1)            \r\n Rcpp       0.12.10 2017-03-19 CRAN (R 3.3.3)            \r\n sf       * 0.4-1   2017-03-25 Github (edzer/sfr@7862d1d)\r\n udunits2   0.13    2016-11-17 CRAN (R 3.3.3)            \r\n units      0.4-2   2017-01-13 CRAN (R 3.3.3)            \r\n withr      1.0.1   2016-02-04 CRAN (R 3.3.0)            \r\n```"}}
{"actor":{"display_login":"espinielli"}}