Summary

invalid number of parameters in install target on Windows

Metadata

Description

I tried to install chicken on windows following the instructions from https://wiki.call-cc.org/compiling-chicken-on-windows-xp-with-mingw but the install part failed with following:

 1 File(s) copied
 xcopy /Y .\feathers.1 "C:\chicken\share\man\man1"
 .\feathers.1
 1 File(s) copied
 mkdir  "C:\chicken\share\chicken\doc\manual"
 xcopy /Y .\manual-html\* "C:\chicken\share\chicken\doc\manual"
 0 File(s) copied
 xcopy /Y .\README "C:\chicken\share\chicken\doc"
 .\README
 1 File(s) copied
 xcopy /Y .\LICENSE "C:\chicken\share\chicken\doc"
 .\LICENSE
 1 File(s) copied
 xcopy /Y .\setup.defaults "C:\chicken\share\chicken"
 .\setup.defaults
 1 File(s) copied
 xcopy /Y .\feathers.tcl "C:\chicken/share/chicken"
 Invalid number of parameters
 .\rules.make:415: recipe for target 'install-other-files' failed
 mingw32-make: *** [install-other-files] Error 4
 
 C:\Users\tmy\Downloads\chicken-4.11.0>

Seems DATADIR variable is using wrong separators so the xcopy mistakes path as command argument. Replacing the path arguments separaters with backslashes made the install target complete succesfully.

Changes and comments

[2016-07-27 13:49:10 UTC] zmyrgel wrote:

I tested the above with PREFIX using backslashes, heres the result with forward slashes:

 C:chicken-profile.exe
 1 File(s) copied
 xcopy /Y csc.exe "c:\chicken\bin"
 C:csc.exe
 1 File(s) copied
 xcopy /Y chicken-bug.exe "c:\chicken\bin"
 C:chicken-bug.exe
 1 File(s) copied
 xcopy /Y chicken-status.exe "c:\chicken\bin"
 C:chicken-status.exe
 1 File(s) copied
 xcopy /Y chicken-install.exe "c:\chicken\bin"
 C:chicken-install.exe
 1 File(s) copied
 xcopy /Y chicken-uninstall.exe "c:\chicken\bin"
 C:chicken-uninstall.exe
 1 File(s) copied
 xcopy /Y feathers.bat \
   "c:/chicken/bin"
 Invalid number of parameters
 .\rules.make:363: recipe for target 'install-bin' failed
 mingw32-make: *** [install-bin] Error 4
 
 C:\Users\tmy\Downloads\chicken-4.11.0>

[2016-08-25 20:49:01 UTC] sjamaan set difficulty to medium

[2018-11-07 23:01:55 UTC] sjamaan changed status from new to closed

[2018-11-07 23:01:55 UTC] sjamaan set resolution to fixed

[2018-11-07 23:01:55 UTC] sjamaan wrote:

We've also done a lot of work on improving shell quoting and done several tests with weird path names. And indeed, forward slashes are required. Many people have tested on Windows, so I think the bug probably is gone already. (note that this was filed against CHICKEN 4.11)

If it's still failing, please reopen.