{"action":"opened","issue":{"url":"https://api.github.com/repos/tidyverse/haven/issues/299","repository_url":"https://api.github.com/repos/tidyverse/haven","labels_url":"https://api.github.com/repos/tidyverse/haven/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/tidyverse/haven/issues/299/comments","events_url":"https://api.github.com/repos/tidyverse/haven/issues/299/events","html_url":"https://github.com/tidyverse/haven/issues/299","id":243257536,"number":299,"title":"undefined symbol: libiconv","user":{"login":"mfansler","id":1182216,"avatar_url":"https://avatars4.githubusercontent.com/u/1182216?v=4","gravatar_id":"","url":"https://api.github.com/users/mfansler","html_url":"https://github.com/mfansler","followers_url":"https://api.github.com/users/mfansler/followers","following_url":"https://api.github.com/users/mfansler/following{/other_user}","gists_url":"https://api.github.com/users/mfansler/gists{/gist_id}","starred_url":"https://api.github.com/users/mfansler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfansler/subscriptions","organizations_url":"https://api.github.com/users/mfansler/orgs","repos_url":"https://api.github.com/users/mfansler/repos","events_url":"https://api.github.com/users/mfansler/events{/privacy}","received_events_url":"https://api.github.com/users/mfansler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-16T18:36:24Z","updated_at":"2017-07-16T18:36:24Z","closed_at":null,"body":"## Problem\r\n\r\n**Ran:** `install.packages(\"tidyverse\")`\r\n\r\n**Result:** **haven** compiles, but during the step to test package loading it yields\r\n\r\n    ...\r\n     ** testing if installed package can be loaded\r\n     Error in dyn.load(file, DLLpath = DLLpath, ...) :\r\n       unable to load shared object '/home/username/.local/lib/R-3.3.3/haven/libs/haven.so':\r\n       /home/username/.local/lib/R-3.3.3/haven/libs/haven.so: undefined symbol: libiconv\r\n     Error: loading failed\r\n     Execution halted\r\n     ERROR: loading failed\r\n     * removing ‘/home/username/.local/lib/R-3.3.3/haven’\r\n\r\nwhich results in failed installation.\r\n\r\n## System Info\r\n\r\n    > sessionInfo()\r\n    R version 3.3.3 (2017-03-06)\r\n    Platform: x86_64-pc-linux-gnu (64-bit)\r\n    Running under: CentOS Linux 7 (Core)\r\n    \r\n    locale:\r\n     [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C\r\n     [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8\r\n     [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8\r\n     [7] LC_PAPER=en_US.UTF-8       LC_NAME=C\r\n     [9] LC_ADDRESS=C               LC_TELEPHONE=C\r\n    [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C\r\n    \r\n    attached base packages:\r\n    [1] stats     graphics  grDevices utils     datasets  methods   base\r\n\r\nThis is on a cluster account (no root privileges).  Non-R libraries that I require, such as `libiconv` are built and installed into a local path, and that path is included in `LD_LIBRARY_PATH`.  I have verified that `Sys.getenv(\"LD_LIBRARY_PATH\")` includes the path to **libiconv.so**.\r\n\r\n## Expected behavior\r\nR should use `LD_LIBRARY_PATH` environment variable to resolve linked libraries, in this case `libiconv`.\r\n\r\n## Attempted workarounds\r\n\r\n1. Manually pre-load `libiconv`\r\n\r\n       dyn.load(\"/home/username/.local/lib/libiconv.so\")\r\n       is.loaded(\"libiconv\") ## [1] TRUE\r\n       install.packages(\"haven\")\r\n\r\n2. Create symlink to **libiconv.so** in R library path.\r\n\r\nBoth attempts resulted in the same error message being encountered when the installer tests loading.\r\n\r\n## Additional notes\r\nDuring compilation, the **gcc**/**g++** calls do not include a `-L/home/username/.local/lib` flag, which is what I would expect if `LD_LIBRARY_PATH` was being used.\r\n\r\nSame thing happens for `readxl` package, so this is not a `haven`-specific issue.  I'm mainly hoping that someone here has an idea as to why this linked library isn't being found and how to properly configure R to find it."}}
{"actor":{"display_login":"mfansler"}}