Find the answer to your Linux question:
Results 1 to 4 of 4
First, let me say I am a Linux/Ubuntu newbie... I am getting the following error when trying to install National Instruments IEEE-488.2 Driver Package on an embedded controller using Ubuntu ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    3

    Kernel Source Missing after CD install - how to install from CD


    First, let me say I am a Linux/Ubuntu newbie...

    I am getting the following error when trying to install National Instruments IEEE-488.2 Driver Package on an embedded controller using Ubuntu 9.04 (Due t:

    ******************************** ERROR ****************************************
    * Kernel source in /lib/modules/2.6.28-11-generic/build does not appear to be
    * for the 2.6.28-11-generic kernel.
    * Ensure that kernel source for the 2.6.28-11-generic kernel is installed
    * and configured. Refer to the README file for the product you are *
    * installing for information about configuring your kernel source. *
    ******************************** ERROR ****************************************

    As best I can determine the Kernel Source is *not* installed.

    It is on the CD.

    How do I get the Kernel Source from the CD onto the Hard Drive in the right place.

    (Hand Holding & Step by Step would be greatly appreciated.)

    Yes... I am begging.

    Mike Sr.

  2. #2
    Just Joined!
    Join Date
    Oct 2012
    Posts
    3
    Basically, I've now been told that, if I had a CD Install, that the Source is *not* on the CD.

    So, I can find 'packages' at old-releases.ubuntu.com/ubuntu/dists/jaunty/

    But, have no idea ofwhat to download, bring in to work, and install it.

    I simply can't use sudo apt-get at work as there is no internet connectivity for Linux Machines at work.

  3. #3
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Hello and Welcome.
    Get the newest version of Ubuntu if you can. It has more support for different hardware and your network might work right out of the box.
    Ubuntu 12.10 (Quantal Quetzal)
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  4. #4
    Just Joined!
    Join Date
    Oct 2012
    Posts
    3
    Quote Originally Posted by MikeTbob View Post
    Hello and Welcome.
    Get the newest version of Ubuntu if you can. It has more support for different hardware and your network might work right out of the box.
    As previously stated... This is on an embedded controller. This embedded controller has only 256mb of Ram. Runs 9.04 quite well. But, 9.10 crashed the install.

    So, no, updated to the latest and greatest is *not* possible.

    Now, what I have learned is that the Package Manager says the Source is installed. Apparently the NI script is not looking in the right place. Or, the Package Manager is lying. (Not sure I'd recognize the source directory if I stumbled onto it.)

    A find discovers this:
    mikesr@mikesr-desktop:/$ sudo find -iname version.h -print
    ./usr/include/linux/version.h
    ./usr/include/linux/dvb/version.h
    ./usr/src/linux-headers-2.6.28-11/include/linux/dvb/version.h
    ./usr/src/linux-headers-2.6.28-11/include/sound/version.h
    ./usr/src/linux-headers-2.6.28-11/include/xen/interface/version.h
    ./usr/src/linux-headers-2.6.28-11-generic/include/linux/version.h

    the script section of interest is this:
    Looking For:
    # find the kernel headers/source dir
    if [ $KERNELHEADERS ]; then
    headersDir=$KERNELHEADERS
    elif [ -d "/lib/modules/$kernelVersion/build/include/linux" ]; then
    if [ -d "/lib/modules/$kernelVersion/source/include/linux" ]; then
    headersDir=/lib/modules/$kernelVersion/source
    else
    headersDir=/lib/modules/$kernelVersion/build
    fi
    elif [ -d "/usr/src/linux-$kernelVersion/include/linux" ]; then
    headersDir=/usr/src/linux-$kernelVersion
    elif [ -d "/usr/src/linux-$kernelMajor.$kernelMinor/include/linux" ]; then
    headersDir=/usr/src/linux-$kernelMajor.$kernelMinor
    elif [ -d "/usr/src/kernels/$kernelVersion/include/linux" ]; then
    headersDir=/usr/src/kernels/$kernelVersion
    elif [ -d "/usr/src/linux/include/linux" ]; then
    headersDir=/usr/src/linux
    else
    echo "************************************ ERROR

    So, it would appear that my next task is to figure out how to modify the script to 'see' the directory in question.

    Again, I am a former Windows VB-6 guy taking on Python under Linux. And, I am *very* uncomfortable.

    Mike Sr.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •