# libudev.h is missing

**URL:** <https://forums.suse.com/t/libudev-h-is-missing/27520>\
**Category:** SLES Configure-Administer\
**Created:** [October 14, 2015, 7:11pm UTC](https://forums.suse.com/t/libudev-h-is-missing/27520 "2015-10-14T19:11:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![trdillon1](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@trdillon1](https://forums.suse.com/u/trdillon1)\
**Post date:** [October 14, 2015, 7:11pm UTC](https://forums.suse.com/t/libudev-h-is-missing/27520/1 "2015-10-14T19:11:47Z")

</div>

I am trying to install an application and the make fails because libudev.h is not found. I have install basically all of the libudev things. What am I missing?

S | Name | Summary | Type  
–±---------------±--------------------------------------------------±-------  
i | libudev-mm0 | A Rule-Based Device Node and Kernel Event Manager | package  
i | libudev0 | A Rule-Based Device Node and Kernel Event Manager | package  
i | libudev0-32bit | A Rule-Based Device Node and Kernel Event Manager | package

Below is the exact error:

In file included from disk/disk.cc:15:  
disk/disk.h:13:21: error: libudev.h: No such file or directory  
disk/disk.cc: In function Âvoid broadcastEvent(udev\_device\*)Â:  
disk/disk.cc:114: error: Âudev\_device\_get\_actionÂ was not declared in this scope  
disk/disk.cc: In function Âvoid threadCleanup(void\*)Â:  
disk/disk.cc:144: error: Âudev\_unrefÂ was not declared in this scope  
disk/disk.cc: In function Âvoid\* eventListenerThread(void\*)Â:  
disk/disk.cc:156: error: Âudev\_newÂ was not declared in this scope  
disk/disk.cc:162: error: Âudev\_monitor\_new\_from\_netlinkÂ was not declared in this scope  
disk/disk.cc:164: error: Âudev\_unrefÂ was not declared in this scope  
disk/disk.cc:169: error: Âudev\_monitor\_filter\_add\_match\_subsystem\_devtypeÂ was not declared in this scope  
disk/disk.cc:170: error: Âudev\_monitor\_enable\_receivingÂ was not declared in this scope  
disk/disk.cc:176: error: Âudev\_monitor\_receive\_deviceÂ was not declared in this scope  
disk/disk.cc:182: error: Âudev\_device\_get\_devnumÂ was not declared in this scope  
disk/disk.cc:190: error: Âudev\_device\_unrefÂ was not declared in this scope  
disk/disk.cc: In function Âbool forEachDevice(bool (_)(udev\_device_, void\*), void\*, BCDiskRef\*)Â:  
disk/disk.cc:244: error: Âudev\_newÂ was not declared in this scope  
disk/disk.cc:249: error: Âudev\_enumerate\_newÂ was not declared in this scope  
disk/disk.cc:251: error: Âudev\_unrefÂ was not declared in this scope  
disk/disk.cc:255: error: Âudev\_enumerate\_add\_match\_subsystemÂ was not declared in this scope  
disk/disk.cc:256: error: Âudev\_enumerate\_scan\_devicesÂ was not declared in this scope  
disk/disk.cc:259: error: Âudev\_enumerate\_get\_list\_entryÂ was not declared in this scope  
disk/disk.cc:261: error: Âudev\_list\_entry\_foreachÂ was not declared in this scope  
disk/disk.cc:261: error: expected `;' before Â{Â token disk/disk.cc:441: error: expected `}’ at end of input  
disk/disk.cc: At global scope:  
disk/disk.cc:236: warning: Âbool forEachDevice(bool (_)(udev\_device_, void\*), void\*, BCDiskRef\*)Â defined but not used  
make: \*\*\* [disk/disk.o] Error 1

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 14, 2015, 7:25pm UTC](https://forums.suse.com/t/libudev-h-is-missing/27520/2 "2015-10-14T19:25:55Z")

</div>

Hi trdillon1,

[QUOTE=trdillon1;29959]I am trying to install an application and the make fails because libudev.h is not found. I have install basically all of the libudev things. What am I missing?

S | Name | Summary | Type  
–±---------------±--------------------------------------------------±-------  
i | libudev-mm0 | A Rule-Based Device Node and Kernel Event Manager | package  
i | libudev0 | A Rule-Based Device Node and Kernel Event Manager | package  
i | libudev0-32bit | A Rule-Based Device Node and Kernel Event Manager | package[/QUOTE]

I’d have expected a corresponding “-devel” package - have you installed the SDK (you can download it for free and install it as an add-on product)? I’m off-site, so I currently cannot check if some matching package is provided with the SDK…

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [October 14, 2015, 7:39pm UTC](https://forums.suse.com/t/libudev-h-is-missing/27520/3 "2015-10-14T19:39:31Z")

</div>

On 14/10/2015 17:34, jmozdzen wrote:  
[color=blue]

> I’d have expected a corresponding “-devel” package - have you installed  
> the SDK (you can download it for free and install it as an add-on  
> product)? I’m off-site, so I currently cannot check if some matching  
> package is provided with the SDK…[/color]

The libudev-devel package included within the SLE11 SP4 SDK installs  
/usr/include/libudev.h.

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![trdillon1](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@trdillon1](https://forums.suse.com/u/trdillon1)\
**Post date:** [October 14, 2015, 9:02pm UTC](https://forums.suse.com/t/libudev-h-is-missing/27520/4 "2015-10-14T21:02:22Z")

</div>

How do I install the SDK?

---

<div class="post-metadata">

**Author:** ![thsundel](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@thsundel](https://forums.suse.com/u/thsundel)\
**Post date:** [October 15, 2015, 10:04am UTC](https://forums.suse.com/t/libudev-h-is-missing/27520/5 "2015-10-15T10:04:15Z")

</div>

> [@trdillon1;29962](#):
>
> How do I install the SDK?

[https://www.suse.com/documentation/sles11/book\_sle\_deployment/data/sect1\_2\_chapter\_book\_sle\_deployment.html](https://www.suse.com/documentation/sles11/book_sle_deployment/data/sect1_2_chapter_book_sle_deployment.html) / [https://www.suse.com/documentation/sled-12/book\_sle\_deployment/data/sec\_add-ons\_sdk.html](https://www.suse.com/documentation/sled-12/book_sle_deployment/data/sec_add-ons_sdk.html)  
[https://www.novell.com/support/kb/doc.php?id=7015337](https://www.novell.com/support/kb/doc.php?id=7015337)

Thomas

---

<div class="post-metadata">

**Author:** ![trdillon1](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@trdillon1](https://forums.suse.com/u/trdillon1)\
**Post date:** [October 16, 2015, 6:43pm UTC](https://forums.suse.com/t/libudev-h-is-missing/27520/6 "2015-10-16T18:43:56Z")

</div>

Thanks everyone. This is now resovled.
