KxSystems / rkdb

R client for kdb+
https://code.kx.com/q/interfaces
Apache License 2.0
41 stars 30 forks source link

Installation problems #43

Closed jessopda closed 5 years ago

jessopda commented 5 years ago

I'm trying to install this package (under R 3.5.1 / Rtools 3.5.0.4) and I get an error

"cannot find -le_static"

under the 32 bit installation (never gets to 64 bit). I've tried to find this but can't find it anywhere.

kimtang commented 5 years ago

Yes, I can see the same error. Let me check ... .

C:/Rtools/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -le_static collect2.exe: error: ld returned 1 exit status

kimtang commented 5 years ago

This is coming from the fact the arch structure is i386 so it is expecting a folder called w32. * arch - i386 c:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o rkdb.dll tmp.def rkdb.o -Lw32** -static -le_static -lws2_32 -liphlpapi -LC:/PROGRA~1/R/R-35~1.3/bin/i386 -lR

@sv : Can we have a w32 folder as well?

kimtang commented 5 years ago

When you are installing solely for w64 you can add a no-multiarch argument.

library(devtools) devtools::install_github('kxsystems/rkdb',INSTALL_opts=c("--no-multiarch"))

cmccarthy1 commented 5 years ago

I've updated devtools::install_github instructions in line with kimtangs comment above. As such since I'm closing this issue. Please reopen if any further questions arise