twitter / BreakoutDetection

Breakout Detection via Robust E-Statistics
GNU General Public License v2.0
755 stars 181 forks source link

compilation failed #5

Open fabiogiglietto opened 10 years ago

fabiogiglietto commented 10 years ago

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:/PROGRA~1/R/R-31~1.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:/PROGRA~1/R/R-31~1.1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-31~1.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 commented 10 years ago

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 commented 10 years ago

Same Problem Here

fabiogiglietto commented 10 years ago

@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 commented 10 years ago

Thanks @fabiogiglietto for sharing.

putnam120 commented 10 years ago

@fabiogiglietto Thanks for sharing your solution with us.

laurikoobas commented 10 years ago

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 commented 9 years ago

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 commented 9 years ago

@fabiogiglietto thank you for sharing!