在 OSX 上安装 ocaml-top - GTK 问题
Installing ocaml-top on OSX - GTK issue
我正在尝试在 macOS High Sierra 10.13 上安装 ocaml-top。我已经安装了自制软件(使用 https://brew.sh/ 处给出的命令)并完成了:
brew install opam
opam init
并对 "Do you want Opam to modify ~/.bash_profile and ~/.ocamlinit" 的回答是 Y。那么:
eval `opam config env`
opam install ocaml-top
我收到以下错误
The following actions failed
∗ install conf-gtksourceview 2
No changes have been performed
=-=- conf-gtksourceview.2 troobleshooting -=-=-=-=-
=> This package relies on external (system) dependencies that may be
missing.
`opam depext conf-gtksourceview.2' may help you find the correct
installation for your system.
[编辑:在第二台 mac 计算机上尝试,错误是“[错误] conf-gtksourceview 的编译在 "pkg-config gtksourceview-2.0" 失败。”]
上面的 depext 命令给出:
# The following system packages are needed:
# - gtksourceview
# - libxml2
# All required OS packages found.
我找到了如下建议(例如 https://github.com/OCamlPro/ocaml-top/issues/46):"If you installed gtk+ through brew, you may need to do 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' (homebrew)"。但是,在终端中输入那个或 "export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig" 并重试没有帮助。
我对此一无所知,但看起来 libgtksourceview2.0-dev 可能涉及,所以我尝试了
opam install libgtksourceview2.0-dev
但是
[ERROR] No package named libgtksourceview2 found.
同样 "brew install libgtksourceview2.0-dev" 或 "brew install libgtksourceview".
https://github.com/ocaml/opam-repository/issues/8449 似乎暗示这个错误可能是因为其他包需要升级,并提到 "the expanded pkg-config --short-errors --print-errors "gtksourceview-2.0 >= 2.2.0" [...]信息”。我不知道这意味着什么,也不知道如何检测哪些包需要升级。
你可以试试
brew install pkg-config gtksourceview libxml2
否则,运行 brew search <part-of-name-of-dep>
可能有助于找到所需的依赖项。
我正在尝试在 macOS High Sierra 10.13 上安装 ocaml-top。我已经安装了自制软件(使用 https://brew.sh/ 处给出的命令)并完成了:
brew install opam
opam init
并对 "Do you want Opam to modify ~/.bash_profile and ~/.ocamlinit" 的回答是 Y。那么:
eval `opam config env`
opam install ocaml-top
我收到以下错误
The following actions failed
∗ install conf-gtksourceview 2
No changes have been performed
=-=- conf-gtksourceview.2 troobleshooting -=-=-=-=-
=> This package relies on external (system) dependencies that may be
missing.
`opam depext conf-gtksourceview.2' may help you find the correct
installation for your system.
[编辑:在第二台 mac 计算机上尝试,错误是“[错误] conf-gtksourceview 的编译在 "pkg-config gtksourceview-2.0" 失败。”]
上面的 depext 命令给出:
# The following system packages are needed:
# - gtksourceview
# - libxml2
# All required OS packages found.
我找到了如下建议(例如 https://github.com/OCamlPro/ocaml-top/issues/46):"If you installed gtk+ through brew, you may need to do 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' (homebrew)"。但是,在终端中输入那个或 "export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig" 并重试没有帮助。
我对此一无所知,但看起来 libgtksourceview2.0-dev 可能涉及,所以我尝试了
opam install libgtksourceview2.0-dev
但是
[ERROR] No package named libgtksourceview2 found.
同样 "brew install libgtksourceview2.0-dev" 或 "brew install libgtksourceview".
https://github.com/ocaml/opam-repository/issues/8449 似乎暗示这个错误可能是因为其他包需要升级,并提到 "the expanded pkg-config --short-errors --print-errors "gtksourceview-2.0 >= 2.2.0" [...]信息”。我不知道这意味着什么,也不知道如何检测哪些包需要升级。
你可以试试
brew install pkg-config gtksourceview libxml2
否则,运行 brew search <part-of-name-of-dep>
可能有助于找到所需的依赖项。