Closed jet456 closed 3 years ago
Which version is this? Can you try installing the development version:
devtools::install_github("jeroen/mongolite")
I've tried that, and have also tried:
install.packages("mongolite")
Same error each time.
Can you show me the full output of devtools::install_github("jeroen/mongolite")
please?
Sure-- thank you for looking into this. devtoolsOutput.txt
Probably caused by this: https://github.com/jeroen/mongolite/blob/master/configure#L115-L118
What is the value of your $OSTYPE
environment variable?
$OSTYPE is linux-gnu.
That's strange it should match the regex. Does it work when you remove this line from the configure file?
Apologies for the late response. Here is what I did:
wget https://cran.r-project.org/src/contrib/mongolite_1.5.tar.gz
tar xvzf mongolite-1.5.tar.gz
cd mongolite
vi configure
# here I removed the entire if/fi statement from around line 117, write-quit
./R
In R:
> install.packages("/apps/R-3.4.0/bin/mongolite-1.5.tar.gz", repos=NULL, type="source")
And it worked! The library will load with library(mongolite) now. Thanks again!
OK but that doesn't explain why this happens. Could you modify the configure
script to echo $OSTYPE
around line 117? Also do you know what shell your configure script runs in? Just bash?
I ran into this also. My centos system responds "Linux". Removing the lines in configure allowed installation.
Ran into this again. As above: removing the lines in configure for mongolite 2.2.1 for "prevent compiler warning for empty unit" permitted installation for a centos system returning "Linux" for $OSTYPE. Just for the record.
Hi,
I'm installing mongolite on R 3.4.0, CentOS 7 (Linux), and am running into the issue below. I've confirmed that all prerequisite packages (openssl-devel and cyrus-sasl-devel) are installed to the system, and have tried installing mongolite via CRAN and source.
Thanks-
{ Lots of compiling output }