Author

Topic: (Help) How to compile ccMiner for Ubuntu 13.10? (Read 5884 times)

full member
Activity: 196
Merit: 100
February 07, 2016, 01:16:16 PM
#12
i'm trying to compile ccminer for compute 3.0 and 3.5 but cant get it to work
tried many diffrent ccminer sources i dont get any specific error msg.

anyone have a working binarey for linux ?
full member
Activity: 241
Merit: 100
It says error at line 6186 so yes.

Thank you! Works now with nvidia-331 Smiley not with nvidia-340 and manual fan settings in NVIDIA Settings GUI neither. But it's a start Smiley
sr. member
Activity: 364
Merit: 250
Thank you Smiley

Code:
checking for EVP_DigestFinal_ex in -lcrypto... yes
./configure: line 6186: syntax error near unexpected token `,'
./configure: line 6186: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,'

Line 6186, right?

It says error at line 6186 so yes.
full member
Activity: 241
Merit: 100
Thank you Smiley

Code:
checking for EVP_DigestFinal_ex in -lcrypto... yes
./configure: line 6186: syntax error near unexpected token `,'
./configure: line 6186: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,'

Line 6186, right?
sr. member
Activity: 364
Merit: 250
This is an syntax error. Go to 6181 line and delete it.

Where?

And make sure you have libcurl installed.

Ok, I will try that. Thank you Smiley

./configure line 6181
Type "curl" (to command line) if it not print error you have libcurl.
full member
Activity: 241
Merit: 100
This is an syntax error. Go to 6181 line and delete it.

Where?

And make sure you have libcurl installed.

Ok, I will try that. Thank you Smiley
sr. member
Activity: 364
Merit: 250
This is an syntax error. Go to 6181 line and delete it. And make sure you have libcurl installed.
full member
Activity: 241
Merit: 100
Ok, this is now my current howto on Xubuntu 14.10. My old 13.10 didn't boot anymore, didn't install with my new Nvidia GPU, so I had to choose 14.10.

I.

Install Xubuntu 14.10

II.

sudo apt-get update
sudo apt-get upgrade
reboot

III.

sudo apt-get install nvidia-331
reboot

IV.

Retrieve the CUDA repository DEB package for Ubuntu 12.04:
https://developer.nvidia.com/cuda-downloads#linux

V.

cd Downloads
sudo dpkg -i cuda-repo-ubuntu1204_6.0-37_amd64.deb
sudo apt-get update
sudo apt-get install cuda
reboot

VI.

Execute the following commands:
export CUDA_HOME=/usr/local/cuda-6.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
PATH=${CUDA_HOME}/bin:${PATH}
export PATH

cuda-install-samples-6.0.sh  ~
cd ~/NVIDIA_CUDA-6.0_Samples
make

VII.

Download and extract ccMiner:
https://github.com/djm34/ccminer

VIII.

sudo apt-get install automake
sudo apt-get install libssl-dev

cd ccminer-djm34-0721
chmod +x configure autogen.sh

IX.

https://github.com/cbuchner1/ccminer/issues/8
This is easily fixed by adding to Makefile.am:
AUTOMAKE_OPTIONS = subdir-objects

X.

./autogen.sh && ./configure && make

But I get the following error:

Code:
user@ubuntu:~/ccminer-djm34-0721$ ./autogen.sh && ./configure && make
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
/home/user/ccminer-djm34-0721/missing: Unknown `--is-lightweight' option
Try `/home/user/ccminer-djm34-0721/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... 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... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking dependency style of gcc -std=gnu99... gcc3
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc -std=gnu99 option to support OpenMP... -fopenmp
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for sys/sysctl.h... yes
checking whether be32dec is declared... no
checking whether le32dec is declared... no
checking whether be32enc is declared... no
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... yes
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
checking for SSL_library_init in -lssl... yes
checking for EVP_DigestFinal_ex in -lcrypto... yes
./configure: line 6186: syntax error near unexpected token `,'
./configure: line 6186: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,'

Thanks for any further hints!
full member
Activity: 241
Merit: 100

Doesn't work Sad

Code:
ubuntu@server:~$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 cuda : Depends: cuda-6-0 (= 6.0-37) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Edit: Some dependencies like cuda-6.0 and cuda-drivers were missing. Let's see how far it goes.

sudo apt-get install nvidia-libopencl1-331
sudo apt-get install cuda-drivers
sudo apt-get install cuda-6-0

Edit: Mixing the Nvidia 340 driver and Cuda 331 dependencies wasn't a good idea Wink
full member
Activity: 241
Merit: 100

I've already tried to install the 13.04 DEB package for Ubuntu 13.10 without success but will give your tutorial a shot Smiley

What I've recognized with ccMiner or Cuda tutorials very often is the fact that they mention always the /usr/local/cuda directory but I don't have a Cuda folder in the /user/local/ directory and I'm pretty sure the damn easy installation through PPA (Cuda 5.5) or even with the Ubuntu standard archive packages (Cuda 5.0) worked. I have a Cuda toolkit folder in /usr/lib/ but again I don't have a lib64 folder /usr/lib/nvidia-cuda-toolkit/ but probably I should have one because I'm running Ubuntu 13.10 64bit.

full member
Activity: 241
Merit: 100
I've tried now more than one week to compile ccMiner from https://github.com/djm34/ccminer for Ubuntu 13.10, but I'm stucking since days at the point where I start ccMiner and get the following output.

Code:
./ccminer-djm-0712-trade-x13-5a.sh     *** ccMiner for nVidia GPUs by Christian Buchner and Christian H. ***
             This is version 1.2 (beta)
  based on pooler-cpuminer 2.3.2 (c) 2010 Jeff Garzik, 2012 pooler
  based on pooler-cpuminer extension for HVC from
       https://github.com/heavycoin/cpuminer-heavycoin
and
       http://hvc.1gh.com/
Cuda additions Copyright 2014 Christian Buchner, Christian H.
  LTC donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm
  BTC donation address: 16hJF5mceSojnTD3ZTUDqdRhDyPJzoRakM
  YAC donation address: Y87sptDEcpLkLeAuex6qZioDbvy1qXZEj4
[2014-07-16 14:29:14] Unable to query CUDA driver version! Is an nVidia driver installed?

I guess ccMiner doesn't find the installed Cuda toolkit, but I have no idea how to point to the Cuda toolkit directory, except the way I do it in my Howto.

This is my current Howto:

sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo apt-get update
sudo apt-get install nvidia-340

reboot

sudo apt-get install build-essential
sudo apt-get install automake

sudo apt-add-repository ppa:aaron-haviland/cuda-5.5
sudo apt-get update
sudo apt-get install nvidia-cuda-toolkit

cd ccminer-master
chmod +x configure autogen.sh
sudo apt-get install libssl-dev

export PATH=$PATH:/usr/lib/nvidia-cuda-toolkit/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-cuda-toolkit/lib

reboot

./autogen.sh && ./configure && make

Thank you for every hint Smiley
Jump to: