BreakoutDetection icon indicating copy to clipboard operation
BreakoutDetection copied to clipboard

compilation failed

Open fabiogiglietto opened this issue 11 years ago • 8 comments

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)

fabiogiglietto avatar Oct 27 '14 16:10 fabiogiglietto

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.

putnam120 avatar Oct 27 '14 17:10 putnam120

Same Problem Here

shithead548 avatar Oct 28 '14 05:10 shithead548

@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!

fabiogiglietto avatar Oct 30 '14 09:10 fabiogiglietto

Thanks @fabiogiglietto for sharing.

akejariwal avatar Oct 30 '14 18:10 akejariwal

@fabiogiglietto Thanks for sharing your solution with us.

putnam120 avatar Nov 02 '14 20:11 putnam120

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

laurikoobas avatar Nov 07 '14 10:11 laurikoobas

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/

nleny avatar Jan 12 '15 19:01 nleny

@fabiogiglietto thank you for sharing!

shihs avatar Jun 30 '15 06:06 shihs