public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* CMake "command not found" on Windows Server 2012 R2
@ 2016-09-28  3:33 Rian Quinn
  2016-09-29  2:04 ` Tony Kelman
  0 siblings, 1 reply; 2+ messages in thread
From: Rian Quinn @ 2016-09-28  3:33 UTC (permalink / raw)
  To: cygwin; +Cc: tony

Using the following AppVeyor script, attempting to run cmake returns “command not found”. If I run “which cmake”, I get “/usr/bin/cmake”, so it’s there. If I compile cmake manually it works fine (using the same 3.6.2). As a not, CMake seems to work fine on Windows 10. 

Here is the script so that others can repro the issue:

------------------------------------------

environment:
    global:
        CYG_ROOT: C:\cygwin64
        CYG_MIRROR: http://cygwin.mirror.constant.com
        CYG_CACHE: C:\cygwin64\var\cache\setup
        CYG_BASH: C:\cygwin64\bin\bash

cache:
    - '%CYG_CACHE%'

install:
    - ps: 'Start-FileDownload "https://cygwin.com/setup-x86_64.exe" -FileName "setup-x86_64.exe"'
    - 'setup-x86_64.exe --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages cmake'
    - '%CYG_BASH% -lc "cygcheck -dc cygwin"'

build_script:
    - 'echo Building...'
    - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; which cmake"'
    - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; cmake"’

branches:
  only:
    - master

test: off


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CMake "command not found" on Windows Server 2012 R2
  2016-09-28  3:33 CMake "command not found" on Windows Server 2012 R2 Rian Quinn
@ 2016-09-29  2:04 ` Tony Kelman
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Kelman @ 2016-09-29  2:04 UTC (permalink / raw)
  To: cygwin

> Using the following AppVeyor script, attempting to run cmake returns
> “command not found”. If I run “which cmake”, I get “/usr/bin/cmake”,
> so it’s there. If I compile cmake manually it works fine (using the
> same 3.6.2). As a not, CMake  seems to work fine on Windows 10.

Can you reproduce this locally? If not, try the rdp options on appveyor
to remote into one of their VM's. Trying to run strace on this just hangs,
so I suspect this is due to some of the other things appveyor puts on the
path by default (most likely, msys2).

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-29  0:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28  3:33 CMake "command not found" on Windows Server 2012 R2 Rian Quinn
2016-09-29  2:04 ` Tony Kelman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).