首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用opam安装frama-c-磷

无法使用opam安装frama-c-磷
EN

Stack Overflow用户
提问于 2017-06-04 13:00:28
回答 1查看 116关注 0票数 0

我已经成功地安装了frama-c-硅使用opam的说明,但当我想升级到磷,opam不工作。

我用了命令:

opam pin add frama-c下载/frama-c-磷20170501.tar.gz

它说:

代码语言:javascript
复制
[NOTE] Package frama-c is already path-pinned to
       /home/talos/Downloads/frama-c-Phosphorus-20170501.tar.gz.
       This will erase any previous custom definition.
Proceed ? [Y/n] y

[frama-c] /home/talos/Downloads/frama-c-Phosphorus-20170501.tar.gz synchronized

frama-c needs to be installed.
The following actions will be performed:
  ∗  install frama-c-base 20161101*           [required by frama-c]
       Why3 can be used by the WP plug-in for running additional automatic solvers
       Coq can be used with the WP plug-in for proving interactively proof obligations
  ∗  install frama-c      20161101*
       Alt-Ergo Graphical Interface can be used by the WP plug-in
===== ∗  2 =====
Do you want to continue ? [Y/n] y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[frama-c.20161101] /home/talos/Downloads/frama-c-Phosphorus-20170501.tar.gz already up-to-date
[frama-c-base.20161101] /home/talos/Downloads/frama-c-Phosphorus-20170501.tar.gz already up-to-date

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#=== ERROR while installing frama-c-base.20161101 =============================#
These patches didn't apply at /home/talos/.opam/system/build/frama-c-base.20161101:
  - 4.05-support.patch



=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
  ∗  install frama-c 20161101
The following actions failed
  ∗  install frama-c-base 20161101
No changes have been performed
[NOTE] Pinning command successful, but your installed packages may be out of
       sync.
EN

回答 1

Stack Overflow用户

发布于 2017-06-06 06:40:46

我认为您的问题更多地与OPAM本身的使用(特别是opam pin)有关,而不是Frama。

这一行特别指出在OPAM安装中有pinned一个Frama包:

代码语言:javascript
复制
[NOTE] Package frama-c is already path-pinned to
       /home/talos/Downloads/frama-c-Phosphorus-20170501.tar.gz.
       This will erase any previous custom definition.

这是必要的,只有在磷包可在OPAM。您应该恢复到默认配置,方法是删除它,然后通过“标准”(非固定的)方式安装它:

代码语言:javascript
复制
opam pin remove frama-c
# just in case, you may want to unpin the frama-c-base package, if it is pinned
opam pin remove frama-c-base
# then install the package normally; you may need to update OPAM to make
# sure the package is available in your repository
opam update
opam install frama-c

请注意,如果您的仍然是,则会显示如下消息:

代码语言:javascript
复制
The following actions will be performed:
  ∗  install frama-c-base 20161101*           [required by frama-c]

这可能表明OPAM的限制存在问题。

磷释放的版本号是20170501。除此之外,你不会得到磷,而是更老的版本。这是不值得继续的:这个问题必须事先解决。

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

https://stackoverflow.com/questions/44354360

复制
相关文章

相似问题

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