Я хочу установить ctypes на свой компьютер Ubuntu 14.04. Я пытаюсь сделать это, используя opam, но его провал. Вот ответ, который я получаю: -Невозможно установить ctypes с помощью opam
opam install ctypes
The following actions will be performed:
∗ install conf-ncurses 1 [required by ocamlfind]
∗ install ocamlfind 1.6.2 [required by ctypes]
∗ install base-bytes base [required by ctypes]
∗ install ctypes 0.5.1
===== ∗ 4 =====
Do you want to continue ? [Y/n] Y
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ctypes] Archive in cache
[ocamlfind] Archive in cache
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of conf-ncurses failed at "pkg-config ncurses".
#=== ERROR while installing conf-ncurses.1 ====================================#
# opam-version 1.2.2
# os linux
# command pkg-config ncurses
# path ~/.opam/4.02.1/build/conf-ncurses.1
# compiler 4.02.1
# exit-code 1
# env-file ~/.opam/4.02.1/build/conf-ncurses.1/conf-ncurses-3089-ccabea.env
# stdout-file ~/.opam/4.02.1/build/conf-ncurses.1/conf-ncurses-3089-ccabea.out
# stderr-file ~/.opam/4.02.1/build/conf-ncurses.1/conf-ncurses-3089-ccabea.err
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
∗ install base-bytes base
∗ install ctypes 0.5.1
∗ install ocamlfind 1.6.2
The following actions failed
∗ install conf-ncurses 1
No changes have been performed
=-=- conf-ncurses.1 troobleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> This package relies on external (system) dependencies that may be missing. `opam depext conf-ncurses.1' may help you find the correct installation for your system.
Я уже установил зависимости, но все-таки я не могу установить Ncurses.
~$ opam depext conf-ncurses.1
# Detecting depexts using flags: x86_64 linux ubuntu
# The following system packages are needed:
# - ncurses-dev
# - pkg-config
# The following new OS packages need to be installed: ncurses-dev
Not running as root, the following command will be run through "sudo":
apt-get install -qq -yy ncurses-dev
[sudo] password for ask:
# OS packages installation successful
Интересно, почему я столкнулся эти вопросы, Ncurses-DEV и PKG-конфигурации уже установлена на моей системе.
Обновленная информация о выполнении предложений по Тобиас: -
# Detecting depexts using flags: x86_64 linux ubuntu
# The following system packages are needed:
# - m4
# - ncurses-dev
# - pkg-config
# The following new OS packages need to be installed: ncurses-dev
Not running as root, the following command will be run through "sudo":
apt-get install -qq -yy ncurses-dev
# OS packages installation successful
The following actions will be performed:
∗ install conf-pkg-config 1.0 [required by ctypes]
∗ install conf-m4 1 [required by ocamlfind]
∗ install conf-ncurses 1 [required by ocamlfind]
∗ install ocamlfind 1.6.2 [required by ctypes]
∗ install base-bytes base [required by ctypes]
∗ install ctypes 0.5.1
===== ∗ 6 =====
Do you want to continue ? [Y/n] Y
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ctypes] Archive in cache
[ocamlfind] Archive in cache
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
∗ installed conf-pkg-config.1.0
∗ installed conf-m4.1
[ERROR] The compilation of conf-ncurses failed at "pkg-config ncurses".
#=== ERROR while installing conf-ncurses.1 ====================================#
# opam-version 1.2.2
# os linux
# command pkg-config ncurses
# path ~/.opam/4.03.0/build/conf-ncurses.1
# compiler 4.03.0
# exit-code 1
# env-file ~/.opam/4.03.0/build/conf-ncurses.1/conf-ncurses-10261-9b8556.env
# stdout-file ~/.opam/4.03.0/build/conf-ncurses.1/conf-ncurses-10261-9b8556.out
# stderr-file ~/.opam/4.03.0/build/conf-ncurses.1/conf-ncurses-10261-9b8556.err
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
∗ install base-bytes base
∗ install ctypes 0.5.1
∗ install ocamlfind 1.6.2
The following actions failed
∗ install conf-ncurses 1
The following changes have been performed
∗ install conf-m4 1
∗ install conf-pkg-config 1.0
=-=- conf-ncurses.1 troobleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> This package relies on external (system) dependencies that may be missing.
`opam depext conf-ncurses.1' may help you find the correct installation for
your system.
The former state can be restored with:
opam switch import "~/.opam/4.03.0/backup/state-20160410155208.export"
Там до сих пор нет текста в файлах ошибок.
Спасибо.
Два файла пустые. – ameyask86
Не могли бы вы попытаться обновить версию Ocaml? Если вы хотите вернуться к последнему, не беспокойтесь, это делается в одной командной строке. Сделайте так, пожалуйста, запустите «opam update && opam switch 4.03.0 && opam depext ctypes && opam install ctypes»? – tobiasBora
Или подождите, прежде чем обновлять, возможно, это может сработать: «sudo apt-get install libtinfo5 libtinfo5-dev libncurses5 libncurses5-dev». Если нет, выполните обновление. У них, похоже, есть проблемы с зависимостями от старых версий. – tobiasBora