<p>You have downloaded the linux version of cgminer, that's not going to run on OS X.</p>

<p>I don't think there is a ready built binary for cgminer on OS X.</p>

CC BY-SA 3.0
2013-04-07T09:58:22.257Z
2013-04-07T09:58:22.257Z
Dean Smith
<p>I'm trying to use litecoin on OSX with NVidia or CPU mining, and <a href="http://ck.kolivas.org/apps/cgminer/" rel="nofollow">downloaded the binary from here</a></p>

<p>The specific binary I extracted was <code>cgminer-2.10.5-x86_64-built.tar.bz2</code>.  I extracted it and used terminal to CD into the extracted directory. </p>

<p>There is a file there that has execute permissions on it ( <code>ls -lag</code> )</p>

<pre><code>-rwxr-xr-x@  1 staff  382808 Feb  7 01:50 cgminer
</code></pre>

<p>If I double click on, or run the app cgminer OSX says: <code>cannot execute binary file</code>.</p>

<p>I verified that my security settings are set to run "unsigned programs from any author" but I don't think that matters in OSX.</p>

<p>How do I run cgminer on OSX?</p>

<hr>

<pre><code>server:cgminer-2.10.5-x86_64-built username$ od cgminer | head
0000000    042577  043114  000402  000001  000000  000000  000000  000000
0000020    000002  000076  000001  000000  072500  000100  000000  000000
0000040    000100  000000  000000  000000  150130  000005  000000  000000
0000060    000000  000000  000100  000070  000011  000100  000034  000033
0000100    000006  000000  000005  000000  000100  000000  000000  000000
0000120    000100  000100  000000  000000  000100  000100  000000  000000
0000140    000770  000000  000000  000000  000770  000000  000000  000000
0000160    000010  000000  000000  000000  000003  000000  000004  000000
0000200    001070  000000  000000  000000  001070  000100  000000  000000
0000220    001070  000100  000000  000000  000034  000000  000000  000000 
</code></pre>

CC BY-SA 3.0
2013-02-24T04:43:36.780Z
Did you try `tar xvf <filename>`, then run the file inside?
Nick ODell
CC BY-SA 3.0
2013-02-24T04:54:11.907Z
@NickODell I just re-tried the process using that command. Same error
makerofthings7
CC BY-SA 3.0
2013-02-24T05:35:51.293Z
No, I mean run the file that the tar command just unpacked.
Nick ODell
CC BY-SA 3.0
2013-02-24T07:18:06.177Z
@NickODell I clarified in the question just now.
makerofthings7
CC BY-SA 3.0
2013-02-24T16:05:56.643Z
Can you try `od cgminer | head`?
Nick ODell
CC BY-SA 3.0
2013-02-24T16:48:17.197Z
@NickODell - I updated the question...
makerofthings7
CC BY-SA 3.0
2013-02-24T17:29:37.950Z
Hmmm, are you on a 32 bit system?
Nick ODell
CC BY-SA 3.0
2013-02-24T18:20:54.293Z
My hardware is x64 (Mac Retina).  I don't think OSX 10.8.2 comes in x32 bit flavor. - @NickODell
makerofthings7
<mac><litecoin><cgminer>
cgminer on OSX: Cannot open executable file
makerofthings7
# cgminer on OSX: Cannot open executable file

(Asked by: username_0 on 2013-02-24)

I'm trying to use litecoin on OSX with NVidia or CPU mining, and [downloaded the binary from here](http://ck.kolivas.org/apps/cgminer/)

The specific binary I extracted was `cgminer-2.10.5-x86_64-built.tar.bz2`. I extracted it and used terminal to CD into the extracted directory.

There is a file there that has execute permissions on it ( `ls -lag` )

```
-rwxr-xr-x@  1 staff  382808 Feb  7 01:50 cgminer

```

If I double click on, or run the app cgminer OSX says: `cannot execute binary file`.

I verified that my security settings are set to run "unsigned programs from any author" but I don't think that matters in OSX.

How do I run cgminer on OSX?

---

```
server:cgminer-2.10.5-x86_64-built username$ od cgminer | head
0000000    042577  043114  000402  000001  000000  000000  000000  000000
0000020    000002  000076  000001  000000  072500  000100  000000  000000
0000040    000100  000000  000000  000000  150130  000005  000000  000000
0000060    000000  000000  000100  000070  000011  000100  000034  000033
0000100    000006  000000  000005  000000  000100  000000  000000  000000
0000120    000100  000100  000000  000000  000100  000100  000000  000000
0000140    000770  000000  000000  000000  000770  000000  000000  000000
0000160    000010  000000  000000  000000  000003  000000  000004  000000
0000200    001070  000000  000000  000000  001070  000100  000000  000000
0000220    001070  000100  000000  000000  000034  000000  000000  000000 

```

**Tags:** mac, litecoin, cgminer

> **Comments:**
> **username_1**: Did you try `tar xvf <filename>`, then run the file inside?  
> **username_0**: @username_1 I just re-tried the process using that command. Same error  
> **username_1**: No, I mean run the file that the tar command just unpacked.  
> **username_0**: @username_1 I clarified in the question just now.  
> **username_1**: Can you try `od cgminer | head`?  
> **username_0**: @username_1 - I updated the question...  
> **username_1**: Hmmm, are you on a 32 bit system?  
> **username_0**: My hardware is x64 (Mac Retina).  I don't think OSX 10.8.2 comes in x32 bit flavor. - @username_1  

---

## 1 answers

### Answer by username_2 on 2013-04-07. Score: 1 | Accepted answer

You have downloaded the linux version of cgminer, that's not going to run on OS X.

I don't think there is a ready built binary for cgminer on OS X.


---

