ropensci / hunspell

High-Performance Stemmer, Tokenizer, and Spell Checker for R
https://docs.ropensci.org/hunspell
Other
109 stars 44 forks source link

failed installing #10

Closed thierrygosselin closed 8 years ago

thierrygosselin commented 8 years ago

Warning in install.packages : URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/hunspell_1.4.2.tgz': status was '404 Not Found' Error in download.file(url, destfile, method, mode = "wb", ...) : cannot download all files Warning in install.packages : download of package ‘hunspell’ failed

Using compilation from source: Do you want to install from sources the package which needs compilation? y/n: y installing the source package ‘hunspell’

trying URL 'https://cran.rstudio.com/src/contrib/hunspell_1.4.3.tar.gz'

Content type 'application/x-gzip' length 2756073 bytes (2.6 MB)

downloaded 2.6 MB

The downloaded source packages are in ‘/private/var/folders/l_/vmf27bgn4yv1fbdc_kghmzy00000gn/T/Rtmp88pnjW/downloaded_packages’

jeroen commented 8 years ago

There is something wrong with your R installation. You're passing an -fopenmp flag to the compiler which shouldn't be there. Probably in your ~/R/environment or so.

thierrygosselin commented 8 years ago

the -fopenmp is required if I want to run Random Forest on multiple CPU...

jeroen commented 8 years ago

well according to your own output, you're setting it somewhere where it is not supported...

thierrygosselin commented 8 years ago

Turned off -fopenmp flag in ~/.R/Makevars file and it worked with install.packages("hunspell").

First time I get problem with -fopenmp option during install...

jeroen commented 8 years ago

I guess you usually don't install packages from source? There is really nothing special about the hunspell package.