在kylin Linux aarch64上执行sh ./configure报错
checking build system type... ./config.guess: unable to guess system type
This script, last modified 2009-11-20, 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 = 2009-11-20
uname -m = aarch64
uname -r = 4.4.131-20210120.kylin.desktop-generic
uname -s = Linux
uname -v = #kylin-KylinOS SMP Wed Jan 20 02:58:45 UTC 2021
按以上提示,下载了最新版的config.guess和config.sub(timestamp=‘2025-07-10’)替换原文件后,sh ./configure执行成功
最后生成的Makefile中LIBS = 一行居然就是LIBS = ,不包括任何动态库。而make竟然顺利通过了,也生成了示例文件,示例文件也能执行成功。
export LD_LIBRARY_PATH=$LIBRARY_PATH:/shujv/par/freexl-1.0.6-main/src/.libs
:/shujv/par/freexl-1.0.6-main/examples$ .libs/test_xl /shujv/par/freexl-1.0.6-main/tests/testdata/simple2003.xls
Excel document: /shujv/par/freexl-1.0.6-main/tests/testdata/simple2003.xls
==========================================================
CFBF Version ........: 3
CFBF Sector size ....: 512
CFBF FAT entries ....: 128
BIFF Version ........: 8 [Excel 98/XP/2003/2007/2010]
BIFF Max record size : 8224
BIFF DateMode .......: 0 [day#1 = '1900-01-01']
BIFF Password/Crypted: NO, clear data
BIFF CodePage .......: UTF-16LE [Unicode]
BIFF Worksheets .....: 2
BIFF SST entries ....: 10
BIFF Formats ........: 0
BIFF eXtendedFormats : 26
Worksheets:
=========================================================
0] simple2003_4
ok, Worksheet successfully selected: currently active: 0
4 Rows X 6 Columns
1] sheet2
ok, Worksheet successfully selected: currently active: 1
4 Rows X 6 Columns
相应configure日志如下:
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for library containing iconv... none required
checking for library containing locale_charset... no
看来有些系统是不需要iconv库的。

被折叠的 条评论
为什么被折叠?



