首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法找到安装的包

无法找到安装的包
EN

Stack Overflow用户
提问于 2012-12-28 19:26:54
回答 2查看 1.6K关注 0票数 2

我不知所措。我使用OSX10.8.2。

我唯一能找到的参考是:

  • 4.1我刚刚安装了软件包,但现在找不到软件包了

  • 当您全局安装一个软件包时,这会发生,而前面的 软件包是在当地安装的。请注意,阴谋安装安装。 本地默认情况下和"runhaskell安装“命令安装 全球默认情况下。

默认情况下,阴谋集团设置为本地安装。我没有改变这个。Haskell是在全球安装的。

代码语言:javascript
复制
$ cabal install pointfree
Resolving dependencies...
Configuring pointfree-1.0.4.3...
Building pointfree-1.0.4.3...
Preprocessing executable 'pointfree' for pointfree-1.0.4.3...
[1 of 7] Compiling Plugin.Pl.Common ( Plugin/Pl/Common.hs, dist/build/pointfree/pointfree-tmp/Plugin/Pl/Common.o )
[2 of 7] Compiling Plugin.Pl.Parser ( Plugin/Pl/Parser.hs, dist/build/pointfree/pointfree-tmp/Plugin/Pl/Parser.o )
[3 of 7] Compiling Plugin.Pl.PrettyPrinter ( Plugin/Pl/PrettyPrinter.hs, dist/build/pointfree/pointfree-tmp/Plugin/Pl/PrettyPrinter.o )
[4 of 7] Compiling Plugin.Pl.Transform ( Plugin/Pl/Transform.hs, dist/build/pointfree/pointfree-tmp/Plugin/Pl/Transform.o )
[5 of 7] Compiling Plugin.Pl.Rules  ( Plugin/Pl/Rules.hs, dist/build/pointfree/pointfree-tmp/Plugin/Pl/Rules.o )
[6 of 7] Compiling Plugin.Pl.Optimize ( Plugin/Pl/Optimize.hs, dist/build/pointfree/pointfree-tmp/Plugin/Pl/Optimize.o )
[7 of 7] Compiling Main             ( Main.hs, dist/build/pointfree/pointfree-tmp/Main.o )
Linking dist/build/pointfree/pointfree ...
Warning: No documentation was generated as this package does not contain a
library. Perhaps you want to use the --executables flag.
Installing executable(s) in
/Users/beoliver/Library/Haskell/ghc-7.4.2/lib/pointfree-1.0.4.3/bin
Installed pointfree-1.0.4.3
Updating documentation index /Users/beoliver/Library/Haskell/doc/index.html

$ cat ~/.bash_profile
export PATH="$HOME/Library/Haskell/bin:$PATH"


$ ls -l ~/Library/Haskell/bin/
total 24
lrwxr-xr-x  1 beoliver  staff  49 Dec 28 16:06 cabal -> ../ghc-7.4.2/lib/cabal-install-1.16.0.2/bin/cabal
lrwxr-xr-x  1 beoliver  staff  48 Dec 28 19:52 pointfree -> ../ghc-7.4.2/lib/pointfree-1.0.4.3/bin/pointfree
-rw-r--r--  1 beoliver  staff  66 Dec 28 19:53 x

X很奇怪..。

代码语言:javascript
复制
$ cat ~/Library/Haskell/bin/x
(line 1, column 5):
unexpected "+"
expecting space or simple term

我查了一下ghc-pkg list,但它不在那里。因此,看看它是否与user包。

代码语言:javascript
复制
$ ls ~/Library/Haskell/ghc-7.4.2/lib/
Cabal-1.16.0.3      cabal-install-1.16.0.2  pointfree-1.0.4.3

$ file pointfree-1.0.4.3/bin/pointfree 
pointfree-1.0.4.3/bin/pointfree: Mach-O 64-bit executable x86_64

$ ghc-pkg list --user
/Users/beoliver/.ghc/x86_64-darwin-7.4.2/package.conf.d
   Cabal-1.16.0.3
$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0.3 of the Cabal library 

我是不是漏了一面旗子?我还需要建造吗?

代码语言:javascript
复制
$ ghc-pkg check
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.2/lib/haskell-platform-2012.4.0.0/doc/html/haskell-platform.haddock doesn't exist or isn't a file
Warning: haddock-html: /Library/Haskell/ghc-7.4.2/lib/haskell-platform-2012.4.0.0/doc/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.2/lib/GLUT-2.1.2.1/doc/html/GLUT.haddock doesn't exist or isn't a file
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-12-28 20:56:44

我查了一下ghc-pkg list,但它不在那里。

ghc-pkg只知道并关心已安装的库。pointfree是一个没有随附库的可执行文件,所以ghc-pkg不知道它。

因为$HOME/Library/Haskell/bin在您的PATH中,并且可执行文件被链接到那里,所以您可以通过命令行运行它。

代码语言:javascript
复制
$ pointfree "\f x y -> f y x"
flip

(或者诸如此类的事情,我已经很久没有玩无点球了)。

X很奇怪..。

这看起来像是来自parsec的解析错误消息。我不知道是什么把它写到那个文件上的。

代码语言:javascript
复制
$ ghc-pkg check
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.2/lib/haskell-platform-2012.4.0.0/doc/html/haskell-platform.haddock doesn't exist or isn't a file
Warning: haddock-html: /Library/Haskell/ghc-7.4.2/lib/haskell-platform-2012.4.0.0/doc/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.2/lib/GLUT-2.1.2.1/doc/html/GLUT.haddock doesn't exist or isn't a file

有些东西似乎践踏了你的哈德基,或者它们从一开始就没有被正确安装。这可能表明存在实际问题,但如果不需要本地文档,则可以忽略它。

票数 2
EN

Stack Overflow用户

发布于 2016-10-19 20:22:50

我在~/.cabal/bin/中找到了我的阴谋包二进制文件。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14074639

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档