Author

Topic: make problems (Read 954 times)

legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
May 23, 2013, 09:53:56 PM
#7
Line 96 contains the following...
-----------------------------------------------------------------------------------------------------------------------
LIBCURL_CHECK_CONFIG(, 7.10.1, , [AC_MSG_ERROR([Missing required libcurl >= 7.10.1])])
-----------------------------------------------------------------------------------------------------------------------

Any ideas on what I should do next? Thanks.
Well, installing libcurl would probably be a good start (especially as the README says it's required). On Ubuntu run:
Code:
sudo apt-get install libcurl4-gnutls-dev
(or use your favourite package manager to install libcurl4-gnutls-dev)
newbie
Activity: 6
Merit: 0
May 23, 2013, 12:35:01 PM
#6
Thanks for the replies.

I am using gnu make W770, I get the following when I run make -?.
--------------------------------------------------------
This program built for x86_64-pc-linux-gnu
--------------------------------------------------------

Foxpup, I am running from the cpuminer-master directory, I also made sure autoconf and automake (had to upgrade this one) were the right versions.

Now when I run ./autogen.sh I get the following
--------------------------------------------------------------
Useless use of /d modifier in transliteration operator at /usr/bin/automake line 5985.
configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
-------------------------------------------------

Line 96 contains the following...
-----------------------------------------------------------------------------------------------------------------------
LIBCURL_CHECK_CONFIG(, 7.10.1, , [AC_MSG_ERROR([Missing required libcurl >= 7.10.1])])
-----------------------------------------------------------------------------------------------------------------------

Any ideas on what I should do next? Thanks.
newbie
Activity: 6
Merit: 0
May 22, 2013, 11:36:36 PM
#5
Make sure you are using gnu make, other make tool may not work
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
May 22, 2013, 11:20:45 PM
#4
Run make (with no arguments) from within the same directory that the Makefile is in. This is important. You also need to run ./autogen.sh and ./configure (again from within the same directory) first.

Assuming you unzipped it to ~/cpuminer-master, you should run the following commands:
Code:
cd ~/cpuminer-master  #(or whatever directory you unzipped it to)
./autogen.sh
CFLAGS="-O3 -Wall -msse2" ./configure
make

This will create the executable file "minerd" in the same directory. Run ./minerd --help for usage instructions.
newbie
Activity: 6
Merit: 0
May 22, 2013, 04:21:25 PM
#3
Thanks for the quick reply!

I have just tried the following, this was from terminal in the directory with the makefile and all the c files in.
---------------------------------------
$ make -f Makefile
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
$ make -f Makefile.am
Makefile.am:2: *** missing separator. Stop.
$ make --f Makefile.am
Makefile.am:2: *** missing separator. Stop.
$ make --file Makefile.am
Makefile.am:2: *** missing separator. Stop.
$ make --f Makefile
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
$ make --file Makefile
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
$ make --file ./Makefile
make: ./Makefile: No such file or directory
make: *** No rule to make target `./Makefile'. Stop.
$ make --file ./makefile
make: ./makefile: No such file or directory
make: *** No rule to make target `./makefile'. Stop.
$ make --f makefile
make: makefile: No such file or directory
make: *** No rule to make target `makefile'. Stop.
-------------------------------------------------------------------

This is the contents of the makefile in case that helps.
---------------------------------------------------------------------------

if WANT_JANSSON
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
else
JANSSON_INCLUDES=
endif

EXTRA_DIST   = example-cfg.json

SUBDIRS      = compat

INCLUDES   = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES)

bin_PROGRAMS   = minerd

minerd_SOURCES   = elist.h miner.h compat.h cpu-miner.c util.c sha256_generic.c sha256_4way.c sha256_via.c      sha256_cryptopp.c sha256_sse2_amd64.c
minerd_LDFLAGS   = $(PTHREAD_FLAGS)
minerd_LDADD   = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@
minerd_CPPFLAGS = @LIBCURL_CPPFLAGS@

if HAVE_x86_64
if HAS_YASM
SUBDIRS      += x86_64
minerd_LDADD   += x86_64/libx8664.a
AM_CFLAGS   = -DHAS_YASM
endif
endif
legendary
Activity: 4466
Merit: 3391
May 22, 2013, 03:46:32 PM
#2
Did you try entering the command "make" according to the instructions? If you need to specify a makefile, look here:

http://www.gnu.org/software/make/manual/make.html#Makefile-Arguments
newbie
Activity: 6
Merit: 0
May 22, 2013, 03:35:10 PM
#1
Just tried to compile the cpuminer at the Mining forum which I downloaded as a zip file from Github and got the following errors from make (in ubuntu).
---------------------------------------------------
>make Makefile
make: *** No rule to make target `Makefile'. Stop.
>make Makefile.am
make: Nothing to be done for `Makefile.am'.
---------------------------------------------------

The readme contains the following info about the linux build.
---------------------------------------------------
Basic *nix build instructions:
   
./autogen.sh   # only needed if building from git repo
CFLAGS="-O3 -Wall -msse2" ./configure
make
---------------------------------------------------

I haven't used C or make in a long time, so can anyone tell what is wrong here?
Thanks in advance.
Jump to: