-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined symbol: libiconv #299
Comments
After building from source and inspecting the shared object
I noticed that it wasn't even linking to libiconv. Rerunning the shared object creation step, with the added flag of
I could then install, without issue
Previously I was under the impression that I had a strange configuration issue (still probably the case!), but now it seems that Why doesn't the package link libiconv on its own? I'm not a package developer, so I know next to nothing of the underlying mechanics for package installation. |
Personally, I have this issue resolved, and it appears that it is a very atypical situation, so I'm closing this thread. If it comes up for others, adding |
Problem
Ran:
install.packages("tidyverse")
Result: haven compiles, but during the step to test package loading it yields
which results in failed installation.
System Info
This 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 inLD_LIBRARY_PATH
. I have verified thatSys.getenv("LD_LIBRARY_PATH")
includes the path to libiconv.so.Expected behavior
R should use
LD_LIBRARY_PATH
environment variable to resolve linked libraries, in this caselibiconv
.Attempted workarounds
Manually pre-load
libiconv
Create symlink to libiconv.so in R library path.
Both attempts resulted in the same error message being encountered when the installer tests loading.
Additional notes
During compilation, the gcc/g++ calls do not include a
-L/home/username/.local/lib
flag, which is what I would expect ifLD_LIBRARY_PATH
was being used.Same thing happens for
readxl
package, so this is not ahaven
-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.The text was updated successfully, but these errors were encountered: