# Missing depdencies when installing source rpms

**URL:** https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919
**Category:** SLES Configure-Administer
**Created:** [January 4, 2012, 11:16pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919 "2012-01-04T23:16:03Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)
#### Post date: [January 4, 2012, 11:16pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/1 "2012-01-04T23:16:03Z")

</div>

Hello,

I’m trying to build a source rpm, but the depdencies are are missing.  
Am I missing some repository or something?

## Code:

# zypper si --build-deps-only ruby

Refreshing service ‘nu\_novell\_com’.  
Reading installed packages…  
Loading repository data…  
Resolving package dependencies…  
7 Problems:  
Problem: nothing provides requested xorg-x11-devel  
Problem: nothing provides requested fdupes  
Problem: nothing provides requested tk-devel  
Problem: nothing provides requested libjpeg-devel  
Problem: nothing provides requested gperf  
Problem: nothing provides requested openssl-devel  
Problem: nothing provides requested readline-devel

* * *

## Code:

# zypper lr

# | Alias | Name | Enabled | Refresh

–±----------------------------------------------------------±----------------------------------------------------------±--------±-------  
1 | SUSE-Linux-Enterprise-Server-11-SP1-for-VMware 11.1.1-1.4 | SUSE-Linux-Enterprise-Server-11-SP1-for-VMware 11.1.1-1.4 | Yes | No  
3 | nu\_novell\_com:SLE11-SP1-Debuginfo-Pool | SLE11-SP1-Debuginfo-Pool | No | Yes  
4 | nu\_novell\_com:SLE11-SP1-Debuginfo-Updates | SLE11-SP1-Debuginfo-Updates | No | Yes  
5 | nu\_novell\_com:SLES11-Extras | SLES11-Extras | Yes | Yes  
6 | nu\_novell\_com:SLES11-SP1-VMware-Pool | SLES11-SP1-VMware-Pool | Yes | Yes  
7 | nu\_novell\_com:SLES11-SP1-VMware-Updates | SLES11-SP1-VMware-Updates | Yes | Yes

* * *

## – Raboo3D

Raboo3D’s Profile: [http://forums.novell.com/member.php?userid=122108](http://forums.novell.com/member.php?userid=122108)  
View this thread: [http://forums.novell.com/showthread.php?t=450292](http://forums.novell.com/showthread.php?t=450292)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [January 5, 2012, 12:38am UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/2 "2012-01-05T00:38:07Z")

</div>

On Wed, 04 Jan 2012 21:16:03 GMT  
Raboo3D [Raboo3D@no-mx.forums.novell.com](mailto:Raboo3D@no-mx.forums.novell.com) wrote:  
[color=blue]

> Hello,
> 
> I’m trying to build a source rpm, but the depdencies are are missing.  
> Am I missing some repository or something?
> 
> ## Code:
> 
> ```
> # zypper si --build-deps-only ruby
> 
> ```
> 
> Refreshing service ‘nu\_novell\_com’.  
> Reading installed packages…  
> Loading repository data…  
> Resolving package dependencies…  
> 7 Problems:  
> Problem: nothing provides requested xorg-x11-devel  
> Problem: nothing provides requested fdupes  
> Problem: nothing provides requested tk-devel  
> Problem: nothing provides requested libjpeg-devel  
> Problem: nothing provides requested gperf  
> Problem: nothing provides requested openssl-devel  
> Problem: nothing provides requested readline-devel
> 
> * * *
> 
> ## Code:
> 
> ```
> # zypper lr
> 
> ```
> 
> # | Alias |
> 
> Name | Enabled |  
> Refresh  
> –±----------------------------------------------------------±----------------------------------------------------------±--------±-------  
> 1 | SUSE-Linux-Enterprise-Server-11-SP1-for-VMware 11.1.1-1.4 |  
> SUSE-Linux-Enterprise-Server-11-SP1-for-VMware 11.1.1-1.4 | Yes |  
> No 3 | nu\_novell\_com:SLE11-SP1-Debuginfo-Pool |  
> SLE11-SP1-Debuginfo-Pool | No |  
> Yes 4 | nu\_novell\_com:SLE11-SP1-Debuginfo-Updates |  
> SLE11-SP1-Debuginfo-Updates | No |  
> Yes 5 | nu\_novell\_com:SLES11-Extras |  
> SLES11-Extras | Yes |  
> Yes 6 | nu\_novell\_com:SLES11-SP1-VMware-Pool |[/color]  
> SLES11-SP1-VMware-Pool | Yes[color=blue]  
> | Yes 7 | nu\_novell\_com:SLES11-SP1-VMware-Updates |  
> SLES11-SP1-VMware-Updates | Yes |  
> Yes --------------------
> 
> [/color]  
> Hi  
> You need to add the SLE SDK via YaST Add on Product, it will then add  
> the update repositories etc.  
> [http://www.novell.com/developer/sle\_sdk.html](http://www.novell.com/developer/sle_sdk.html)

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.1 (x86\_64) Kernel 3.1.0-1.2-desktop  
up 1 day 18:43, 3 users, load average: 0.02, 0.02, 0.05  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [January 5, 2012, 12:36pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/3 "2012-01-05T12:36:01Z")

</div>

malcolmlewis;2165130 Wrote:[color=blue]

> Hi  
> You need to add the SLE SDK via YaST Add on Product, it will then add  
> the update repositories etc.  
> ‘SUSE Linux Enterprise SDK’  
> ([http://www.novell.com/developer/sle\_sdk.html](http://www.novell.com/developer/sle_sdk.html))  
> [/color]  
> Can I do it without yast? Can I do it in zypper or such?  
> I’ve re-installed server using only “Minimal System”.. yast is not  
> installed…

## – Raboo3D

Raboo3D’s Profile: [http://forums.novell.com/member.php?userid=122108](http://forums.novell.com/member.php?userid=122108)  
View this thread: [http://forums.novell.com/showthread.php?t=450292](http://forums.novell.com/showthread.php?t=450292)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [January 5, 2012, 2:46pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/4 "2012-01-05T14:46:01Z")

</div>

Raboo3D;2165233 Wrote:[color=blue]

> Can I do it without yast? Can I do it in zypper or such?  
> I’ve re-installed server using only “Minimal System”.. yast is not  
> installed…
> 
> EDIT: Never mind. Yast is installed on minimal system, but i have to  
> type yast2…  
> However, question still remains, can i do this without yast2?[/color]  
> zypper can add a repo ‘SDB:Zypper usage 11.3 - openSUSE’  
> ([http://en.opensuse.org/SDB:Zypper\_usage\_11.3#Adding\_repositories](http://en.opensuse.org/SDB:Zypper_usage_11.3#Adding_repositories))  
> Give it a try.

## – MoserHans

MoserHans’s Profile: [http://forums.novell.com/member.php?userid=53101](http://forums.novell.com/member.php?userid=53101)  
View this thread: [http://forums.novell.com/showthread.php?t=450292](http://forums.novell.com/showthread.php?t=450292)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [January 5, 2012, 3:12pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/5 "2012-01-05T15:12:46Z")

</div>

On Thu, 05 Jan 2012 10:36:01 GMT  
Raboo3D [Raboo3D@no-mx.forums.novell.com](mailto:Raboo3D@no-mx.forums.novell.com) wrote:  
[color=blue]

> malcolmlewis;2165130 Wrote:[color=green]
> 
> > Hi  
> > You need to add the SLE SDK via YaST Add on Product, it will then  
> > add the update repositories etc.  
> > ‘SUSE Linux Enterprise SDK’  
> > ([http://www.novell.com/developer/sle\_sdk.html](http://www.novell.com/developer/sle_sdk.html))  
> > [/color]  
> > Can I do it without yast? Can I do it in zypper or such?  
> > I’ve re-installed server using only “Minimal System”… yast is not  
> > installed…
> 
> [/color]  
> Hi  
> Look at your system mirror credentials and password and add it via  
> zypper ar command, or just the iso image;

```auto
zypper ar iso:///data/repositories/iso_images/SLE-11-SP1-SDK-DVD-x86_64-RC2-DVD1.iso SLE-SDK-LOCAL
```

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.1 (x86\_64) Kernel 3.1.0-1.2-desktop  
up 9:44, 4 users, load average: 0.05, 0.08, 0.09  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [January 6, 2012, 2:46am UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/6 "2012-01-06T02:46:02Z")

</div>

Ok, thanks guys it worked!

## – Raboo3D

Raboo3D’s Profile: [http://forums.novell.com/member.php?userid=122108](http://forums.novell.com/member.php?userid=122108)  
View this thread: [http://forums.novell.com/showthread.php?t=450292](http://forums.novell.com/showthread.php?t=450292)

---

<div class="post-metadata">

### Author: ![psalzer](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@psalzer](https://forums.suse.com/u/psalzer)
#### Post date: [May 15, 2012, 12:01am UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/7 "2012-05-15T00:01:32Z")

</div>

[QUOTE=Raboo3D;1214]Ok, thanks guys it worked!

Yes it worked to get the SDK Images to my repositories  
but i canÂ´t install / find openssl-devel on my SLES11sp1 Server  
any idea for me?

---

<div class="post-metadata">

### Author: ![enovaklbank](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@enovaklbank](https://forums.suse.com/u/enovaklbank)
#### Post date: [May 16, 2012, 4:16pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/8 "2012-05-16T16:16:39Z")

</div>

Do you have the SLES11-SP1-Updates repository?  
It should be there:

i | slessp1-libopenssl-devel | patch | 6054 | noarch | SLES11-SP1-Updates

---

<div class="post-metadata">

### Author: ![psalzer](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@psalzer](https://forums.suse.com/u/psalzer)
#### Post date: [May 21, 2012, 11:37pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/9 "2012-05-21T23:37:10Z")

</div>

i have the update SLES11-SP1-Updates but cant find only libopenssl in yast  
canÂ´t find my error

---

<div class="post-metadata">

### Author: ![wagh1ravi](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wagh1ravi](https://forums.suse.com/u/wagh1ravi)
#### Post date: [June 4, 2016, 7:55am UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/10 "2016-06-04T07:55:41Z")

</div>

Hello,

Someone please help me to install kernel devel in SUSE Linux Enterprise Server for SAP Applications 12 (x86\_64)

# ========= linux-4ldr:/ # uname -r 3.12.28-4-xen linux-4ldr:/ #

# ERROR:

linux-4ldr:/ # zypper install kernel-devel-3.12.28-4-xen  
Loading repository data…  
Reading installed packages…  
‘kernel-devel-3.12.28-4-xen’ not found in package names. Trying capabilities.  
No provider of ‘kernel-devel-3.12.28-4-xen’ found.  
Resolving package dependencies…

# Nothing to do.

Thanks !!

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [June 4, 2016, 3:59pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/11 "2016-06-04T15:59:10Z")

</div>

> [@](#):
>
> On Sat 04 Jun 2016 05:04:01 AM CDT, wagh1ravi wrote:
> 
> Hello,
> 
> Someone please help me to install kernel devel in SUSE Linux Enterprise  
> Server for SAP Applications 12 (x86\_64)
> 
> # ========= linux-4ldr:/ # uname -r 3.12.28-4-xen linux-4ldr:/ #
> 
> # ERROR:
> 
> linux-4ldr:/ # zypper install kernel-devel-3.12.28-4-xen  
> Loading repository data…  
> Reading installed packages…  
> ‘kernel-devel-3.12.28-4-xen’ not found in package names. Trying  
> capabilities.  
> No provider of ‘kernel-devel-3.12.28-4-xen’ found.  
> Resolving package dependencies…
> 
> # Nothing to do.
> 
> Thanks !!

Hi  
Is it the specific version you want in? If so it would be;

```auto
zypper in kernel-xen-devel=3.12.28-4
```

Else just search and use the name found from;  
[/CODE]  
zypper se kernel  
zypper se -s kernel  
[/CODE]

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE Leap 42.1|GNOME 3.16.2|4.1.21-14-default  
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: ![wagh1ravi](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wagh1ravi](https://forums.suse.com/u/wagh1ravi)
#### Post date: [June 12, 2016, 8:18am UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/12 "2016-06-12T08:18:33Z")

</div>

Hello,

Thanks for replying.

I have installed kernel-xen-devel-3.12.25-1.13.g3f6afa3.x86\_64

# please check below output for the same :

# linux-4ldr:/usr/src/linux/kernel # rpm -qa | grep devel kernel-devel-3.12.28-4.3.noarch kernel-devel-3.12.28-4.6.noarch kernel-xen-devel-3.12.25-1.13.g3f6afa3.x86\_64 kernel-devel-3.12.25-1.4.g3f6afa3.noarch

But still facing issue while installing kernel module : “Unable to find the source directories for your running kernel”

# ==== linux-4ldr:/usr/src/linux/kernel # echo $KERN\_DIR \<== Nothing printed here linux-4ldr:/usr/src/linux/kernel #

Please suggest.

Thanks !!

---

<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: [June 13, 2016, 7:36pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/13 "2016-06-13T19:36:05Z")

</div>

Hi wagh1ravi,

> “Unable to find the source directories for your running kernel”  
> Please suggest.

`host:~> cd /usr/src/linux-$(uname)
host:/usr/src/linux-3.12.28-4-default > make clone-config && make prepare
`

Regards,  
J

---

<div class="post-metadata">

### Author: ![wagh1ravi](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wagh1ravi](https://forums.suse.com/u/wagh1ravi)
#### Post date: [June 15, 2016, 11:22am UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/14 "2016-06-15T11:22:04Z")

</div>

Hello jmozdzen,

Thanks for sharing steps.

I tried above steps, but “linux-3.12.28-4-default” this is not available at /usr/src/

Please check below only following files and directories available in /usr/src :

# ============== linux-4ldr:/usr/src # ls linux linux-3.12.25-1.g3f6afa3 linux-3.12.25-1.g3f6afa3-obj linux-3.12.25-1.g3f6afa3-vanilla linux-3.12.28-4 linux-obj packages linux-4ldr:/usr/src #

Regards,  
Ravikumar

---

<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: [June 16, 2016, 2:32pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/15 "2016-06-16T14:32:09Z")

</div>

Hi Ravikumar,

[QUOTE=wagh1ravi;32985]Hello jmozdzen,

Thanks for sharing steps.

I tried above steps, but “linux-3.12.28-4-default” this is not available at /usr/src/[/QUOTE]

well, I was assuming you had the kernel sources installed, but cannot say for sure. Is “/usr/src/linux” a symlink to linux-3.12.28-4 and is that the full kernel source? Then that’s the directory I’m talking about. If not, you’ll need to install the kernel-source package in a version corresponding to your running (or desired target) kernel and change to the resulting /usr/src/\* directory.

Regards,  
J

---

<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: [June 17, 2016, 12:47pm UTC](https://forums.suse.com/t/missing-depdencies-when-installing-source-rpms/21919/16 "2016-06-17T12:47:13Z")

</div>

On 16/06/16 12:34, jmozdzen wrote:  
[color=blue]

> well, I was assuming you had the kernel sources installed, but cannot  
> say for sure. Is “/usr/src/linux” a symlink to linux-3.12.28-4 and is  
> that the full kernel source? Then that’s the directory I’m talking  
> about. If not, you’ll need to install the kernel-source package in a  
> version corresponding to your running (or desired target) kernel and  
> change to the resulting /usr/src/\* directory.[/color]

Perhaps Ravikumar could post the output from “rpm -qa _kernel_”?

## 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.
