Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cygwin Package #64

Open
CMCDragonkai opened this issue Mar 24, 2016 · 17 comments
Open

Cygwin Package #64

CMCDragonkai opened this issue Mar 24, 2016 · 17 comments

Comments

@CMCDragonkai
Copy link

Can this be a Cygwin Package so it can be installed from Cygwin package installer?

@rprichard
Copy link
Owner

That makes sense to me. There's already an MSYS2 package.

It might make sense to deal with #43 first.

I've also been thinking that we may want to rename console.exe to winpty.exe, which is what the MSYS2 packager did. If so, it's probably better to do that before packaging it for Cygwin.

I'm unfamiliar with the process for creating a Cygwin package.

@CMCDragonkai
Copy link
Author

Here's the guide I found for contributing new cygwin packages. Would be great to have this just installed so I can start using ghci natively!

https://cygwin.com/setup.html

@rprichard
Copy link
Owner

FWIW, I changed the default adapter name from console.exe to winpty.exe in master a few days ago in commit d984413.

@gene-pavlovsky
Copy link

Glad to find this discussion - the README talks about the winpty command but the Cygwin package has the console command. I tried it and it worked, so I figured it's gotta be same as winpty (should I create a symlink?), just wondered why the name is different. Read this and simply renamed the file.

@gene-pavlovsky
Copy link

I'd also like to use a Cygwin package to install winpty.

@lusitania
Copy link

For completeness, if you want to docker exec -it over Cygwin's mintty you get

the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

Since cmd is the only (easily) available alternative I'm looking forward for a packaged winpty.

@CMCDragonkai
Copy link
Author

@gene-pavlovsky Where did you find a Cygwin package for Winpty? I don't see it when searching for it. Or has it not been packaged yet?

@gene-pavlovsky
Copy link

@CMCDragonkai I was referring to the Cygwin release of winpty, available for download from winpty releases page on github, e.g. https://github.com/rprichard/winpty/releases/download/0.4.0/winpty-0.4.0-cygwin-2.5.2-x64.tar.gz
There is no official winpty package in Cygwin itself, as far as I know. Sorry for the confusion.

@rahmanya
Copy link

rahmanya commented Sep 8, 2017

@lusitania I was having the same issue when I tried to run "docker run -it ubuntu bash" from cygwin.
here is what I did to resolve the issue:
Aparently, this problem is to do with MinTTY being implemented as pipes
instead of something that directly encapsulates a Windows console.

so the work around for this (after digging around some resources which I will reference below)
was to install WinPTY. This is a tool that launches a program in a typical Windows console,
captures the data, and forwards it to MinTTY seamlessly.

so I followed the guide from this website:
https://github.com/rprichard/winpty
after understanding that i needed to have the following cygwin packages:
-mingw64-x86_64-gcc-g++
-gcc-g++
-make

I decided to re-install the version of my installed cygwin (this is not actually necessary, but I just wanted to start
on a clean slate)
I decided to have the follwong packages installed with my fress install of cygwin:
lynx, wget, curl, rsync
-python, python3
-bzip, tar
-Bash-completion
-vim, vim-common
-tmux
-git
-diffutils
-make
-gcc-c, gcc-g++
-openssh
-ncurses

after installing cygwin, I ran:
cd /bin
then clone the repo from like thus:

then cd into the winpty directory and ran:
./configure, make and make install to setup the winpty package.

after that i tested my installtion from the cygein terminal: by entering the command:
$ winpty powershell
the result was success ! I got windows powershell propmt on cygwin

then i ran the docker exec command
$ winpty docker run -it ubuntu bash
and it worked !

but now i have some issues with my cygwin installation !
I keep getting " permission denied" error when I tried to
run ' apt-cyg' install command.

  • i get a permission denied message also when I tried to start a 'Dockerized webserver'
    using the command:
    docker run -d -p 80:80 --name webserver nginx from cygwin

@PMarci
Copy link

PMarci commented Sep 22, 2017

I got winpty for exactly the same reason as @rahmanya, and his workaround (cygwin->ps->docker container) is enough for me. However the coloring of the PS syntax highlighting still produces invisible characters for me, despite your fix in d1cee5e.
I commented in #39 about this.

@7fe
Copy link

7fe commented Aug 16, 2018

Please do this! Adding this to cygwin would make people life a lot easier.

@E3V3A
Copy link

E3V3A commented Dec 12, 2018

bump!?

@TTimo
Copy link

TTimo commented Jan 27, 2019

the tarball listed above is working fine so far, but still .. +1 !

1 similar comment
@chbieri
Copy link

chbieri commented Oct 17, 2019

the tarball listed above is working fine so far, but still .. +1 !

@ahsodex
Copy link

ahsodex commented Dec 16, 2019

winpty makes my life working with Windows much better. Having a Cygwin package for winpty so I don't have to build it and can include in my standard Windows install plan would be even better still. But either way, thanks for making winpty.

@Saya47
Copy link

Saya47 commented Feb 9, 2022

So until we get a Cygwin package, can anyone tell me where I should extract winpty-0.4.3-cygwin-2.8.0-x64.tar.gz? Thanks!

@gene-pavlovsky
Copy link

@Saya47 Anywhere in your Path would do. I put it into C:\cygwin64\usr\local\bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests