Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building in Unbuntu fails #44

Open
afl5c opened this issue Jul 7, 2022 · 2 comments
Open

Building in Unbuntu fails #44

afl5c opened this issue Jul 7, 2022 · 2 comments

Comments

@afl5c
Copy link

afl5c commented Jul 7, 2022

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.

@hishamhm
Copy link
Owner

hishamhm commented Jul 8, 2022

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

@afl5c
Copy link
Author

afl5c commented Jul 9, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants