I've just compiled w3m for the Windows using TDM-GCC compiler but after running it it gives:
$ w3m
Can't create config directory (~C:/msys32/.w3m)!Can't find termcap entry xterm-256color
On my computer there is C:/msys32 and, I'm using C:/msys32/usr/bin/sh.exe as the shell on ConEmu Terminal Emulator.
$ echo ~/
prints /home/myusername
I've tried configuring w3m with the sysconfdir option like
./configure --sysconfdir=/etc
but whatever option I gave to the --sysconfdir, had no effect on the result.
I've taken a look at the config.log file, searched for .w3m seen this line:
RC_DIR='~/.w3m'
Obviously, w3m is adding C:/msys32 to it so it prints ~C:/msys32/.w3m
How can I fix that? Thank you.