Author

Topic: cgminer for ubuntu 11.04? (Read 3046 times)

newbie
Activity: 36
Merit: 0
August 07, 2011, 09:28:54 AM
#18
ok, the last tip worked!

Delete > reboot > start from scratch Smiley

OMG I'm mining for bitcoin!!!
newbie
Activity: 36
Merit: 0
August 07, 2011, 08:32:02 AM
#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
full member
Activity: 168
Merit: 100
Live long and prosper. \\//,
August 07, 2011, 08:21:47 AM
#16
Weird...

Did you installed the ATI SDK?

I have no other idea, then to delete the extracted source, and start over...
newbie
Activity: 36
Merit: 0
August 07, 2011, 07:43:59 AM
#15
got it!

error is still the same as in previous post...
full member
Activity: 168
Merit: 100
Live long and prosper. \\//,
August 07, 2011, 07:40:12 AM
#14
Try this:
Code:
sudo apt-get install libcurl4-gnutls-dev
newbie
Activity: 36
Merit: 0
August 07, 2011, 07:34:09 AM
#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

newbie
Activity: 10
Merit: 0
August 07, 2011, 07:22:37 AM
#12
Did you install the curses dependency mentioned in the README?

sudo apt-get install libncurses5-dev

newbie
Activity: 36
Merit: 0
August 07, 2011, 07:18:50 AM
#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
newbie
Activity: 10
Merit: 0
August 07, 2011, 07:10:29 AM
#10
Code:
cgminer: Befehl nicht gefunden
(command not found)

Maybe the current directory isn't in your path, try ./cgminer ?
newbie
Activity: 10
Merit: 0
August 07, 2011, 07:07:04 AM
#9
Well, you could download the pre-built binary version from the cgminer thread instead:

https://bitcointalksearch.org/topic/official-cgminer-mining-software-thread-for-linuxwinosxmipsarmr-pi-4110-28402

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
newbie
Activity: 36
Merit: 0
August 07, 2011, 07:06:37 AM
#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)
newbie
Activity: 36
Merit: 0
August 07, 2011, 06: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?
newbie
Activity: 10
Merit: 0
August 07, 2011, 06: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

newbie
Activity: 36
Merit: 0
August 07, 2011, 06: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" LDFLAGS="-L ./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!

full member
Activity: 168
Merit: 100
Live long and prosper. \\//,
August 07, 2011, 06:40:22 AM
#4
autogen ain't needed
newbie
Activity: 36
Merit: 0
August 07, 2011, 06: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!

full member
Activity: 168
Merit: 100
Live long and prosper. \\//,
newbie
Activity: 36
Merit: 0
August 07, 2011, 05: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?
Jump to: