1

我正在尝试在我的 Ubuntu 10.04 LTS 计算机上安装 CUnit lib。我已经将它安装在 Ubuntu 11.04 中没有问题,但是当我尝试在 10.04 上安装时,我得到了这个跟踪:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/cpcaserver5/Área de Trabalho/CUnit-2.1-2/missing: Unknown `--run' option
Try `/home/cpcaserver5/Área de Trabalho/CUnit-2.1-2/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
---------- Disabling debug mode compilation.
++++++++++ Enabling automated(XML) mode compilation
++++++++++ Enabling basic mode compilation
++++++++++ Enabling console mode compilation
---------- Disabling curses mode compilation
---------- Disabling examples mode compilation
---------- Disabling test mode compilation
---------- Disabling memtrace functionality at compile time
---------- Disabling use of deprecated v1.1 names
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/cpcaserver5/Área de Trabalho/CUnit-2.1-2':
configure: error: C compiler cannot create executables
See `config.log' for more details

我尝试了很多 libs 和 gcc 版本,所以我认为问题出在 Ubuntu 上,但在哪里或为什么,我不知道!

日志文件的相关部分:

configure:3399: checking whether the C compiler works
configure:3421: gcc  -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I/home/cpcaserver5/Área de Trabalho/CUnit-2.1-2/CUnit/Headers   -L/home/cpcaserver5/Área de Trabalho/CUnit-2.1-2/CUnit/Sources conftest.c  >&5
gcc: de: No such file or directory
gcc: Trabalho/CUnit-2.1-2/CUnit/Headers: No such file or directory
gcc: de: No such file or directory
gcc: Trabalho/CUnit-2.1-2/CUnit/Sources: No such file or directory
configure:3425: $? = 1
configure:3463: result: no

完整的 config.log >> http://pastebin.com/SrWfar1Z

我可以很好地编译 C 文件。

4

2 回答 2

2

某处存在引用问题,并且您安装CUnit到的目录包含空格(和非 ASCII 字符)的事实使事情变得混乱。

While it might be possible to make this work, I strongly suggest you change the installation directory to a path that does not contain any spaces at all, and stick to plain ASCII7 characters (no accents, llama, tilde or otherwise).
You'll run into lots of scripting problems if your paths are "unusual". If you want horizontal spacing, use an underscore (_).

于 2012-05-16T16:03:02.797 回答
0

众所周知,输出./configure无用,除了一行:

See `config.log' for more details

这就是真正的错误消息所在的地方。

于 2012-05-16T14:42:25.027 回答