Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: tamehuang on May 10, 2013, 07:02:05 PM



Title: help! cpuminer for linux...i got some errors..
Post by: tamehuang on May 10, 2013, 07:02:05 PM
I tried my hand at compiling the cpuminer on centOS 6.2

libcurl installed:

Code:
[root@v15177 cpuminer-master]# curl -V
curl 7.21.3 (i686-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IDN Largefile NTLM SSL libz

using ./autogen.sh on the cpuminer returns no errors. and ./configure is fine too.
'make' throws some errors:

Code:
make[2]: Entering directory `/home/myker/cpuminer/cpuminer-master'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson @LIBCURL_CPPFLAGS@ -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -O3 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
gcc: @LIBCURL_CPPFLAGS@: No such file or directory
make[2]: *** [minerd-cpu-miner.o] Error 1
make[2]: Leaving directory `/home/myker/cpuminer/cpuminer-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myker/cpuminer/cpuminer-master'
make: *** [all] Error 2

do you know what's the problem? why the system can't find @LIBCURL_CPPFLAGS@?


Title: Re: help! cpuminer for linux...i got some errors..
Post by: oroqen on May 10, 2013, 07:29:48 PM
do you have libcurl-dev installed?


Title: Re: help! cpuminer for linux...i got some errors..
Post by: tamehuang on May 10, 2013, 07:36:32 PM
no, what is it? can you give me a download URL?


Title: Re: help! cpuminer for linux...i got some errors..
Post by: oroqen on May 10, 2013, 07:48:55 PM
For centOS I think it's
Quote
sudo yum install curl-devel


Title: Re: help! cpuminer for linux...i got some errors..
Post by: tamehuang on May 11, 2013, 02:41:09 AM
For centOS I think it's
Quote
sudo yum install curl-devel

you are right. but system tell me that i have installed it.

Code:
[root@v15177 cpuminer]# sudo yum install curl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.sunnyvision.com
 * extras: mirror.sunnyvision.com
 * updates: mirror.sunnyvision.com
Setting up Install Process
Package curl-devel-7.15.5-16.el5_9.i386 already installed and latest version
Nothing to do


Title: Re: help! cpuminer for linux...i got some errors..
Post by: loucy on May 13, 2013, 12:27:16 PM
Does configure report that it finds libcurl?
Otherwise you may have to specify its path explicitly, like "./configure --with-libcurl=PREFIX".

HTH,
Loucy