Bitcoin Forum
June 23, 2024, 05:55:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: help! cpuminer for linux...i got some errors..  (Read 1157 times)
tamehuang (OP)
Full Member
***
Offline Offline

Activity: 195
Merit: 100



View Profile
May 10, 2013, 07:02:05 PM
 #1

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@?

oroqen
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250



View Profile
May 10, 2013, 07:29:48 PM
 #2

do you have libcurl-dev installed?
tamehuang (OP)
Full Member
***
Offline Offline

Activity: 195
Merit: 100



View Profile
May 10, 2013, 07:36:32 PM
 #3

no, what is it? can you give me a download URL?

oroqen
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250



View Profile
May 10, 2013, 07:48:55 PM
 #4

For centOS I think it's
Quote
sudo yum install curl-devel
tamehuang (OP)
Full Member
***
Offline Offline

Activity: 195
Merit: 100



View Profile
May 11, 2013, 02:41:09 AM
 #5

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

loucy
Member
**
Offline Offline

Activity: 77
Merit: 10


View Profile
May 13, 2013, 12:27:16 PM
 #6

Does configure report that it finds libcurl?
Otherwise you may have to specify its path explicitly, like "./configure --with-libcurl=PREFIX".

HTH,
Loucy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!