pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.79k stars 1.21k forks source link

syntax error when running ./configure, LIBCURL_CHECK_CONFIG #37

Closed ghost closed 11 years ago

ghost commented 11 years ago

I'm using Linux Mint and I have libcurl3 installed. When I run ./configure CFLAGS="-O3" it gives me the following error:

checking whether we can compile AVX code... yes
checking whether we can compile XOP code... yes
checking whether we can compile AVX2 code... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
./configure: line 5542: syntax error near unexpected token `,'
./configure: line 5542: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,'

I think autogen.sh gave me a warning but I'm not sure if it's related to this.

pooler commented 11 years ago

You need the development package for libcurl, did you install it? If not, try with libcurl4-openssl-dev.

ghost commented 11 years ago

@pooler awesome that seemed to work, I was assuming libcurl3 was what was needed, not any of the libcurl4 packages. Just did a configure and make and it worked :smile:

hanxue commented 10 years ago

Just a note here that after installing libcurl4-openssl-dev or libcurl4-gnutls-dev, you will need to run ./autogen.sh again.

goofus commented 10 years ago

thanks @hanxue that was what i needed :D

gaffelosked commented 8 years ago

Can't install libcurl via yum install on centos fml

given13 commented 6 years ago

okay so I got this far I am compiling under mingw on windows. I ran autogen.sh then LIBCURL="-lcurldll" ./configure CFLAGS="-O3". and I get this error. I installed libcurl 7.57.0 per winbuild instructions. I copied the bin,include, and lib directories from the C:\curl-7.57.0\builds\libcurl-vc-x86-release-dll-ipv6-sspi-winssl dir in curl to mingw bin include and lib folder. This thread says to install libcurl4-openssl-dev but I do not see that as an option for windows. how do I get this working? help is greatly appreciated!! I was missing curl_config copied that ran autogen.sh then configure and got past that error

okay so I got past that error and now I get this one: " checking for the version of libcurl... 7.57.0 checking for libcurl >= version 7.15.2... yes checking whether libcurl is usable... no configure: error: Missing required libcurl >= 7.15.2 " I think I need to install windows sdk as I cannot find mstcpip.h to copy and its not there

got it working finally needed to install mingw options then recompile libcurl then it worked

liorko87 commented 4 years ago

You should add this to the INSTALL.md/README.md file for Ubuntu.

artemYashin commented 2 years ago
image
brandonros commented 8 months ago

image

brew install curl autoconf automake pkg-config
export LDFLAGS="-L/opt/homebrew/opt/curl/lib"
export CPPFLAGS="-I/opt/homebrew/opt/curl/include"
export CFLAGS="-I/opt/homebrew/opt/curl/include -lcurl"
export PKG_CONFIG_PATH="/opt/homebrew/opt/curl/lib/pkgconfig"

2024 MacOS Apple Silicon workaround seems to work

bitnet-io commented 7 months ago
export LDFLAGS="-L/opt/homebrew/opt/curl/lib"
export CPPFLAGS="-I/opt/homebrew/opt/curl/include"
export CFLAGS="-I/opt/homebrew/opt/curl/include -lcurl"
export PKG_CONFIG_PATH="/opt/homebrew/opt/curl/lib/pkgconfig"

what are the export flags to build the minerd.a for iOS target instead of macOS target ? how can i actually build minerd.a static lib for iOS ?

i used this script to try and build iOS libs

https://github.com/bitnet-io/Build-OpenSSL-cURL-for-iOS