亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 求助 network 包安裝 [打印本頁]

作者: xiufan    時間: 2008-10-26 19:30
標(biāo)題: 求助 network 包安裝
看到 haskell 有個 download想試一下,需要network,在windows上能安裝么
作者: MMMIX    時間: 2008-10-26 19:43
標(biāo)題: 回復(fù) #1 xiufan 的帖子
自己試一下嘍
作者: xiufan    時間: 2008-10-26 19:59
就是試過了,有問題
作者: MMMIX    時間: 2008-10-26 20:17
原帖由 xiufan 于 2008-10-26 19:59 發(fā)表
就是試過了,有問題

有問題就說問題嘛
作者: xiufan    時間: 2008-10-27 10:45
E:\haskell code\network-2.2.0.0>runhaskell setup configure
Configuring network-2.2.0.0...
setup: Cannot find: sh
作者: MMMIX    時間: 2008-10-27 20:59
原帖由 xiufan 于 2008-10-27 10:45 發(fā)表
E:\haskell code\network-2.2.0.0>runhaskell setup configure
Configuring network-2.2.0.0...
setup: Cannot find: sh

估計是需要 shell
作者: xiufan    時間: 2008-10-28 00:01
我覺得haskell有的包不能在windows下面使用
作者: flw    時間: 2008-10-28 09:39
你說的 network 包是哪個包呀?
我這里裝的 ghc 自己就帶 Network 模塊的呀。

  1. D:\MoChou>ghci
  2.    ___         ___ _
  3.   / _ \ /\  /\/ __(_)
  4. / /_\// /_/ / /  | |      GHC Interactive, version 6.6.1, for Haskell 98.
  5. / /_\\/ __  / /___| |      [url]http://www.haskell.org/ghc/[/url]
  6. \____/\/ /_/\____/|_|      Type :? for help.

  7. Loading package base ... linking ... done.
  8. Prelude> :m Network
  9. Prelude Network> :bro
  10. syntax:  :browse <module>
  11. Prelude Network> :bro Network
  12. data PortID = Service String | PortNumber PortNumber
  13. connectTo :: HostName -> PortID -> IO GHC.IOBase.Handle
  14. listenOn :: PortID -> IO Socket
  15. accept :: Socket -> IO (GHC.IOBase.Handle, HostName, PortNumber)
  16. sendTo :: HostName -> PortID -> String -> IO ()
  17. recvFrom :: HostName -> PortID -> IO String
  18. socketPort :: Socket -> IO PortID
  19. data Socket
  20.   = Network.Socket.MkSocket Foreign.C.Types.CInt
  21.                             Network.Socket.Family
  22.                             Network.Socket.SocketType
  23.                             Network.Socket.ProtocolNumber
  24.                             (GHC.IOBase.MVar Network.Socket.SocketStatus)
  25. newtype PortNumber = Network.Socket.PortNum GHC.Word.Word16
  26. sClose :: Socket -> IO ()
  27. withSocketsDo :: IO a -> IO a
  28. type HostName = String
  29. Prelude Network>
復(fù)制代碼

作者: MMMIX    時間: 2008-10-28 09:47
原帖由 flw 于 2008-10-28 09:39 發(fā)表
你說的 network 包是哪個包呀?

http://hackage.haskell.org/cgi-b ... pts/package/network
我這里裝的 ghc 自己就帶 Network 模塊的呀。


執(zhí)行

  1. ghc-pkg list
復(fù)制代碼

看看

[ 本帖最后由 MMMIX 于 2008-10-28 09:52 編輯 ]
作者: flw    時間: 2008-10-28 10:09
  1. D:\>ghc-pkg list
  2. C:/ghc/ghc-6.6.1\package.conf:
  3.     Cabal-1.1.6.2, GLUT-2.1.1, HUnit-1.1.1, OpenGL-2.2.1,
  4.     QuickCheck-1.0.1, Win32-2.1.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1,
  5.     filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0,
  6.     html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, regex-base-0.72,
  7.     regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0,
  8.     template-haskell-2.1, time-1.1.1, xhtml-3000.0.2

  9. D:\>
復(fù)制代碼

難道 network 模塊不是標(biāo)配嗎?
為什么樓主會沒有。難道是我以前裝的自己又忘了?
作者: MMMIX    時間: 2008-10-28 10:37
原帖由 flw 于 2008-10-28 10:09 發(fā)表
難道 network 模塊不是標(biāo)配嗎?

應(yīng)該是。
作者: xiufan    時間: 2008-10-28 18:30
我看到了,難道就不能升級么?例如network版本升級了,主要是提示找不到sh不知道原因
作者: xiufan    時間: 2008-10-30 09:05
哈哈,不光我一個人在戰(zhàn)斗
One more thing, I also had to add my cygwin bin directory containing "sh.exe" to my Windows %PATH% variable. This allowed network to configure from the windows command prompt.

/jve



On Wed, Oct 29, 2008 at 8:37 PM, John Van Enk <vanenkj@gmail.com> wrote:

Hello All,


I'm trying to reinstall network-2.2.0.0 against Parsec 3 in Windows. Well, this is really hard/impossible to do. Here's what I've done so far:


1) After bashing my face against my desk for a while, I got cabal-install installed in windows.
2) cabal install network --reinstall
3) This freaks out because I don't have hsc2hs installed, but it doesn't tell me that, it just complains about something having to do with sizeof.
4) I figure out that I need hsc2hs installed, and i put cabal-install to use fetching it for me.
5) cabal-install fails because hsc2hs needs the process and directory packages, but they aren't exposed by the cabal file (at least in the version sitting on hackage, I assume this is the right one to use).
6) I give up on using cabal-install to get hsc2hs, so i download the targz for hsc2hs directly.
7) I fix the .cabal file to include process and directory
runhaskell Setup configure:
>runhaskell Setup configure
Configuring hsc2hs-0.67.20061107...
Warning: No 'build-type' specified. If you do not need a custom Setup.hs or
./configure script then use 'build-type: Simple'.
9) runhaskell Setup build:
Everything works fine.
10) runhaskell Setup install:
Everything works fine.
11) Go back to try and install network-2.2.0.0 again with cabal-install.
12) Gets past the sizeof/hsc2hs errors, but then chokes on spaces in build path names:
Preprocessing library network-2.2.0.0...
gcc.exe: Files\Haskell\parsec-2.1.0.1\ghc-6.8.3: No such file or directory
linking dist\build\Network\BSD_hsc_make.o failed
command was: C:\ghc\ghc-6.8.3\gcc.exe -BC:\ghc\ghc-6.8.3\gcc-lib -IC:\ghc\ghc-6.8.3\include\mingw -LC:\Program Files\Haskell\parsec-2.1.0.1\ghc-6.8.3 -LC:\ghc\ghc-6.8.3/lib\base-3.0.2.0 -lwsock32 -lmsvcrt -lkernel32 -luser32 -lshell32 -LC:\ghc\ghc-6.8.3 -LC:\ghc\ghc-6.8.3/gcc-lib -lm -lgmp -lwsock32 dist\build\Network\BSD_hsc_make.o -o dist\build\Network\BSD_hsc_make.exe
cabal: Error: some packages failed to install:
network-2.2.0.0 failed during the building phase. The exception was:exit: ExitFailure 1
13) And this is where I finally gave up and came here.


Does any one have any insight into:
1) Why cabal doesn't check for hsc2hs during a configure
2) How I can rebuild network-2.2.0.0 on my Windows box without sacrificing a goat to Bill Gates/GHC Gods?


Thanks.


/jve




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2