I'm trying to compile thttpd 2.27 on Mac OS X 10.11 from source, but when I issue:
./configure
It shows:
creating cache ./config.cache
checking host system type... configure: error: can not guess host type; you must specify one
I try to search online, someone said I should copy some files from /usr/share/libtool/config*
but the path does not exist in Mac OS X 10.11.
How can I resolve this problem?
p.s. I have Xcode (with Command Line Tools), Homebrew, libtool, automake and other build tools installed, but I still can't configure & compile this.
Best Answer
You have at least two options:
Install MacPorts. Install
thttpd
with this command:I am not using MacPorts and this is untested.
Download config.sub.diff and config.guess.diff and put them into
thttpd
source directory. Execute these commands to patch the config files:It will compile the source. You may now consider to install compiled binary.
[Original source of diff files is here.]