<p>I was able to get cgminer to build the icarus extension on a fresh CentOS system like so:</p>

<pre><code>yum install git
git clone https://github.com/bitmaintech/cgminer
cd cgminer/
yum install -y autoconf make automake gcc gcc-c++ kernel-devel libcurl libcurl-devel
yum install libudev-devel
./autogen.sh
./configure --enable-icarus
make
./cgminer
</code></pre>

<p>So I think you're missing the package <code>libudev-devel</code>. (It might be named something different on Fedora 22 - I don't know.)</p>

CC BY-SA 3.0
2016-02-04T14:55:21.333Z
That worked like charm. There were 2 packages missing kernel-devel and libudev-devel. after they were installed the ./configure --enable-icarus worked fine. Thanks Nick
Rahul Jadhav
CC BY-SA 3.0
2016-02-04T05:10:07.867Z
2016-02-04T05:10:07.867Z
Nick ODell
<p>I am using Fedora 22, 32bit OS and have Antminer U3 for mining operations</p>

<p>got the cgminer source code from GIT:
git clone <a href="https://github.com/bitmaintech/cgminer" rel="nofollow">https://github.com/bitmaintech/cgminer</a></p>

<p>while running <strong>./configure --enable-icarus</strong> the command ends up in error as below</p>

<pre><code>./configure: line 11972: -pthread: command not found
checking libudev.h usability... no
checking libudev.h presence... no
checking for libudev.h... no
configure: error: "udev support requested but libudev not installed"
configure: error: ./configure failed for compat/libusb-1.0
</code></pre>

<p>I tried using system libusb, but no success</p>

<p><strong>./configure --enable-icarus --with-system-libusb</strong></p>

<pre><code>checking for pthread_create in -lpthread... yes
checking for library containing addstr... no
configure: WARNING: Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBUSB... no
configure: error: Could not find usb library - please install libusb-1.0
</code></pre>

<p>libusb is part of systemd package and my system has latest installed.
checked from </p>

<pre><code>sudo dnf upgrade systemd
</code></pre>

<p>command returned <em>Nothing to do.</em></p>

<p>Could you please help where i could be going wrong in setting up CGMiner ?</p>

<p>PS: I tried bfgminer, but ended up in errors.</p>

<cgminer><antminer>
libudev error while configuring cgminer on fedora 22
Rahul Jadhav
# libudev error while configuring cgminer on fedora 22

(Asked by: username_0 on 2016-02-03)

I am using Fedora 22, 32bit OS and have Antminer U3 for mining operations
got the cgminer source code from GIT:
git clone https://github.com/bitmaintech/cgminer
while running ./configure --enable-icarus the command ends up in error as below
./configure: line 11972: -pthread: command not found
checking libudev.h usability... no
checking libudev.h presence... no
checking for libudev.h... no
configure: error: "udev support requested but libudev not installed"
configure: error: ./configure failed for compat/libusb-1.0

I tried using system libusb, but no success
./configure --enable-icarus --with-system-libusb
checking for pthread_create in -lpthread... yes
checking for library containing addstr... no
configure: WARNING: Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBUSB... no
configure: error: Could not find usb library - please install libusb-1.0

libusb is part of systemd package and my system has latest installed.
checked from 
sudo dnf upgrade systemd

command returned Nothing to do.
Could you please help where i could be going wrong in setting up CGMiner ?
PS: I tried bfgminer, but ended up in errors.

**Tags:** cgminer, antminer


---

## 1 answers

### Answer by username_1 on 2016-02-04. Score: 0 | Accepted answer

I was able to get cgminer to build the icarus extension on a fresh CentOS system like so:
yum install git
git clone https://github.com/bitmaintech/cgminer
cd cgminer/
yum install -y autoconf make automake gcc gcc-c++ kernel-devel libcurl libcurl-devel
yum install libudev-devel
./autogen.sh
./configure --enable-icarus
make
./cgminer

So I think you're missing the package libudev-devel. (It might be named something different on Fedora 22 - I don't know.)

> **Comments:**
> **username_0**: That worked like charm. There were 2 packages missing kernel-devel and libudev-devel. after they were installed the ./configure --enable-icarus worked fine. Thanks Nick  

---

