RE: --add-package
> In practice installation script of an external package does > --del-package before --add-package, because if it was > installed before, > --add-package would cause an error. > > Wouldn't be reasonable then to let --add-package overwrite > any existing > package of that name? There is no real safety, because the package > is explicitly deleted anyway. I don't think I agree. Installation of an external package shouldn't be doing --delete-package first: that should be left to the user (or rpm -e, or whatever). If you want to install a new package that replaces an existing one, you have to remove the existing one first. Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Sockets on Windows
I am was trying out sockets. These worked fine under linux. Under windows I get the following error. Does anyone know what it means and how I can fix it? I can telnet from within the cygwin window so I assume tcp/ip is running. Thanks, Dominic. administrator@DEFAULT /cygdrive/d/dom/home/socketTest $ ./server1 8000 Fail: does not exist Action: getProtocolByName Reason: no such protocol entry - 21st century air travel http://www.britishairways.com ATTKHVFA
Re: Sockets on Windows
> administrator@DEFAULT /cygdrive/d/dom/home/socketTest > $ ./server1 8000 > > Fail: does not exist > Action: getProtocolByName > Reason: no such protocol entry Just from looking at the manpage for getprotobyname, I surmise that the problem is that you don't have an /etc/protocols file (or equivalent) under Windows. I'm not sure what's supposed to happen (or for that matter, what's supposed to work). Look in hslibs/net/BSD.lhs; I couldn't work out what was going on in a minute; perhaps someone else knows. The other thing I couldn't work out was where getProtocolByName was being called in the first place, but presumably it's to find the protocol number of tcp. -- http://sc3d.org/rrt/ | Slow Pedestrian Crossing ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: Sockets on Windows
You need to wrap up the use of sockets in a "withSocketsDo", as in: > server port = withSocketsDo $ > do socket <- listenOn port > -- etc I seem to recall the documentation says you always need to use that, so I don't know why it works without on Linux :-) Hope this helps, Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steinitz, Dominic J Sent: Friday, February 23, 2001 11:10 AM To: glasgow-haskell-users Subject: Sockets on Windows I am was trying out sockets. These worked fine under linux. Under windows I get the following error. Does anyone know what it means and how I can fix it? I can telnet from within the cygwin window so I assume tcp/ip is running. Thanks, Dominic. administrator@DEFAULT /cygdrive/d/dom/home/socketTest $ ./server1 8000 Fail: does not exist Action: getProtocolByName Reason: no such protocol entry - 21st century air travel http://www.britishairways.com ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: --add-package
On Fri, 23 Feb 2001, Simon Marlow wrote: > I don't think I agree. Installation of an external package shouldn't be > doing --delete-package first: that should be left to the user (or rpm > -e, or whatever). rpm is a different story. I would expect 'make install' to be idempotent. With your scheme one has to write 'make uninstall install'. -- Marcin 'Qrczak' Kowalczyk ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: --add-package
> On Fri, 23 Feb 2001, Simon Marlow wrote: > > > I don't think I agree. Installation of an external package > shouldn't be > > doing --delete-package first: that should be left to the > user (or rpm > > -e, or whatever). > > rpm is a different story. I would expect 'make install' to be > idempotent. > With your scheme one has to write 'make uninstall install'. ghc --add-package behaves just like rpm --install, which seems reasonable to me. Why should it behave differently? If you want 'make install' to be idempotent (which I'm not sure is desirable anyway), then you will indeed have to ghc --delete-package first, but then I hope you're going to print a big warning and wait for the user to press any key first :) Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Problems when mounting c: to /
Hallo everybody! When installing ghc-4.08.2 (onWinNT) as described in the installation instructions under c:, I couldn't get ghc to run. It invoked the C-preprozessor and stoped after cleaning. When I unmount c:, it works fine. (If I install cygwin and dont mount c: to / it works fine too.) But now //c/ is the normal win-root. That's not a problem for me, but how about ghc? Does it depend in any way on c: mounted to /? If not why do you want this mount (in the installation instructions section 2.2.2.1)? Thanks, Andreas PS: Thanks Reuben for the new install shield and a very big thanks to all of you who have their parts in getting the profiling to run under WinNT ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users