
How do you set up Windows environment? I'd like to develop few platform-specific code or rather port it to this platform. I tried to set up environment but I failed (darcs hanging on copy via ssh, command line is... well slightly better then in W98 etc.). Does anyone have a tips for setting Haskell environment on Windows 7. Regards

On 3 March 2010 20:26, Maciej Piechotka
How do you set up Windows environment?
Hi Maciej I use both Cygwin and MinGW / MSYS on Win XP. Out of habit I'd always used Cygwin for non-Haskell stuff, so it was natural to use it for Haskell. Then I found I needed to use MinGW / MSYS to compile certain Haskell libs with C / FFI dependencies - some libraries just won't build on Cygwin. The terminal used to be below par for MSYS but its improved a lot recently, if I was starting from fresh I'd probably see how far I could go with just MinGW / MSYS. For darcs and SSH, Cygwin might be better though. For editing code I use Emacs - I've never got it to work viably with the Cygwin Bash shell in inferior mode (?), so I simply have a Cygwin terminal running GHCi under Bash and Emacs for editing code then Alt-Tab between them. Best wishes Stephen

On Wed, 2010-03-03 at 21:46 +0000, Stephen Tetley wrote:
The terminal used to be below par for MSYS but its improved a lot recently, if I was starting from fresh I'd probably see how far I could go with just MinGW / MSYS. For darcs and SSH, Cygwin might be better though.
I get the same behaviour - darcs hangs. In verbose output it seems that it has some I/O errors on FD 4 whatever it is (i.e. socket, file etc.). Any ideas? Combining with Console and/or (x)emacs+Cygwin/X+eshell it should be sufficient for my other needs. Regards

I suppose you are already using the Haskell Platform?
I had problems with darcs freezing, and it turned out that the ssh
client was actually prompting for something. Is the host you are
connected to in your list of trusted hosts? Also i had a similar
problem when using Pageant to manage SSH-keys, and the command prompt
was run in privileged mode.
/Jonas Duregård
On 4 March 2010 02:58, Maciej Piechotka
On Wed, 2010-03-03 at 21:46 +0000, Stephen Tetley wrote:
The terminal used to be below par for MSYS but its improved a lot recently, if I was starting from fresh I'd probably see how far I could go with just MinGW / MSYS. For darcs and SSH, Cygwin might be better though.
I get the same behaviour - darcs hangs. In verbose output it seems that it has some I/O errors on FD 4 whatever it is (i.e. socket, file etc.). Any ideas?
Combining with Console and/or (x)emacs+Cygwin/X+eshell it should be sufficient for my other needs.
Regards
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On 04/03/2010 07:54, Jonas Almström Duregård wrote:
I suppose you are already using the Haskell Platform?
I had problems with darcs freezing, and it turned out that the ssh client was actually prompting for something. Is the host you are connected to in your list of trusted hosts? Also i had a similar problem when using Pageant to manage SSH-keys, and the command prompt was run in privileged mode.
/Jonas Duregård
Hmm. I installed openssh, added its key to trusted hosts and removed putty from path. Now it complains there is no _darcs/inventory in repository (there is inventories directory and hashed_inventory file). Hmm... some progress. Regards

If you use putty instead and type ssh youruser@yourrepository.com Does it connect properly? This is from the patch-tag website:
Problems pushing or pulling darcs failed: Not a repository: myuser@patch-tag.com:/r/myrepo ((scp) failed to fetch: myuser@patch-tag.com:/r/myrepo/_darcs/inventory) Did you get an error like that? That's weird. Email the output of
ssh -v myuser@patch-tag.com to team@patch-tag.com so we can diagnose and resolve the problem. (Note: the -v flag to ssh gives verbose >output.)
/Jonas Duregård
2010/3/4 Maciej Piechotka
On 04/03/2010 07:54, Jonas Almström Duregård wrote:
I suppose you are already using the Haskell Platform?
I had problems with darcs freezing, and it turned out that the ssh client was actually prompting for something. Is the host you are connected to in your list of trusted hosts? Also i had a similar problem when using Pageant to manage SSH-keys, and the command prompt was run in privileged mode.
/Jonas Duregård
Hmm. I installed openssh, added its key to trusted hosts and removed putty from path. Now it complains there is no _darcs/inventory in repository (there is inventories directory and hashed_inventory file). Hmm... some progress.
Regards

On Thu, 2010-03-04 at 14:16 +0100, Jonas Almström Duregård wrote:
If you use putty instead and type ssh youruser@yourrepository.com Does it connect properly?
Yes
This is from the patch-tag website:
Problems pushing or pulling darcs failed: Not a repository: myuser@patch-tag.com:/r/myrepo ((scp) failed to fetch: myuser@patch-tag.com:/r/myrepo/_darcs/inventory) Did you get an error like that? That's weird. Email the output of
ssh -v myuser@patch-tag.com to team@patch-tag.com so we can diagnose and resolve the problem. (Note: the -v flag to ssh gives verbose >output.)
/Jonas Duregård
I'll check but I have code on code.haskell.org. Regards PS. I guess that someone who complains on underdevelopment of shell on Windows is well aware what -v means ;)

On Wed, Mar 3, 2010 at 20:26, Maciej Piechotka
How do you set up Windows environment? I'd like to develop few platform-specific code or rather port it to this platform.
I tried to set up environment but I failed (darcs hanging on copy via ssh, command line is... well slightly better then in W98 etc.).
Does anyone have a tips for setting Haskell environment on Windows 7.
http://stackoverflow.com/questions/304614/haskell-on-windows-setup /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

On Wed, 03 Mar 2010 21:26:59 +0100, Maciej Piechotka
How do you set up Windows environment? I'd like to develop few platform-specific code or rather port it to this platform.
You can find a lot of tips at: http://www.haskell.org/haskellwiki/Windows Please add information to this page if you find something missing. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html --

On Wed, Mar 3, 2010 at 12:26 PM, Maciej Piechotka
How do you set up Windows environment? I'd like to develop few platform-specific code or rather port it to this platform.
I tried to set up environment but I failed (darcs hanging on copy via ssh, command line is... well slightly better then in W98 etc.).
If you're having problems with darcs I would recommend using the darcs-users mailing list: http://lists.osuosl.org/pipermail/darcs-users/ It would also be nice to know more about your setup (darcs version, ssh tools, what steps you've taken to configure darcs/ssh). The darcs wiki also has some information about windows: http://wiki.darcs.net/WindowsConfiguration Since it's a wiki it's possibly in need of updates but as I don't use windows I can't really say (or accurately update it). I hope that helps, Jason

On Thu, 2010-03-04 at 07:29 -0800, Jason Dagit wrote:
On Wed, Mar 3, 2010 at 12:26 PM, Maciej Piechotka
wrote: How do you set up Windows environment? I'd like to develop few platform-specific code or rather port it to this platform. I tried to set up environment but I failed (darcs hanging on copy via ssh, command line is... well slightly better then in W98 etc.).
If you're having problems with darcs I would recommend using the darcs-users mailing list: http://lists.osuosl.org/pipermail/darcs-users/
It would also be nice to know more about your setup (darcs version, ssh tools, what steps you've taken to configure darcs/ssh).
The darcs wiki also has some information about windows: http://wiki.darcs.net/WindowsConfiguration
1. Please ignore last error I post. There was mistake in repo location. 2. I finally managed to use ssh+ssh-agent from openssh to deal with problems. I left with setting ssh with pinentry but it is not the correct list ;) 3. Thank you - that was the first place I looked at ;)
Since it's a wiki it's possibly in need of updates but as I don't use windows I can't really say (or accurately update it).
You're lucky ;) Well - to be honest I'm as well most of the time ;)
I hope that helps, Jason
Regards
participants (6)
-
Henk-Jan van Tuyl
-
Jason Dagit
-
Jonas Almström Duregård
-
Maciej Piechotka
-
Magnus Therning
-
Stephen Tetley