Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

compilation failed #5

Open
fabiogiglietto opened this issue Oct 27, 2014 · 8 comments
Open

compilation failed #5

fabiogiglietto opened this issue Oct 27, 2014 · 8 comments

Comments

@fabiogiglietto
Copy link

I got this compilation error on

R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Platform: x86_64-w64-mingw32/x64 (64-bit)

install.packages("devtools")
Installing package into ‘C:/Users/FG/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.stat.unipd.it/bin/windows/contrib/3.1/devtools_1.5.zip'
Content type 'application/zip' length 254956 bytes (248 Kb)
opened URL
downloaded 248 Kb

package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\FG\AppData\Local\Temp\RtmpsJoQab\downloaded_packages

devtools::install_github("twitter/BreakoutDetection")
Installing github repo BreakoutDetection/master from twitter
Downloading master.zip from https://github.com/twitter/BreakoutDetection/archive/master.zip
Installing package from C:\Users\FG\AppData\Local\Temp\RtmpsJoQab/master.zip
Installing BreakoutDetection
"C:/PROGRA1/R/R-311.1/bin/x64/R" --vanilla CMD INSTALL
"C:\Users\FG\AppData\Local\Temp\RtmpsJoQab\devtoolsc54adb57d4\BreakoutDetection-master"
--library="C:/Users/FG/Documents/R/win-library/3.1" --install-tests

  • installing source package 'BreakoutDetection' ...
    ** libs
    Warning: running command 'make -f "C:/PROGRA1/R/R-311.1/etc/x64/Makeconf" -f "C:/PROGRA1/R/R-311.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="BreakoutDetection.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o edm-multi.o edm-per.o edmTail.o edmx.o helper.o"' had status 127
    ERROR: compilation failed for package 'BreakoutDetection'
  • removing 'C:/Users/FG/Documents/R/win-library/3.1/BreakoutDetection'
    Error: Command failed (1)
@putnam120
Copy link
Contributor

I removed and reinstalled the packages (BreakoutDetection, devtools, and their dependencies) and was not able to reproduce the error. My guess is that it may be a Windows problem and/or the C/C++ compiler that you are using.

Since I don't have a Windows machine I can't test out this hypothesis however.

@shithead548
Copy link

Same Problem Here

@fabiogiglietto
Copy link
Author

@ctuwuzida I was finally able to build the package. I've installed this: http://sourceforge.net/projects/mingw/?source=typ_redirect and this: http://cran.r-project.org/bin/windows/Rtools/index.html.

Hope it helps!

@akejariwal
Copy link
Contributor

Thanks @fabiogiglietto for sharing.

@putnam120
Copy link
Contributor

@fabiogiglietto Thanks for sharing your solution with us.

@laurikoobas
Copy link

Thanks @fabiogiglietto. One point I'd like to add is that you have to restart R / RStudio after installing the two pieces of software.

@nleny
Copy link

nleny commented Jan 12, 2015

Hi, this did not work for me,
I've found a blog post where the guy explains what's going on with the working directories. You have to be careful when you reinstall rtools.
It is explained here : http://www.ahschulz.de/2013/07/23/installing-rmysql-under-windows/

@shihs
Copy link

shihs commented Jun 30, 2015

@fabiogiglietto thank you for sharing!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants