8000 Building in Unbuntu fails · Issue #44 · hishamhm/dit · GitHub
[go: up one dir, main page]

Skip to content

Building in Unbuntu fails #44

Open

Description

@afl5c

Trying to build in Ubuntu (within Docker) and I get this:

checking for ANSI C header files... yes
checking for keypad in -ltinfo... no
checking for refresh in -lncursesw6... no
checking for refresh in -lncursesw... no
checking for addnwstr in -lncurses... no
configure: error: You may want to use --disable-unicode or install libncursesw.
root@5a21ab58be53:~/dit-0.6# apt install libncursesw 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libncursesw
root@5a21ab58be53:~/dit-0.6# apt install ncursesw   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ncursesw
root@5a21ab58be53:~/dit-0.6# apt install ncurses 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ncurses
root@5a21ab58be53:~/dit-0.6# apt install libncurses5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libncurses5 is already the newest version (6.0+20160213-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Is it because only the latest ncurses is supported?

Would it be possible to provide binaries for dit? Or a Docker image? I just want to try it out but seems like a hassle to build/compile.

Activity

  1. hishamhm commented on Jul 8, 2022

    @hishamhm
    Owner

    You need the dev package for ncurses when compiling (I think it's called libncurses-dev on Ubuntu)

  2. afl5c commented on Jul 9, 2022

    @afl5c
    Author

    Oh okay thanks, that is the correct package name. I installed it, and it fixed the "keypad in -ltinfo" check, but not the other ones:

    checking for keypad in -ltinfo... yes
    checking for refresh in -lncursesw6... no
    checking for refresh in -lncursesw... no
    checking for addnwstr in -lncurses... no
    configure: error: You may want to use --disable-unicode or install libncursesw.
    

    I tried "--disable-unicode" and ./configure was able to finish, and I was able to compile (with "make" and "make install"). However, I'm not sure how to run dit, haha. If I do

    • ./dit
    • dit
    • dit --help
    • dit hello.txt

    ...nothing seems to happen. The executable appears to start and block for input, but nothing appears on the screen. I am able to exit with ctlr-c:

    root@dd1e4eaad0fb:/dit-0.6# dit
    ^C
    root@dd1e4eaad0fb:/dit-0.6# ./dit
    ^C
    ...
    

    I probably won't have time to look into this more, so I'll just close the thread. But just letting you know in case you want to investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0