I am unable to successfully install the
ggplot2 package on my RStudio IDE installation (Version 1.1.463) running on my Fedora 29 laptop.
I have tried many, many different suggestions on many, many different threads, both on this portal and also on StackExchange...and r-Bloggers...and others. I will list them for reference below. Meanwhile, one of the most recent strategies I have attempted was simply trying to install one of the many, many dependencies of
ggplot2. In one case, I tried to simply install the package
stringr first, right? Here is a flavor of the errors I am getting
from that (sub)installation:
* installing *source* package ‘stringr’ ... ** package ‘stringr’ successfully unpacked and MD5 sums checked ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error in library.dynam(lib, package, package.lib) : shared object ‘stringi.so’ not found ERROR: lazy loading failed for package ‘stringr’ * removing ‘/home/r0r0/R/x86_64-redhat-linux-gnu-library/3.5/stringr’ Warning in install.packages : installation of package ‘stringr’ had non-zero exit status ERROR: dependency ‘stringr’ is not available for package ‘knitr’ * removing ‘/home/r0r0/R/x86_64-redhat-linux-gnu-library/3.5/knitr’ Warning in install.packages : installation of package ‘knitr’ had non-zero exit status ERROR: dependencies ‘knitr’, ‘stringr’ are not available for package ‘rmarkdown’ * removing ‘/home/r0r0/R/x86_64-redhat-linux-gnu-library/3.5/rmarkdown’ Warning in install.packages : installation of package ‘rmarkdown’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpgZnsRh/downloaded_packages’
NOTE: I see that a recurrent issue from the above is the following:
** byte-compile and prepare package for lazy loading Error in library.dynam(lib, package, package.lib) : shared object ‘stringi.so’ not found
My hunch is that the above is key to the solution of my struggles, but I have yet to find what gets me there. ...
And I have indeed attempted using the
Dependencies = TRUE parameter.
And indeed I have created an
.Renviron file so that there are no permissions issues on directories as suggested here
Interestingly, as a side note, I was able to successfully install the
rlang package, as suggested here, unlike many of the other dependencies, but that didn't really seem to help otherwise.
Another part of the error verbiage that RStudio is feeding to me is the following:
** package ‘openssl’ successfully unpacked and MD5 sums checked Using PKG_CFLAGS= ------------------------- ANTICONF ERROR --------------------------- Configuration failed because openssl was not found. Try installing: * deb: libssl-dev (Debian, Ubuntu, etc) * rpm: openssl-devel (Fedora, CentOS, RHEL) * csw: libssl_dev (Solaris) * brew: firstname.lastname@example.org (Mac OSX) If openssl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' --------------------------------------------------------------------
And after successfully installing
openssl-devel in my bash terminal for my fedora OS, it did not seem to help the issue in any case.
So with that, here is a short list of threads that I have already read with no help in my case:
- Unable to install ggplot2 in R Studio
- unable to install package in R Studio
Not install package knitr on R ver 3.3.3 (OS Fedora 25 x86_64)
- Note: I don't appear to have lock issues as described in the above thread.
Failed to load 'knitr' #170
- Note: This thread is creepy inasmuch as it is old, but there seems to be some structural issues at hand with the CRAN library system ?!
- Installing R packages ... from R-Bloggers.
And so wrapping up, the following are true:
- I am a newbie, but trying really hard here.
- I have done my homework to run down this issue to the best of my ability at this point.
- I am unable to successfully install
ggplot2and several of its dependencies on my Fedora 29 laptop, running RStudio Version 1.1.463
- I have a hunch that the key to my issue may well have to do with the following error segment:
Error in library.dynam(lib, package, package.lib) : shared object ‘stringi.so’ not found ERROR: lazy loading failed for package ‘stringr’
Please help and thanks in advance!
Solved with the following thread:
- Cannot install ggplot2: “Error in library.dynam(lib, package, package.lib) : shared object ‘stringi.so’ not found”
Specifically, the following,
The downloaded source packages are in ‘/tmp/RtmpQI4Uau/downloaded_packages’ > install.packages("stringi",dep=TRUE)
Sorry to bother.