CPUMiner 无法编译

CPUMiner 无法编译

我正在尝试编译一个 CPUMiner 程序,但出现错误,我不知道该怎么办。我按照以下方法进行编译:

http://www.return1.at/bitcoin-miner-ubuntu/

错误是:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/tomino/_software/cpuminer':
configure: error: C compiler cannot create executables
See `config.log' for more details

config.log 中出现错误:

gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) 
configure:3320: $? = 0
configure:3309: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3320: $? = 4
configure:3309: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3320: $? = 4
configure:3340: checking whether the C compiler works
configure:3362: gcc -03   conftest.c  >&5
gcc: error: unrecognized command line option '-03'

请帮助别人。谢谢

答案1

好吧,我找到问题了。这真是太愚蠢了……

在教程中他们说要运行:

./configure CFLAGS="-O3"

但国旗不是03(零三)但是 O3(o 三)就这些……

相关内容