hannes / MonetDBLite

MonetDB reconfigured as a library
108 stars 11 forks source link

devtools::install_github on Windows broken again #178

Closed stefanfritsch closed 7 years ago

stefanfritsch commented 7 years ago

Hi,

I don't know if this is related to #1 but when I try to install the github version I get:

> devtools::install_github("hannesmuehleisen/MonetDBLite")
Installing MonetDBLite
"C:/PROGRA~1/R/bin/x64/R" --no-site-file --no-environ --no-save --no-restore  \
  --quiet CMD INSTALL  \
  "C:/Users/StefanFritsch/AppData/Local/Temp/RtmpUdm17L/file4cc02e0354a4/MonetDBLite"  \
  --library="C:/Users/StefanFritsch/Documents/R/win-library/3.4" --install-tests 

* installing *source* package 'MonetDBLite' ...
File not found - *.in
> download.file('http://github.com/hannesmuehleisen/MonetDBLite/raw/bb652b076adca70456c51a7cd068ba837c37b7cc/windows-buildfiles/msvcr100-64.dll', 'src/embedded/windows/msvcr100.dll', mode='wb')
trying URL 'http://github.com/hannesmuehleisen/MonetDBLite/raw/bb652b076adca70456c51a7cd068ba837c37b7cc/windows-buildfiles/msvcr100-64.dll'
Content type 'application/octet-stream' length 829264 bytes (809 KB)
==================================================
downloaded 809 KB

> 
> 
make: *** No targets specified and no makefile found.  Stop.
build failure
Warning: running command 'sh ./configure.win' had status 1
ERROR: configuration failed for package 'MonetDBLite'
* removing 'C:/Users/StefanFritsch/Documents/R/win-library/3.4/MonetDBLite'
Installation failed: Command failed (1)

This is also true for the zips of the recent releases and if I clone and use "build&reload" in RStudio.

Is there any way to use the package with a current dplyr version on Windows?

Thanks Stefan

hannes commented 7 years ago

Issue is probably File not found - *.in What is your environment, do you have Rtools installed?

stefanfritsch commented 7 years ago

Rtools is installed and I just tried install_github for data.table to check.

> Sys.getenv()
ALLUSERSPROFILE          C:\ProgramData
APPDATA                  C:\Users\StefanFritsch\AppData\Roaming
ChocolateyInstall        C:\ProgramData\chocolatey
ChocolateyLastPathUpdate
                         Wed Jul 5 12:05:41 2017
CommonProgramFiles       C:\Program Files\Common Files
CommonProgramFiles(x86)
                         C:\Program Files (x86)\Common Files
CommonProgramW6432       C:\Program Files\Common Files
COMPUTERNAME             SB-STEFAN
ComSpec                  C:\WINDOWS\system32\cmd.exe
DISPLAY                  :0
FPS_BROWSER_APP_PROFILE_STRING
                         Internet Explorer
FPS_BROWSER_USER_PROFILE_STRING
                         Default
GFORTRAN_STDERR_UNIT     -1
GFORTRAN_STDOUT_UNIT     -1
HOME                     C:/Users/StefanFritsch/Documents
HOMEDRIVE                C:
HOMEPATH                 \Users\StefanFritsch
LOCALAPPDATA             C:\Users\StefanFritsch\AppData\Local
LOGONSERVER              \\SB-STEFAN
MSMPI_BIN                C:\Program Files\Microsoft MPI\Bin\
NUMBER_OF_PROCESSORS     4
OneDrive                 C:\Users\StefanFritsch\OneDrive
OS                       Windows_NT
PATH                     C:\Program Files\R\bin\x64;C:\Program
                         Files\Microsoft
                         MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program
                         Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files
                         (x86)\Bitvise SSH
                         Client;c:\Rtools\bin;c:\Rtools\mingw_64\bin;C:\ProgramData\chocolatey\lib\mpv.portable\tools;C:\Program
                         Files (x86)\NVIDIA
                         Corporation\PhysX\Common;C:\ProgramData\chocolatey\lib\mpv.install\tools;C:\Program
                         Files\TortoiseGit\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
                         Files\Git\cmd;C:\Users\StefanFritsch\AppData\Local\Microsoft\WindowsApps;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Users\StefanFritsch\AppData\Roaming\Boxstarter
PATHEXT                  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE   AMD64
PROCESSOR_IDENTIFIER     Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
PROCESSOR_LEVEL          6
PROCESSOR_REVISION       4e03
ProgramData              C:\ProgramData
ProgramFiles             C:\Program Files
ProgramFiles(x86)        C:\Program Files (x86)
ProgramW6432             C:\Program Files
PSModulePath             C:\Users\StefanFritsch\Documents\WindowsPowerShell\Modules;C:\Users\StefanFritsch\AppData\Roaming\Boxstarter
PUBLIC                   C:\Users\Public
R_ARCH                   /x64
R_COMPILED_BY            gcc 4.9.3
R_DOC_DIR                C:/PROGRA~1/R/doc
R_HOME                   C:/PROGRA~1/R
R_LIBS_USER              C:/Users/StefanFritsch/Documents/R/win-library/3.4
R_USER                   C:/Users/StefanFritsch/Documents
RMARKDOWN_MATHJAX_PATH   C:/Program Files/RStudio/resources/mathjax-26
RS_LOCAL_PEER            \\.\pipe\24922-rsession
RS_RPOSTBACK_PATH        C:/Program Files/RStudio/bin/rpostback
RS_SHARED_SECRET         63341846741
RSTUDIO                  1
RSTUDIO_MSYS_SSH         C:/Program Files/RStudio/bin/msys-ssh-1000-18
RSTUDIO_PANDOC           C:/Program Files/RStudio/bin/pandoc
RSTUDIO_SESSION_PORT     24922
RSTUDIO_USER_IDENTITY    StefanFritsch
RSTUDIO_WINUTILS         C:/Program Files/RStudio/bin/winutils
SESSIONNAME              Console
SystemDrive              C:
SystemRoot               C:\WINDOWS
TEMP                     C:\Users\STEFAN~1\AppData\Local\Temp
TMP                      C:\Users\STEFAN~1\AppData\Local\Temp
USERDOMAIN               AzureAD
USERDOMAIN_ROAMINGPROFILE
                         AzureAD
USERNAME                 StefanFritsch
USERPROFILE              C:\Users\StefanFritsch
windir                   C:\WINDOWS
hannes commented 7 years ago

I just pushed a minor change that could possibly improve things. Could you try again please?

stefanfritsch commented 7 years ago

Hi,

unfortunately still the same:

> devtools::install_github("hannesmuehleisen/MonetDBLite")
Downloading GitHub repo hannesmuehleisen/MonetDBLite@master
from URL https://api.github.com/repos/hannesmuehleisen/MonetDBLite/zipball/master
Installing MonetDBLite
"C:/PROGRA~1/R/bin/x64/R" --no-site-file --no-environ --no-save --no-restore  \
  --quiet CMD INSTALL  \
  "C:/Users/StefanFritsch/AppData/Local/Temp/RtmpoTeQ2T/devtools4c7414be1bdc/hannesmuehleisen-MonetDBLite-d4a3189"  \
  --library="C:/Users/StefanFritsch/Documents/R/win-library/3.4" --install-tests 

* installing *source* package 'MonetDBLite' ...
File not found - *.in
rm: cannot remove 'libmonetdb5.dll': No such file or directory
make: *** No targets specified and no makefile found.  Stop.
build failure
Warning: running command 'sh ./configure.win' had status 1
ERROR: configuration failed for package 'MonetDBLite'
* removing 'C:/Users/StefanFritsch/Documents/R/win-library/3.4/MonetDBLite'
Installation failed: Command failed (1)
hannes commented 7 years ago

I suspect your find program not being what I assume it to be. Whats the output of find --help on your command line (cmd.exe)?

hannes commented 7 years ago

build system will be overhauled for next major release anyway...

stefanfritsch commented 7 years ago

You might be onto something :) :

C:\Users\StefanFritsch>find --help
FIND: Parameter format not correct

I'll reorder my PATH and then tell you if that fixed it.

hannes commented 7 years ago

@stefanfritsch any update?

hannes commented 7 years ago

Closing since related to borked $PATH and redoing build system anyway for 0.5.x

stefanfritsch commented 7 years ago

Hi Hannes,

sorry, I was on holiday and didn't have the time to check it beforehand. Yes, it was due to the broken $PATH variable. With Rtools in front it works properly.

Thanks a lot for your help, Stefan