Hello,
After an initial abortive experience with installing LabVIEW 8.2 on Kubuntu 7.04, I decided to bite the bullet, reformat the lab machine and install Fedora Core 7 on it. The hope was that since Fedora uses rpm as its packaging format, it might be better suited to handling the installation foibles of LabVIEW.
Well, I was partly right. Things seemed to go normal until LabVIEW install issued the following error messages :
******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.21-1.3194.fc7/source does not appear to be
* for the 2.6.21-1.3194.fc7 kernel.
* Ensure that kernel source for the 2.6.21-1.3194.fc7 kernel is installed
* and configured. Refer to the README file for the product you are *
* installing for information about configuring your kernel source. *
******************************** ERROR ****************************************
Now, I did have kernel-devel package installed. Then I remembered reading that LabVIEW has a problem with the new more efficient 4K stacks option of the kernel, which indeed was present in the .config of the default Fedora kernel above. And my own past experience with LabVIEW 7.1 on Debian has taught me that LabVIEW does not respond well to the presence of EXTRAVERSION strings in the kernel Makefile. So, I downloaded kernel 2.6.22 from www.kernel.org, copied the config file for Fedora 2.6.22.1-27.fc7 kernel, ran make xconfig, removed 4K stacks option and compiled. Now when I retried completing my LabVIEW 8.2 installation, I get :
By installing LabVIEW software packages, you agree to the terms of the included
NI Software License Agreement (LICENSE.txt). Type 'v' to view the agreement,
'y' to consent to the agreement, or 'n' to decline the agreement and skip
LabVIEW installation. [Vynq] y
NOTE: LabVIEW will install by default in /usr/local/natinst/LabVIEW-8.2,
or in the natinst/LabVIEW-8.2 subdirectory if you specify an alternate location.
Preparing for installation...
C runtime library (glibc) version: 2.6.
Red Hat Package Manager (RPM) version: 4.4.2.
Please indicate whether you would like to install the following components:
All available LabVIEW packages have already been installed or cannot
be installed due to package conflicts.
Package niexfinder-base-1.0-7 is already installed.
Would you like to install the LabVIEW web browser plugin? [Ynq] y
Checking for Mozilla/Firefox/Netscape 6+ installation...
Copying plugin to /usr/lib/mozilla/plugins
LabVIEW package installation complete.
LabVIEW installation complete.
================================================================================
Beginning hardware driver installation.
Depending on your system configuration, some drivers may require you to reboot
after installation before you can access the driver.
Note that some drivers may require the Linux kernel source to be installed.
This can be found on your Linux distribution install CD as a package called
'kernel-source'. Make sure to install the version matching the kernel you are
running. If you need to install kernel source, press 'q' to abort installation,
and re-run this install script after you have installed the kernel source.
Would you like to install NI-VISA (4.0) for GNU/Linux? [Ynq] y
**********************************
* NI-VISA 4.0.0 for Linux/x86
**********************************
rpm 4.4.2 will be used with a default installation path
National Instruments products support the following Linux distributions:
Mandriva Linux
SUSE Linux
Red Hat Enterprise Linux WS
Refer to readme.txt for the latest information at the time of release.
Refer to www.ni.com/linux for the most recent information about Linux
support at National Instruments.
Continue? [Yn] y
Retrieving license agreement. Please wait...
NATIONAL INSTRUMENTS SOFTWARE LICENSE AGREEMENT (LINUX DRIVER SOFTWARE)
<mega snip>
By installing this software, you are acknowledging acceptance
of the terms of the included license file (LICENSE.txt).
Do you accept the license? [ynq] y
Searching for installed components ...
Do you wish to install NI-VISA Runtime 4.0.0? [Ynq] y
Do you wish to install NI-VISA Development 4.0.0? [Ynq] y
Do you wish to install NI-VISA Configuration 4.0.0? [Ynq] y
Do you wish to install NI-VISA Server 4.0.0? [Ynq] y
Do you wish to install PXI Services 1.6.0? [Ynq] y
Do you wish to install NI Spy 2.4.0? [Ynq] y
NI-VISA Development 4.0.0 requires CVI Runtime 8.0.
NI-VISA Configuration 4.0.0 requires CVI Runtime 8.0.
This component has been selected automatically.
NI-VISA Runtime 4.0.0 requires NI-ORB 1.5.0.
PXI Services 1.6.0 requires NI-ORB 1.5.0.
This component has been selected automatically.
PXI Services 1.6.0 requires NI-DIM 1.5.0.
This component has been selected automatically.
NI-ORB 1.5.0 requires NI-RPC 3.3.0.
This component has been selected automatically.
NI-VISA Runtime 4.0.0 requires NI-PAL 1.11.1.
PXI Services 1.6.0 requires NI-PAL 1.11.1.
NI-DIM 1.5.0 requires NI-PAL 1.11.1.
NI-ORB 1.5.0 requires NI-PAL 1.11.1.
This component has been selected automatically.
NI-PAL 1.11.1 requires NI-KAL 1.4.0.
This component has been selected automatically.
NI-VISA Development 4.0.0 requires LabVIEW Runtime 8.0.1.
NI Spy 2.4.0 requires LabVIEW Runtime 8.0.1.
This component has been selected automatically.
The following components will be installed using rpm:
NI-VISA Runtime 4.0.0 5703 KB (in /usr/local/vxipnp)
NI-VISA Development 4.0.0 4477 KB (in /usr/local/vxipnp)
NI-VISA Configuration 4.0.0 658 KB (in /usr/local/vxipnp)
NI-VISA Server 4.0.0 227 KB (in /usr/local/vxipnp)
PXI Services 1.6.0 791 KB (in /usr/local/natinst/nipxi)
NI Spy 2.4.0 2171 KB (in /usr/local/natinst/nispy)
CVI Runtime 8.0 8510 KB (in /usr/local/natinst/cvirte)
LabVIEW Runtime 8.0.1 32695 KB (in /usr/local/lib/LabVIEW-8.0)
NI-ORB 1.5.0 459 KB (in /usr/local/natinst/.nicore)
NI-DIM 1.5.0 594 KB (in /usr/local/natinst/.nicore)
NI-RPC 3.3.0 102 KB (in /usr/local/natinst/.nicore)
NI-PAL 1.11.1 1768 KB (in /usr/local/natinst/nipal)
NI-KAL 1.4.0 229 KB (in /usr/local/natinst/nikal)
Total space required: 58384 KB
Space available: 12276628 KB
Continue? [Yn] y
******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.22/source does not appear to be
* for the 2.6.22 kernel.
* Ensure that kernel source for the 2.6.22 kernel is installed
* and configured. Refer to the README file for the product you are *
* installing for information about configuring your kernel source. *
******************************** ERROR ****************************************
Installation aborted.
Would you like to install NI-GPIB (NI-488.2 2.5.1) for GNU/Linux? [Ynq] n
View the LabVIEW 8.2 Upgrade Notes now? [Yn] n
Installation complete.
I would really appreciate it if Shaun or someone else could point out what is going on. The error message above is obviously wrongly triggered as I compiled 2.6.22 from source myself (which is sitting symlinked to /usr/src/linux in /usr/src/linux-2.6.22).
I do remember that a long time ago there was some issue with LabVIEW 7.1 with respect to the asm_offsets.h file, but I have completely forgotten about that, and assume that LabVIEW 8.2 would have a work around that problem.
My kernel .config (gzipped) is attached, should that help in narrowing down the issue.