Bitcoin Forum
October 06, 2024, 11:13:27 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CGMiner returned synatx error on Ubuntu  (Read 1723 times)
petr (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 26, 2012, 05:41:31 AM
 #1

I'm running Ubuntu desktop 12.04 32bit. I downloaded cgminer-2.8.5-x86_64-built.tar.bz2 and unpack it to my home directory. When I run cgminer I get the syntax error (bracket is unexpected):

Code:
me@me:~/cgminer-2.8.5-x86_64-built$ sudo ./cgminer --help
[sudo] password for me:
./cgminer: 1: ./cgminer: Syntax error: "(" unexpected

How to solve this issue? I'm newbie, so cannot post this to the right thread.
josephliton
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
November 09, 2012, 11:17:24 AM
 #2

I was hoping to  Mine Litecoin with cgminer.

2GOOD
Hero Member
*****
Offline Offline

Activity: 547
Merit: 531


First bits: 12good


View Profile WWW
November 09, 2012, 07:00:04 PM
 #3

I'm running Ubuntu desktop 12.04 32bit. I downloaded cgminer-2.8.5-x86_64-built.tar.bz2 and unpack it to my home directory. When I run cgminer I get the syntax error (bracket is unexpected):

Code:
me@me:~/cgminer-2.8.5-x86_64-built$ sudo ./cgminer --help
[sudo] password for me:
./cgminer: 1: ./cgminer: Syntax error: "(" unexpected

How to solve this issue? I'm newbie, so cannot post this to the right thread.

You have to compile it for 32 bit, I had a lot of trouble with cgminer and ubuntu x86

1. First you have to install dependencies: sudo apt-get install .....
 
Code:
libcurl4-openssl-dev
pkg-config
libtool

2. Download and extract the sources http://ck.kolivas.org/apps/cgminer/cgminer-2.9.1.tar.bz2

3. Then compile:
Code:
CFLAGS="-O2 -Wall -march=native" ./configure

and you are ready to go Wink

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!