Большая проблема, устанавливающая интригу на 16,04

Недавно переключенный назад на Ubuntu 16.04 и имел беспрецедентную сумму проблемы, заставляя интригу работать. Интрига 1.22 в настоящее время устанавливается и "работа"...

Я пытался установить пакет, который я записал как тест, но он зависит от основы> =4.10, которые интригуют 1.22, по-видимому, не может получить доступ:

cabal update
cabal install base

Resolving dependencies...
All the requested packages are already installed:
base-4.9.1.0
Use --reinstall if you want to reinstall anyway.

cabal install base-4.10

Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: base (user goal)
rejecting: base-4.10.0.0, 4.9.1.0/installed-4.9..., 4.9.1.0, 4.9.0.0, 4.8.2.0,
4.8.1.0, 4.8.0.0, 4.7.0.2, 4.7.0.1, 4.7.0.0, 4.6.0.1, 4.6.0.0, 4.5.1.0,
4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1, 4.2.0.0,
4.1.0.0, 4.0.0.0, 3.0.3.2, 3.0.3.1 (global constraint requires ==4.10)
Dependency tree exhaustively searched.

Таким образом, я пытался установить новейшую версию интриги:

Resolving dependencies...
Configuring zlib-0.6.2...
Failed to install zlib-0.6.2
Build log ( /home/ebanflo/.cabal/logs/zlib-0.6.2.log ):
Configuring zlib-0.6.2...
setup-Simple-Cabal-2.2.0.1-x86_64-linux-ghc-8.0.2: Missing dependency on a
foreign library:
* Missing (or bad) header file: zlib.h
* Missing (or bad) C library: z
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

cabal: Error: some packages failed to install:
cabal-install-2.2.0.0 depends on zlib-0.6.2 which failed to install.
hackage-security-0.5.3.0 depends on zlib-0.6.2 which failed to install.
zlib-0.6.2 failed during the configure step. The exception was:
ExitFailure 1

Я пытался установить zlib и получил то же сообщение об ошибке.

Я испытал желание загрузить новую версию своего пакета с более низкими зависимостями, чтобы видеть, будет ли он работать, но иметь не уже, потому что это - глупое решение, так как я все еще не смогу загрузить пакеты этими недоступными зависимостями.

ОБНОВЛЕНИЕ:

Я пытался установить zlib1g-dev от apt репозиторий:

sudo apt install zlib1g-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 zlib1g-dev : Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4) but 1:1.2.8.dfsg-2ubuntu4.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Таким образом, я пытался установить non-dev версию:

sudo apt install zlib1g

Reading package lists... Done
Building dependency tree       
Reading state information... Done
zlib1g is already the newest version (1:1.2.8.dfsg-2ubuntu4.1).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

Я попробовал несколько вещей установить 1.2.8.dfsg-2ubuntu4 но я предполагаю, что не знаю правильного синтаксиса. Я также пытался purge и autoremove zlib1g и получил следующее сообщение об ошибке для обеих команд:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 crda : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
 libical1a : Depends: tzdata but it is not going to be installed
 mount : PreDepends: libblkid1 (>= 2.17.2) but it is not going to be installed
         PreDepends: libmount1 (>= 2.25) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Затем я собираюсь попытаться установить Haskell zlib упомянутый в комментариях прямо от исходного пакета интриги.

Загруженный, извлеченный, работал ghc Setup, и попробованный для выполнения ./Setup configure и получил следующее сообщение об ошибке:

Configuring zlib-0.6.2...
Setup: Missing dependency on a foreign library:
* Missing (or bad) header file: zlib.h
* Missing (or bad) C library: z
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

Хорошо это должно быть прекрасным, у меня действительно есть некоторая версия zlib1g установленный, или таким образом, я думал. После выполнения dpkg -L zlib Я нашел, что нет никаких двоичных файлов для zlib. Я полностью потерян.

2
задан 3 June 2018 в 22:58

1 ответ

Новичок Haskell здесь.

sudo apt install libghc-zlib-dev добился цели для меня на том же признаке, но на другом случае (использующий стек и включая zlib или любой другой пакет, который зависит от zlib в package.yaml, и затем пытающийся звонить stack build).

я надеюсь, что это решает Вашу проблему.

1
ответ дан 2 December 2019 в 04:43

Другие вопросы по тегам:

Похожие вопросы: