c9 / install

Cloud9 SSH installer
181 stars 152 forks source link

Windows 7 Install Error: "cannot make pipe for process substitution" #42

Open ohnosee opened 9 years ago

ohnosee commented 9 years ago

On windows 7 64-bit I've been trying to install a local version. It appears there is an issue with the install script on line 9. Output from Git Bash as follows:

$ git clone git@github.com:c9/core.git sdk
...
$ cd sdk

$ ./scripts/install-sdk.sh
From https://github.com/c9/core
 * [new branch]      c9         -> c9/c9
 * [new branch]      master     -> c9/master
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time
                                 Dload  Upload   Total   Spent
100 10911  100 10911    0     0   9446      0  0:00bash: canno
Function not implemented:01  0:00
-:--:--bash: cannot make pipe for process substitution: Functi
579
bash: line 9: >(tee /tmp/installlog.txt): ambiguous redirect

I was able to run the second script setup-local-dev.sh but when launching Cloud9.exe, the program hangs and the console in the dev window returns a not found error for ~/.c9/windows.settings

nightwing commented 9 years ago

Googling for this error brings up http://git.661346.n2.nabble.com/PATCH-completion-fix-issue-with-process-substitution-not-working-on-Git-for-Windows-td6929795.html Could you try updating you git to a newer version, it works with the latest one (1.9.5)

ohnosee commented 9 years ago

My git is already at 1.9.5

$ git --version
git version 1.9.5.msysgit.0

$ ./scripts/install-sdk.sh
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10911  100 10911bash: cannot make pipe for process substitution: Function not implemented
   6661   bash: cannot make pipe for process substitution: Function not implemented
0  0:00:01  0:0bash: line 9: >(tee /tmp/installlog.txt): ambiguous redirect0
01 --:--:--  6661
(23) Failed writing body
nightwing commented 9 years ago

Could you try to change the first line to #!/bin/bash -ex and comment out updateCore || true line to try to find which part of the script causes this issue

ohnosee commented 9 years ago

Here's the output from Git Bash after doing that:

$ ./scripts/install-sdk.sh
++ dirname ./scripts/install-sdk.sh
+ cd ./scripts/..
++ pwd
+ SOURCE=/c/Users/jacka/c9win/sdk
++ uname -a
+ uname='MINGW32_NT-6.1 A10186 1.0.12(0.46/3/2) 2012-07-05 14:56 i686 unknown'
+ os=
++ uname -m
+ arch=i686
+ case "$uname" in
+ os=windows
+ case "$uname" in
+ arch=x86
+ red=''
+ green=''
+ yellow=''
+ blue=''
+ magenta=''
+ resetColor=''
+ NPM=npm
+ NODE=node
+ installGlobalDeps
+ [[ -f /c/Users/jacka/.c9/installed ]]
+ curl https://raw.githubusercontent.com/c9/install/master/install.sh
+ bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10911  100 10911    0     0   8136      0  0:00:01  0bash: cannot make pipe for process substitu
tion: Function not implemented:
:01 --:--bash: cannot make pipe for process substitution: Function not implemented:-
  822bash: line 9: >(tee /tmp/installlog.txt): ambiguous redirect8
ErnWong commented 9 years ago

Is it because git bash doesn't currently support the line exec > >(tee /tmp/installlog.txt)?

I got the same output from my git bash with versions

$ git --version
git version 1.9.5.msysgit.1

$ bash --version
GNU bash, version 3.1.23(6)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

Then I tried using cygwin instead, and those errors vanished, but I can't seem to run Cloud9.exe...

$ ./build/win32-dev/bin/Cloud9.exe
[6408:0403/230520:FATAL:content_main_runner.cc(720)] Check failed: base::i18n::InitializeICU().

Double clicking on cloud9.exe doesn't open either, and logged an error in the Windows Event Viewer.