Installing a Linux kernel source tree

This is a discussion on Installing a Linux kernel source tree within the Tech Board forums, part of the Community Boards category; I'm trying to get DRI-accelerated Mesa installed on my Mandriva 2006 system. The only thing I have left to do, ...

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070

    Installing a Linux kernel source tree

    I'm trying to get DRI-accelerated Mesa installed on my Mandriva 2006 system. The only thing I have left to do, is build the DRM library files which requires me to have a configured kernel source tree. My distro didn't come with the kernel source, which would mean I have to download, install and configure it myself.

    My question is, where and what am I supposed to download? (my distro is running on Kernel 2.6)
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  2. #2
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    well since your running mandriva chances are you have to get their source tree (for your build,), if it turns out you don't (very slim chance), take a look at http://www.kernel.org/

    edit:
    looks like you will need <your version>mdk kernel-source rpm

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Typically distro's come with a "dev-tools" package which would include things like kernel source. If you still have your mandriva cd's you can probably find it there.

  4. #4
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Mandriva does have the kernel sources package, use urpmi to install them:
    Code:
    urmpi kernel-source-2.6.12-18mdk
    after of course you use su
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  5. #5
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Ok, thanks. I built the DRM files, and moved them to their proper location.

    One more question though. After all this, the OpenGL and XServer information programs don't crash anymore, meaning everything (Mesa and DRM) seems to have installed OK. However, when I try and run my engine with WINE, it tells me it can't find libGL.so, and other lib files, even though I know that I have them (in several different lib directories, just to make sure all programs can find them). Also, when I try to compile the demos that come with Mesa, it tells me it cant find the glut library (which is in /usr/X11R6/lib and /usr/X11R6/lib64 with all the other Mesa lib files). Whats going on there?
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  6. #6
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Nevermind, problem(s) solved.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. starting linux's source code and kernel
    By sawer in forum Linux Programming
    Replies: 9
    Last Post: 08-01-2006, 07:46 AM
  2. installing debian linux
    By X PaYnE X in forum Tech Board
    Replies: 2
    Last Post: 05-10-2005, 04:43 AM
  3. where can I find source code for a binary tree?
    By binary_man in forum C++ Programming
    Replies: 5
    Last Post: 01-10-2003, 08:53 AM
  4. Installing Linux
    By Unregistered in forum Linux Programming
    Replies: 11
    Last Post: 05-13-2002, 11:34 PM
  5. Is Linux Source written in C or C++ ?
    By pritesh in forum Linux Programming
    Replies: 3
    Last Post: 12-02-2001, 05:21 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21