1、在包下./configure --……各种路径
报错情况:
enable-ctype ??
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: ??
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... Invalid configuration `??': machine `??' not recognized
configure: error: /bin/sh ./config.sub ?? failed
解决
./configure --等等,我是从网页上复制过来的,手动敲一遍就ok了