VXI and VME

cancel
Showing results for 
Search instead for 
Did you mean: 

Installation of Visa on Opensuse 10.2

I have been trying to install Visa drivers on Opensuse 10.2 build 2.6.18.8-0.9. This is a clean install of the os with no extra programs installed but current patches downloaded. I first got the error message as follows -


******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.18.8-0.9-default/source does not appear to be
* configured for the 2.6.18.8-0.9-default kernel.
* Configuration of kernel source is required to continue installation.        *
* Refer to the README file for the product you are installing for information *
* about configuring your kernel source.                                       *
******************************** ERROR ****************************************
Installation aborted.


I have confirmed that the kernel is available and run the commands (in root shell) mentioned in the readme file and in this forum. However, at that point I get error messages -

LinuxSuse:/usr/src/linux-2.6.18.8-0.9 # make make cloneconfig && make prepare-all

  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:112:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i586-suse-linux/4.1.3/include/syslimits.h:7,
                 from /usr/lib/gcc/i586-suse-linux/4.1.3/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/lib/gcc/i586-suse-linux/4.1.3/include/limits.h:122:61: error: limits.h: No such file or directory


It continues on for many pages before bring up the prompt again.

Any suggestions?



0 Kudos
Message 1 of 13
(9,528 Views)
Hello
What version of the driver are you trying to install?
The most current can be found here.

Let us know if this helps.
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 2 of 13
(9,474 Views)
I had a similar problem with make cloneconfig on opensuse 10.3.
I turned out I had forgotten to install the linux-kernel-headers package.
So on my system I needed:
> rpm -qa | grep kernel
kernel-default-2.6.22.13-0.3
kernel-source-2.6.22.13-0.3
linux-kernel-headers-2.6.22-19
kernel-syms-2.6.22.13-0.3


Matthias
0 Kudos
Message 3 of 13
(9,472 Views)
Christian,
Thanks for your reply,
I had been trying to use 4.1 so I downloaded 4.3, copy to root/temp and run ./INSTALL

The first problem is that it scrolls through the licence and stops at -

   /root/temp/LICENSE.txt lines 296-318/318 (END)  

and will not proceed. I commented out the license line, run again and it then get to -

Continue? [Yn] y

******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.18.8-0.9-default/source does not appear to be
* configured for the 2.6.18.8-0.9-default kernel.
* Configuration of kernel source is required to continue installation.        *
* Refer to the README file for the product you are installing for information *
* about configuring your kernel source.                                       *
******************************** ERROR ****************************************

Installation aborted.

So I go to the install file -
Q2: During installation I get a message similar to the following one:
    "Kernel source does not appear to be configured for the running kernel.
     Configuration of kernel source is required to continue installation."
    I do have kernel sources installed; is there anything else that needs to
    be done?

A2: This problem has been seen on SUSE LINUX Professional 9.1 running the 2.6.5
    kernel or newer versions of SUSE LINUX Professional. However, it is possible
    that other distributions will require similar steps to resolve this problem.

    On SUSE LINUX Professional complete the following steps:
    1. Ensure you have installed kernel-source and kernel-syms packages
       corresponding to the version of the currently running kernel. The version
       of the currently running kernel can be determined by issuing the command
       `uname -r`.

LinuxSuse:~/temp # uname -r
2.6.18.8-0.9-default

Checked in YAST and both are installed
[Do Not Install] kernel-bigsmp                  | 2.6.18.8-0.9     |   79.8 M 
[Keep]           kernel-default                 | 2.6.18.8-0.9     |   58.2 M 
[Do Not Install] kernel-kdump                   | 2.6.18.8-0.9     |   51.0 M 
[Keep]           kernel-source                  | 2.6.18.8-0.9     |  222.1 M 
[Keep]           kernel-syms                    | 2.6.18.8-0.9     |    5.3 M 
[Do Not Install] kernel-xen                     | 2.6.18.8-0.9     |   57.5 M 
[Do Not Install] kernel-xenpae                  | 2.6.18.8-0.9     |   57.6 M 

    2. Change the directory to the /usr/src/linux-<version> directory, where
       <version> corresponds to the currently running kernel version.

done

    3. Run "make cloneconfig" as root to configure the sources for the
       currently running kernel.

I run this and get the error messages starting -
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:112:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i586-suse-linux/4.1.3/include/syslimits.h:7,
                 from /usr/lib/gcc/i586-suse-linux/4.1.3/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:

So this is as far as I can go - those files are not in the sys/ dir - how do I get them there?
0 Kudos
Message 4 of 13
(9,466 Views)
Hi Matthias,
I tried that but I think my problem is further back in the process but I will keep your suggestion for later

Roger
0 Kudos
Message 5 of 13
(9,465 Views)
Can you post the output of "rpm -qa | grep kernel".  Additionally, the license file should open in a pager, you can simply hit q to exit the pager.

Shawn Bohrer
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 6 of 13
(9,458 Views)
Shaun,
Thanks for your assistance.

I had tried many letters to get out of the license screen but not q!
It would be good if it said that on the last line...
Even better if "y"works - as in accepting the license

This is the result of running the command - i hope it helps

LinuxSuse:/usr/src/linux-2.6.18.8-0.9 # rpm -qa | grep kernel
kernel-source-2.6.18.8-0.9
kernel-default-2.6.18.8-0.9
kernel-syms-2.6.18.8-0.9
LinuxSuse:/usr/src/linux-2.6.18.8-0.9 #

Thanks again,
Roger
0 Kudos
Message 7 of 13
(9,453 Views)
I think the problem is what Matthias suggested.  It doesn't look like you have the linux-kernel-headers package installed.  Try installing that package and then run the "make cloneconfig && make modules_prepare" commands in your kernel source directory.  I think that should solve your problem.

Shawn Bohrer
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 8 of 13
(9,448 Views)
Hi,
I mis-understood what Matthias was saying as my understanding of Linux is somewhat limited.

I looked in Yast for linux-kernel-headers available for install and it was not there.
I went to the opensuse site and it was not available for 10.2 but a build number (the same as Matthias used) was there under 10.3

Downloading and installing that and now we have -

kernel-source-2.6.18.8-0.9
linux-kernel-headers-2.6.22-19
kernel-default-2.6.18.8-0.9
kernel-syms-2.6.18.8-0.9

Exactly the same as Matthias.

If that is needed it should be added to the readme.txt file.

Run the make commands and -

LinuxSuse:/usr/src/linux-2.6.18.8-0.9 # make cloneconfig && make modules_prepare
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:112:19: error: stdio.h: No such file or directory

It is still saying those files are missing!

If I do a uname -r  I get

LinuxSuse:/usr/src/linux-2.6.18.8-0.9 # uname -r
2.6.18.8-0.9-default

In fact there is no directory with default as part of the name - is that an issue?

under usr/src/
we have the following sub-dir
packages
linux-2.6.18.8-0.9-obj
linux-obj
linux
linux-2.6.18.8-0.9

I have been running the commands logged in as root in a terminal window in the last directory.

Is there anything else you can sugguest?

Thanks,
Roger



0 Kudos
Message 9 of 13
(9,435 Views)
You can't use the header files for a newer kernel as in 10.3. From
http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/
you can download
linux-kernel-headers-2.6.18.2-3.i586.rpm

Good luck
Matthias
0 Kudos
Message 10 of 13
(9,432 Views)