吾在申威机器上试着编译cups,结果报错:
checking build system type... ./config.guess: unable to guess system type
This script, last modified 2013-11-29, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2013-11-29
uname -m = sw_64
uname -r = 4.19.90-sunway-desktop-talas
uname -s = Linux
uname -v = #11 SMP Fri Apr 17 15:04:05 CST 2020
/usr/bin/uname -p = unknown
uname -X =
nfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = sw_64
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = sw_64
UNAME_RELEASE = 4.19.90-sunway-desktop-talas
UNAME_SYSTEM = Linux
UNAME_VERSION = #11 SMP Fri Apr 17 15:04:05 CST 2020
configure: error: cannot guess build type; you must specify one
Makefile:11: Makedefs: 没有那个文件或目录
make: *** 没有规则可制作目标“Makedefs”。 停止。
人们不禁要问,这究竟是。。。还是。。。行了行了,还是问怎么办吧。正好申威人员指点,替换两个文件即可。吾试之,果然编译通过。
MISC_DIR=/usr/share/misc
cp ${MISC_DIR}/config.guess .
cp ${MISC_DIR}/config.sub .