Как переустановить libiserv путем установки cabal в дереве исходных текстов gh c 8.8.3 - PullRequest
0 голосов
/ 08 марта 2020

Я пытаюсь построить iserv-proxy в ghc-8.8.3 исходном дереве, когда я использую следующую команду:

iserv-proxy git :( dev- ios -8.8.3 ) ✗ cabal install -flibrary -fproxy

Не удалось, и выводится сообщение об ошибке ниже:

Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
 - iserv-proxy-8.8.3 (exe:iserv-proxy) (requires build)
Starting     iserv-proxy-8.8.3 (exe:iserv-proxy)
Building     iserv-proxy-8.8.3 (exe:iserv-proxy)

Failed to build exe:iserv-proxy from iserv-proxy-8.8.3.
Build log (
/Users/xxxx/.cabal/logs/ghc-8.8.3/srv-prxy-8.8.3-4a7fbe65.log ):
Configuring executable 'iserv-proxy' for iserv-proxy-8.8.3..
Preprocessing executable 'iserv-proxy' for iserv-proxy-8.8.3..
Building executable 'iserv-proxy' for iserv-proxy-8.8.3..
[1 of 1] Compiling Main             ( src/Main.hs, dist/build/iserv-proxy/iserv-proxy-tmp/Main.o )

src/Main.hs:53:1: error:
    Could not load module ‘Remote.Message’
    It is a member of the hidden package ‘libiserv-8.8.3’.
    Perhaps you need to add ‘libiserv’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘libiserv-8.8.3’.
    Perhaps you need to add ‘libiserv’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘libiserv-8.8.3’.
    Perhaps you need to add ‘libiserv’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘libiserv-8.8.3’.
    Perhaps you need to add ‘libiserv’ to the build-depends in your .cabal file.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
53 | import Remote.Message
   | ^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build exe:iserv-proxy from iserv-proxy-8.8.3. See the build
log above for details.

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

➜  libiserv git:(dev-ios-8.8.3) ✗ cabal install -fnetwork --lib  
Wrote tarball sdist to
/Users/xxxx/Software/haskell/ghc/libraries/libiserv/dist-newstyle/sdist/libiserv-8.8.3.tar.gz
Resolving dependencies...
Up to date

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

➜  libiserv git:(dev-ios-8.8.3) ✗ cabal install -fnetwork
Wrote tarball sdist to
/Users/xxxx/Software/haskell/ghc/libraries/libiserv/dist-newstyle/sdist/libiserv-8.8.3.tar.gz
Resolving dependencies...
cabal: Cannot build the executables in the package libiserv because it does
not contain any executables. Check the .cabal file for the package and make
sure that it properly declares the components that you expect.

Может кто-нибудь мне помочь?

...