You are not logged in.

#1 2019-08-09 10:31:43

LogXx
Member
Registered: 2019-07-25
Posts: 19

[SOLVED] Can't install haskell ncurses package properly

When i try to install this package (http://hackage.haskell.org/package/ncurses), i get this error:

ncurses   > /tmp/stack4942/ncurses-0.2.16/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1/build/UI/NCurses.chs.h:10:10: fatal error: ncursesw/ncurses.h: No such file or directory
ncurses   >    10 | #include <ncursesw/ncurses.h>
ncurses   >       |          ^~~~~~~~~~~~~~~~~~~~
ncurses   > compilation terminated.
ncurses   > c2hs: Error during preprocessing custom header file
Completed 8 action(s).

--  While building package ncurses-0.2.16 using:
      /home/logxx/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

ncurses pacman package is installed. What should i do?

full log here: https://pastebin.com/nRKFsbYm

Last edited by LogXx (2019-08-11 09:28:30)

Offline

#2 2019-08-09 18:51:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Can't install haskell ncurses package properly

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-08-09 18:56:38

LogXx
Member
Registered: 2019-07-25
Posts: 19

Re: [SOLVED] Can't install haskell ncurses package properly

That is not an AUR issue, haskell stack was installed via default repository

Last edited by LogXx (2019-08-09 18:57:23)

Offline

#4 2019-08-09 19:15:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Can't install haskell ncurses package properly

build log wrote:

stack install ncurses


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-08-09 19:16:45

LogXx
Member
Registered: 2019-07-25
Posts: 19

Re: [SOLVED] Can't install haskell ncurses package properly

jasonwryan wrote:
build log wrote:

stack install ncurses

...and?

Offline

#6 2019-08-09 20:00:31

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [SOLVED] Can't install haskell ncurses package properly

force-narrow-library   

Force including and linking against ncurses instead of ncursesw. This is only useful on systems that have the ncursesw package installed incorrectly. On most systems this will cause compile- or run-time errors.

LogXx wrote:

...and?

If you want to keep arguing with the staff expect your thread to be TGN'd or banned.

Offline

#7 2019-08-09 20:03:36

LogXx
Member
Registered: 2019-07-25
Posts: 19

Re: [SOLVED] Can't install haskell ncurses package properly

What could i say instead? It isn't related to AUR at all. There must be some reason to move this thread

Last edited by LogXx (2019-08-09 20:05:30)

Offline

#8 2019-08-10 08:56:18

LogXx
Member
Registered: 2019-07-25
Posts: 19

Re: [SOLVED] Can't install haskell ncurses package properly

loqs wrote:

force-narrow-library   

Force including and linking against ncurses instead of ncursesw. This is only useful on systems that have the ncursesw package installed incorrectly. On most systems this will cause compile- or run-time errors.

LogXx wrote:

...and?

If you want to keep arguing with the staff expect your thread to be TGN'd or banned.

Anyway, thanks for pointing that out, i didn't noticed that flag, going to test it when i'll be at my laptop

Offline

#9 2019-08-10 11:36:01

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Can't install haskell ncurses package properly

Sometimes a thread that is started in another board*  but is not about repository packages gets moved to aur issues.


* often "Pacman & Package Upgrade Issues" or "Applications & Desktop Environments"


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB