rstudio / httpuv

HTTP and WebSocket server package for R
Other
229 stars 86 forks source link

Missing separator error using R 3.5.0 on Windows 64 #126

Closed aadler closed 6 years ago

aadler commented 6 years ago

I'm trying to install the package from source on Windows 7 64bit for R 3.5.0 using Rtools 3.5, and I'm getting the following error:

install.packages('httpuv', type = 'source', INSTALL_opts = '--byte-compile --clean --resave-data --compact-docs')
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cloud.r-project.org/src/contrib/httpuv_1.4.1.tar.gz'
Content type 'application/x-gzip' length 1669227 bytes (1.6 MB)
downloaded 1.6 MB

'\\[redacted]'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* installing *source* package 'httpuv' ...
** package 'httpuv' successfully unpacked and MD5 sums checked
** libs
Makevars.win:28: *** missing separator.  Stop.
Makevars.win:28: *** missing separator.  Stop.
ERROR: compilation failed for package 'httpuv'
* removing 'C:/R/RCurrent/R-3.5.0/library/httpuv'
In R CMD INSTALL

The downloaded source packages are in
        ‘C:\R\temp\RtmpGW5KVI\downloaded_packages’
Warning message:
In install.packages("httpuv", type = "source", INSTALL_opts = "--byte-compile --clean --resave-data --compact-docs") :
  installation of package ‘httpuv’ had non-zero exit status

I get this using both RStudio (447) and the GUI console.

Thanks.

wch commented 6 years ago

Shoot, it looks like that line has spaces instead of a tab: https://github.com/rstudio/httpuv/blob/v1.4.1/src/Makevars.win#L28

Can you try installing without the --clean flag?

aadler commented 6 years ago

Doesn't help.


> install.packages('httpuv', type = 'source', INSTALL_opts = '--byte-compile --resave-data --compact-docs')
trying URL 'https://cran.rstudio.com/src/contrib/httpuv_1.4.1.tar.gz'
Content type 'application/x-gzip' length 1669227 bytes (1.6 MB)
downloaded 1.6 MB

'\\[redacted]
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* installing *source* package 'httpuv' ...
** package 'httpuv' successfully unpacked and MD5 sums checked
** libs
Makevars.win:28: *** missing separator.  Stop.
ERROR: compilation failed for package 'httpuv'
* removing 'C:/R/RCurrent/R-3.5.0/library/httpuv'
* restoring previous 'C:/R/RCurrent/R-3.5.0/library/httpuv'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘httpuv’ had non-zero exit status

The downloaded source packages are in
    ‘C:\R\temp\RtmpKamaDW\downloaded_packages’
aadler commented 6 years ago

Confirming that installing 8a28cdb from devtools works. Thanks!