为什么 Haskell Platform 在 OS X 上安装失败?
我在 Haskell-cafe 上问过这个问题,得到的唯一答案是——试试 stackoverflow,它受到更密切的关注。
当我尝试安装最新的 Haskell Platform 时,安装总是失败。
几天来我已经尝试了好几次了。这是今天的情况: 从 Haskell Wiki 下载的软件包:http://lambda.galois.com/hp-tmp/2011.2.0.1/Haskell%20Platform%202011.2.0.1-i386.pkg,http://hackage.haskell.org/platform/mac.html
我的系统:OS X 10.6.8(我第一次遇到这个问题时是10.6.7),2.4 GHz Intel Core 2 Duo。根据 df -HI 有 221G 的可用磁盘。
我有 Xcode 3.2.5。
下载后,我完成安装步骤,最后它说“安装失败,联系软件开发商”或类似的文字。
这是一个已知问题吗?有什么意见或建议吗?
7-1 的新尝试:
之前的日志消息中对“NeoOffice”的引用让我感到非常困惑(请参阅下面的评论)。我从计算机中完全删除了 NeoOffice,并再次运行 Haskell Platform 安装。现在控制台系统日志显示:
-- 7 月 1 日 11:06:43 jrv installd[1489]:开始 7 月 1 日 11:06:43 jrv installd[1489]:uid=0,euid=0 7 月 1 日 11:06:43 jrv installd[1489]:PackageKit:* 缺少捆绑包标识符:/Library/Receipts/Print Selection Service.pkg 7 月 1 日 11:07:41 jrv 安装程序[1472]:安装程序遇到错误,导致安装失败。请联系软件制造商寻求帮助。
如果是这样,我很惊讶没有其他人看到这个问题。
7 月 2 日新编辑:
图书馆/收据/打印选择服务和其他问题是转移注意力的问题,因为安装人员发现了损坏的安装,但消除这些问题对最终结果没有影响。也许这是 10.6.8 中的新内容?
消除这些之后,我解压了当前的 Haskell 平台和前一个平台,并尝试对它们进行比较,但没有任何实际效果。在两个发行版文件上运行 diff 会产生前一个具有“choice4”而当前具有“choice14”的结果,但以我对 os x 软件包的浅薄了解,我认为这没有什么区别。
我从命令行以详细模式运行安装程序,现在得到:
sudo installer -verbose -pkg Haskell\ Platform\ 2011-2.2.0.1-i386.pkg -target /
installer: Package name is Haskell Platform
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing Haskell Platform….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
installer: Writing files…..... (lots of writing files, then )
installer: Moving items into place….....(lots of these)
installer: Running package scripts…..... (lots of these, too, and finally:)
installer: Running package scripts….....
##
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
即,没有真正的附加信息。
我没有主意,但至少我已经从我的机器中删除了一些损坏的应用程序:-)
感谢迄今为止的所有评论。
JRV
I asked this on Haskell-cafe, and the only answer I got was -- try stackoverflow, it is more closely watched.
When I try to install the latest Haskell Platform, the installation always fails.
I've tried this several times over several days. Here is todays situation:
Package downloaded from Haskell Wiki: http://lambda.galois.com/hp-tmp/2011.2.0.1/Haskell%20Platform%202011.2.0.1-i386.pkg, http://hackage.haskell.org/platform/mac.html
My system: OS X 10.6.8 (was 10.6.7 the first time I had this problem), 2.4 GHz Intel Core 2 Duo. According to df -H I have 221G of free disk.
I have Xcode 3.2.5.
After downloading, I go through the installation steps, and right at the end it says "Installation failed, contact the software developer" or words to that effect.
Is this a known problem? Any Comments or suggestions?
NEW TRY on 7-1:
I was very puzzled by references to "NeoOffice" in previous log messages before (see my comment below). I completely removed NeoOffice from my machine and ran the Haskell Platform installation again. Now the console system log says:
--
Jul 1 11:06:43 jrv installd[1489]: Starting
Jul 1 11:06:43 jrv installd[1489]: uid=0, euid=0
Jul 1 11:06:43 jrv installd[1489]: PackageKit: * Missing bundle identifier: /Library/Receipts/Print Selection Service.pkg
Jul 1 11:07:41 jrv Installer[1472]: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
If so, I'm surprised no one else has seen this problem.
New Edit July 2:
The problems with Library/Receipts/Print Selection Service and others were red herrings, due to the installer finding broken installations, but eliminating these had no effect on the final outcome. Maybe this is something new in 10.6.8?
After eliminating those, I unpacked both the current Haskell Platform and the previous one, and have tried comparing them, but to no real avail. Running diff on the Distribution file of both yields that previous one has a "choice4" while current has a "choice14", but with my meager knowledge of os x packages I don't see that that makes a difference.
I ran installer in verbose mode from the command line, and now get:
sudo installer -verbose -pkg Haskell\ Platform\ 2011-2.2.0.1-i386.pkg -target /
installer: Package name is Haskell Platform
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing Haskell Platform….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
installer: Writing files…..... (lots of writing files, then )
installer: Moving items into place….....(lots of these)
installer: Running package scripts…..... (lots of these, too, and finally:)
installer: Running package scripts….....
##
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
I.e., no real additional information.
I'm out of ideas, but at least I've eliminated a couple of broken apps from my machine :-)
Thanks for all the comments so far.
JRV
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想这已经是我能得到的最接近的答案了。我必须推断我安装的 HaskellPlatform 中的某些内容发生了混乱,导致安装失败。
当第一次安装失败时(无论出于何种原因),它安装了平台的一些元素,但并未使其完全可用。
最后,我从我的计算机中删除了 HakellPlatform、cabal 和 GHC 的所有痕迹(据我所知)。之后,我重新下载了HP,并重新安装成功。
到目前为止,新安装_did_not_fail_,并且工作正常。
感谢所有发表评论的人。我学到了很多。
I think this is as close as I can come to an answer. I have to infer that something in my installation of HaskellPlatform had gotten messed up, which caused the installation to fail.
When the installation failed the first time (for whatever reason) it installed some of the elements of the platform, but did not make it completely usable.
Finally, I removed all traces (as far as I could tell) of HakellPlatform, cabal and GHC from my computer. After this, I re-downloaded the HP, and reinstalled successfully.
So far the new installation _did_not_fail_, and is working OK.
Thanks to all who commented. I learned a lot.