View Source

h3. Symptom

----
The r1soft-setup utility is unable to find valid source directory to build a replication driver for an openSUSE agent
\\
{code}
r1soft-setup --get-module
Checking for binary module
Waiting |
No binary module found
Gathering kernel information
Internal script returned an error:
Cannot find the kernel-source package for your kernel
{code}

h1.  Cause


----
In later versions of the openSUSE distribution the kernel-devel package does not contain all of the information needed to successfully build a replication driver.


h1.  Resolution

----
To resolve the error you simply need to install the kernel-source package

{code}
# zypper install kernel-source
{code}
\\

Now, use the r1soft-setup utility to build your kernel module.

{code}
# r1soft-setup \--get-module \--kernel-dir /usr/src/r1build
# /etc/init.d/cdp-agent restart
{code}{kb-related-articles}