LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How to load linux-kernel-devel (https://www.linuxquestions.org/questions/suse-opensuse-60/how-to-load-linux-kernel-devel-824467/)

willie83 08-05-2010 07:03 PM

How to load linux-kernel-devel
 
Hi all,
Complete n00b here. I am running openSUSE 11.3 and trying to load drivers for a network card. When I try to make install, I am getting this error:

Code:

Makefile:69: *** Linux kernel source not found in any of these locations:
Makefile:70:               
Makefile:71: *** Install the appropriate kernel development package, e.g.
Makefile:72: *** kernel-devel, for building kernel modules and try again.

How do I install the kernel-devel?

Thanks

PTrenholme 08-05-2010 08:59 PM

I don't use SuSE, but i suspect that yast install kernel-devel or something similar should work. I also think that SuSE has a "Package Manager" or similarly named tool available from the GUI menu(s) which you can use to search for and install software. (See the "sticky" posts at the top of the main SUSE/Novell sub-forum page for repository location information. You may need to set up the repository search locations to get YAST to work properly.)

You might also want to look for the driver you're attempting to compile. There may be a binary version you can install and thereby avoid needing to do the compilation. (Unless, of course, you want to make changes in the driver.)

jschiwal 08-06-2010 04:29 AM

Install the "kernel-source" and "kernel-syms" packages.

sudo zypper install kernel-source kernel-syms

"zypper info -t pattern devel_kernel" shows these packages:
Code:

S | Name                          | Type    | Dependency
--+--------------------------------+---------+-----------
i | patchutils                    | package |         
i | quilt                          | package |         
i | gitk                          | package |         
  | kernel-docs                    | package |         
i | cscope                        | package |         
i | kernel-syms                    | package |         
i | kernel-source                  | package |         
i | diffstat                      | package |         
i | patterns-openSUSE-devel_kernel | package |         
i | indent                        | package |         
i | git-core                      | package |         
i | git-email                      | package |         
  | kernel-debug                  | package |

You probably don't need the packages with git in their name, and the quilt package, as you aren't a kernel developer submitting patches. You may need the linux-kernel-headers package as well.

willie83 08-06-2010 12:42 PM

Thanks guys, that got me closer. Now I am getting this response:

Code:

Makefile:116: *** Linux kernel source not configured - missing autoconf.h.
What next?

jschiwal 08-08-2010 12:30 AM

I guess you need the kernel devel package. For my kernel, it is the kernel-desktop-devel package.
Code:

zypper se kernel | grep devel
i | devel_kernel                  | Linux Kernel Development                                        | pattern
i | kernel-debug-devel            | Development files necessary for building kernel modules        | package
i | kernel-default-devel          | Development files necessary for building kernel modules        | package
i | kernel-desktop-devel          | Development files necessary for building kernel modules        | package
  | kernel-pae-devel              | Development files necessary for building kernel modules        | package
  | kernel-rt-devel                | Development files necessary for building kernel modules        | package
  | kernel-rt_debug-devel          | Development files necessary for building kernel modules        | package
  | kernel-rt_trace-devel          | Development files necessary for building kernel modules        | package
  | kernel-trace-devel            | Development files necessary for building kernel modules        | package
  | kernel-vanilla-devel          | Development files necessary for building kernel modules        | package
i | kernel-xen-devel              | Development files necessary for building kernel modules        | package
i | patterns-openSUSE-devel_kernel | Meta package for pattern devel_kernel                          | package



All times are GMT -5. The time now is 05:55 PM.