overcoil / X4R

Enable R to source data from an OLAP cube via XMLA by specifying an MDX query.
26 stars 18 forks source link

Unable to Install (Windows 8 R 3.1.0) #10

Closed mauricioromero86 closed 9 years ago

mauricioromero86 commented 9 years ago

I try to use the following commands install.packages("devtools") library(devtools) install_github("overcoil/X4R")

But get the following error message

Downloading github repo overcoil/X4R@master Installing X4R "C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL \ "C:\Users\Mauricio\AppData\Local\Temp\RtmpQ9igy1\devtools2fc03f84a1a\overcoil-X4R-75de0a6" \ --library="C:/Users/Mauricio/Documents/R/win-library/3.1" --install-tests

** arch - i386 g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I. -I"C:/Users/Mauricio/Documents/R/win-library/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c X4R.cpp -o X4R.o g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I. -I"C:/Users/Mauricio/Documents/R/win-library/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c soapC.cpp -o soapC.o soapC.cpp:5631:0: warning: ignoring #pragma warning [-Wunknown-pragmas] soapC.cpp:5632:0: warning: ignoring #pragma warning [-Wunknown-pragmas] soapC.cpp:5754:0: warning: ignoring #pragma warning [-Wunknown-pragmas] g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I. -I"C:/Users/Mauricio/Documents/R/win-library/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c soapXmlaWebServiceSoapProxy.cpp -o soapXmlaWebServiceSoapProxy.o g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I. -I"C:/Users/Mauricio/Documents/R/win-library/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c stdsoap2.cpp -o stdsoap2.o stdsoap2.cpp:75:0: warning: ignoring #pragma comment [-Wunknown-pragmas] stdsoap2.cpp:77:0: warning: ignoring #pragma warning [-Wunknown-pragmas] stdsoap2.cpp: In function 'const char* soap_strerror(soap)': stdsoap2.cpp:16229:11: warning: variable 'len' set but not used [-Wunused-but-set-variable] g++ -m32 -shared -s -static-libgcc -o X4R.dll tmp.def X4R.o soapC.o soapXmlaWebServiceSoapProxy.o stdsoap2.o -LC:/PROGRA~1/R/R-31~1.2/library/Rcpp/libs/i386 -LC:/PROGRA~1/R/R-31~1.2/library/Rcpp/libs/x64 -lRcpp -lws2_32 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lR c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lRcpp collect2: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'X4R'

I have never installed a package from git_hub before using devtools... so I'm not sure if I miss a step or something.

Thanks!

mauricioromero86 commented 9 years ago

I solved, had to change the path in which Rcpp was installed

mauricioromero86 commented 9 years ago

Hi,

Well i used the following code

install.packages("Rcpp",.libPaths()[2]) install.packages("devtools") library(devtools) install_github("overcoil/X4R")

The first bit is telling R to use the appropiuate path to install Rcpp.

Does that make sense? I hope this is useful

Best,

M

On Mon, Feb 23, 2015 at 12:52 PM, tu-artem notifications@github.com wrote:

@mauricioromero86 https://github.com/mauricioromero86 Hello!

I have exactly the same problem, but I am really new to R and RStudio. Can you please tell me how to change the path to Rcpp to solve this problem?

Thanks a lot!

— Reply to this email directly or view it on GitHub https://github.com/overcoil/X4R/issues/10#issuecomment-75629223.

tu-artem commented 9 years ago

Hello! Thank you for your answer!

Actually I have just copy the Rcpp folder from one directory to the other and that made sence. But your way is much easier and clear)

thanx