Bitcoin Forum
May 08, 2024, 01:57:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cgminer for ubuntu 11.04?  (Read 3021 times)
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 10:41:21 AM
 #1

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?
1715176678
Hero Member
*
Offline Offline

Posts: 1715176678

View Profile Personal Message (Offline)

Ignore
1715176678
Reply with quote  #2

1715176678
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715176678
Hero Member
*
Offline Offline

Posts: 1715176678

View Profile Personal Message (Offline)

Ignore
1715176678
Reply with quote  #2

1715176678
Report to moderator
PLaci1982
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Live long and prosper. \\//,


View Profile
August 07, 2011, 11:17:16 AM
 #2

https://help.ubuntu.com/community/CompilingEasyHowTo

Hardware Expert / WinXP, Win7 Expert

1J5oPkyGVdb4mv44KGZQYsHS2ch6e1t4rc
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 11:36:59 AM
 #3

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!

PLaci1982
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Live long and prosper. \\//,


View Profile
August 07, 2011, 11:40:22 AM
 #4

autogen ain't needed

Hardware Expert / WinXP, Win7 Expert

1J5oPkyGVdb4mv44KGZQYsHS2ch6e1t4rc
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 11:46:38 AM
 #5

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!

Wombat
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
August 07, 2011, 11:50:08 AM
 #6

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

kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 11:54:41 AM
 #7

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?
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 12:06:37 PM
 #8

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)
Wombat
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
August 07, 2011, 12:07:04 PM
 #9

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  Wink
Wombat
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
August 07, 2011, 12:10:29 PM
 #10

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

Maybe the current directory isn't in your path, try ./cgminer ?
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 12:18:50 PM
 #11

 Undecided

turns out I forgot the last command:  "make" 

noob mistake Tongue


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
Wombat
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
August 07, 2011, 12:22:37 PM
 #12

Did you install the curses dependency mentioned in the README?

sudo apt-get install libncurses5-dev

kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 12:34:09 PM
 #13

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

PLaci1982
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Live long and prosper. \\//,


View Profile
August 07, 2011, 12:40:12 PM
 #14

Try this:
Code:
sudo apt-get install libcurl4-gnutls-dev

Hardware Expert / WinXP, Win7 Expert

1J5oPkyGVdb4mv44KGZQYsHS2ch6e1t4rc
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 12:43:59 PM
 #15

got it!

error is still the same as in previous post...
PLaci1982
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Live long and prosper. \\//,


View Profile
August 07, 2011, 01:21:47 PM
 #16

Weird...

Did you installed the ATI SDK?

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

Hardware Expert / WinXP, Win7 Expert

1J5oPkyGVdb4mv44KGZQYsHS2ch6e1t4rc
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 01:32:02 PM
 #17

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
kilgore (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile WWW
August 07, 2011, 02:28:54 PM
 #18

ok, the last tip worked!

Delete > reboot > start from scratch Smiley

OMG I'm mining for bitcoin!!!
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!