免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: xiufan
打印 上一主题 下一主题

求助 network 包安装 [复制链接]

论坛徽章:
95
程序设计版块每日发帖之星
日期:2015-09-05 06:20:00程序设计版块每日发帖之星
日期:2015-09-17 06:20:00程序设计版块每日发帖之星
日期:2015-09-18 06:20:002015亚冠之阿尔艾因
日期:2015-09-18 10:35:08月度论坛发贴之星
日期:2015-09-30 22:25:002015亚冠之阿尔沙巴布
日期:2015-10-03 08:57:39程序设计版块每日发帖之星
日期:2015-10-05 06:20:00每日论坛发贴之星
日期:2015-10-05 06:20:002015年亚冠纪念徽章
日期:2015-10-06 10:06:482015亚冠之塔什干棉农
日期:2015-10-19 19:43:35程序设计版块每日发帖之星
日期:2015-10-21 06:20:00每日论坛发贴之星
日期:2015-09-14 06:20:00
11 [报告]
发表于 2008-10-28 10:37 |只看该作者
原帖由 flw 于 2008-10-28 10:09 发表
难道 network 模块不是标配吗?

应该是。

论坛徽章:
0
12 [报告]
发表于 2008-10-28 18:30 |只看该作者
我看到了,难道就不能升级么?例如network版本升级了,主要是提示找不到sh不知道原因

论坛徽章:
0
13 [报告]
发表于 2008-10-30 09:05 |只看该作者
哈哈,不光我一个人在战斗
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP