Bitcoin Forum

Other => Beginners & Help => Topic started by: kilgore on August 07, 2011, 10:41:21 AM



Title: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 10:41:21 AM
Hi All!
I would post this in the proper place, but as a noob I'm restriced...

I'M trying to install a desktop miner for pooled mining.  cgminer seems like the simplest, but I can seem to get it to install.  I've searched around, but instructions are always so complicated and I never manage. 

I'm open to other miners as well, but those seem even more complicated and all my attempts to install them have failed.

Any tips for a noob?


Title: Re: cgminer for ubuntu 11.04?
Post by: PLaci1982 on August 07, 2011, 11:17:16 AM
https://help.ubuntu.com/community/CompilingEasyHowTo (https://help.ubuntu.com/community/CompilingEasyHowTo)


Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 11:36:59 AM
thanks, i wish it were that easy! 

trying to run the ./autogen.sh gives the following error:

Code:
./autogen.sh: 8: aclocal: not found

The directions in the README for cgminer are difficult to understand as a noob, though a lot simpler than other miners. I would pay BTC for someone who came up with an easy to use/install miner!



Title: Re: cgminer for ubuntu 11.04?
Post by: PLaci1982 on August 07, 2011, 11:40:22 AM
autogen ain't needed


Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 11:46:38 AM
ok...what is needed?

the instructions:

Quote
To actually build:

   ./autogen.sh   # only needed if building from git repo
   CFLAGS="-O3 -Wall -march=native" ./configure
   or if you haven't installed the ati files in system locations:
   CFLAGS="-O3 -Wall -march=native -I<path to AMD APP include>" LDFLAGS="-L<path to AMD APP lib/x86_64> ./configure
   make

so autogen is not needed, ok.  The second line of command returns:

Code:
bash: ./configure: Datei oder Verzeichnis nicht gefunden

I've tried the third option as well, which does nothing.  just returns:

Code:
>

What next?

Thanks in advance!



Title: Re: cgminer for ubuntu 11.04?
Post by: Wombat on August 07, 2011, 11:50:08 AM
If you're trying to build from git following the README, you'll probably need some dependencies:

sudo apt-get install autoconf automake libcurl4-openssl-dev



Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 11:54:41 AM
Quote
If you're trying to build from git following the README, you'll probably need some dependencies:

sudo apt-get install autoconf automake libcurl4-openssl-dev

Thanks! I installed those files.  I am trying to install from the README, if there is an easier way I'd be glad to know!

so I've got the files, whats the next step?


Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 12:06:37 PM
Wombat!

You're suggestion helped... for now!  I was able to install according to the README instructions.

Code:
OpenCL: FOUND. GPU mining support enabled.

But I still can't seem to use the program.  it just says:

Code:
cgminer: Befehl nicht gefunden
(command not found)


Title: Re: cgminer for ubuntu 11.04?
Post by: Wombat on August 07, 2011, 12:07:04 PM
Well, you could download the pre-built binary version from the cgminer thread instead:

http://bitcointalk.org/index.php?topic=28402.0

If you still want to try building from git, you'll need the curses dependency as well:

sudo apt-get install libncurses5-dev

Then just follow the build instructions in the README. It's good to know how to do this, as cgminer is under active development, and you can get early access to new features from git. But the pre-built binary is obviously easier.

Good luck  ;)


Title: Re: cgminer for ubuntu 11.04?
Post by: Wombat on August 07, 2011, 12:10:29 PM
Code:
cgminer: Befehl nicht gefunden
(command not found)

Maybe the current directory isn't in your path, try ./cgminer ?


Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 12:18:50 PM
 :-\

turns out I forgot the last command:  "make" 

noob mistake :P


But "make" also doesn't work right, spits this out at the end:

Code:
main.c:14:20: fatal error: curses.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[2]: *** [cgminer-main.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home/kilgore/ckolivas-cgminer-1725a1c'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/kilgore/ckolivas-cgminer-1725a1c'
make: *** [all] Fehler 2
kilgore@Trout:~/ckolivas-cgminer-1725a1c$


If your german is rusty:

"Datei oder Verzeichnis nicht gefunden" = File or Folder not found
"Fehler" = Error


Title: Re: cgminer for ubuntu 11.04?
Post by: Wombat on August 07, 2011, 12:22:37 PM
Did you install the curses dependency mentioned in the README?

sudo apt-get install libncurses5-dev



Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 12:34:09 PM
oh, missed that part of the read me. Thanks!  Installed that plus one other dependency that it said I could download, though it wasn't necessary.
It got me a bit further with "make", though still no successful install.

Heres what it said in the end, though the list with "undefined reference" is much longer.....

Code:
main.c:(.text+0xae3f): undefined reference to `delwin'
main.c:(.text+0xae44): undefined reference to `endwin'
main.c:(.text+0xae49): undefined reference to `stdscr'
main.c:(.text+0xae51): undefined reference to `wrefresh'
main.c:(.text+0xb518): undefined reference to `initscr'
main.c:(.text+0xb556): undefined reference to `newwin'
main.c:(.text+0xb56b): undefined reference to `leaveok'
main.c:(.text+0xb58e): undefined reference to `newwin'
main.c:(.text+0xb5a3): undefined reference to `idlok'
main.c:(.text+0xb5b8): undefined reference to `scrollok'
main.c:(.text+0xb5cd): undefined reference to `leaveok'
main.c:(.text+0xb5d2): undefined reference to `cbreak'
main.c:(.text+0xb5d7): undefined reference to `noecho'
collect2: ld returned 1 exit status
make[2]: *** [cgminer] Fehler 1
make[2]: Verlasse Verzeichnis '/home/kilgore/ckolivas-cgminer-1725a1c'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/kilgore/ckolivas-cgminer-1725a1c'
make: *** [all] Fehler 2



Title: Re: cgminer for ubuntu 11.04?
Post by: PLaci1982 on August 07, 2011, 12:40:12 PM
Try this:
Code:
sudo apt-get install libcurl4-gnutls-dev


Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 12:43:59 PM
got it!

error is still the same as in previous post...


Title: Re: cgminer for ubuntu 11.04?
Post by: PLaci1982 on August 07, 2011, 01:21:47 PM
Weird...

Did you installed the ATI SDK?

I have no other idea, then to delete the extracted source, and start over...


Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 01:32:02 PM
hmm..

I followed these instructions in the readme successfully, that should give me the ati sdk, right?

Code:
Basic *nix build instructions:
To build with GPU mining support:
Install AMD APP sdk, latest version - there is no official place to
install it so just keep track of where it is if you're not installing
the include files and library files into the system directory.
(Do NOT install the ati amd sdk if you are on nvidia)

The easiest way to install the ATI AMD SPP sdk on linux is to actually put it
into a system location. Then building will be simpler. Download the correct
version for either 32 bit or 64 bit from here:
http://developer.amd.com/sdks/AMDAPPSDK/downloads/Pages/default.aspx

This will give you a file with a name like AMD-APP-SDK-v2.4-lnx64.tgz

Then:

sudo su
cd /opt
tar xf /path/to/AMD-APP-SDK-v2.4-lnx64.tgz
cd /
tar xf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz
ln -s /opt/AMD-APP-SDK-v2.4-lnx64/include/CL /usr/include
ln -s /opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/* /usr/lib/
ldconfig


Title: Re: cgminer for ubuntu 11.04?
Post by: kilgore on August 07, 2011, 02:28:54 PM
ok, the last tip worked!

Delete > reboot > start from scratch :)

OMG I'm mining for bitcoin!!!