Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

how to install NI 488.2 on ubuntu 8.10

Hi all

       I need to install a gpib card on a linux machine to program an old tektronix HFS machine using a c program.

I have been following all the related posts with regard to the installation procedure. I dont have much experience with intsalling stuff on linux however I think all the how tos have taught me a lot.

ok I downloded the ni488225L.iso and extracted it.

the kernel version is 2.6.28-15-generic (uname-r)

and  gcc version 4.3.3

after linking bash to sh

i ran the installer script

sudo sh INTALL --nodeps

and I get the error

* Kernel source in /lib/modules/2.6.28-15-generic/build does not appear to be
* for the 2.6.28-15-generic kernel.
* Ensure that kernel source for the 2.6.28-15-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 ****************************************

however when I checked through the synaptic I have the correct linux header installed for this version of the kernel

output of

ls -d /lib/modules/$(uname -r)/build
/lib/modules/2.6.28-15-generic/build

then I tried installing each of the rpms indivisually by

following

http://forrestbao.blogspot.com/2006/10/labview-7-installation-error-solutions.ht ml

and i got the folder  under /usr/local/natinst ls -la

drwxrwxr-x 10 root root 4096 2009-09-13 19:58 ni4882
drwxrwxr-x  5 root root 4096 2009-09-13 19:10 nikal
drwxrwxr-x  7 root root 4096 2009-09-13 19:11 nipal
drwxrwxr-x  7 root root 4096 2009-09-13 20:00 nispy
drwxr-xr-x  7 root root 4096 2009-09-13 20:12 share

no the problem is if i do modprobe nikal I get

* Kernel source in /lib/modules/2.6.28-15-generic/build does not appear to be
* for the 2.6.28-15-generic kernel.
* Ensure that kernel source for the 2.6.28-15-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 ****************************************

even if i do /src./configure i get

* Kernel source in /lib/modules/2.6.28-15-generic/build does not appear to be
* for the 2.6.28-15-generic kernel.
* Ensure that kernel source for the 2.6.28-15-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 ****************************************

Can you please suggest as to what should I do to solve this problem and finally install the GPIB card

output of   lspci | grep GPIB

01:09.0 Communication controller: National Instruments PCI-GPIB (rev 02)
so the device is detecte

0 Kudos
Message 1 of 8
(6,532 Views)

Hi

Plese follow these steps:

With alien we will change *.rpm to *.deb. With dkpg command we will install the deb package.

# alien nikali-1.10.0-f0.noarch.rpm

# dpkg -i nikali_1.10.0-f0_all.deb

If there is something different in this tutorial from my previous one it is the fact that, some packages are going to create a scripts named *InstallerUtility.sh. where * is the name of package installed. We must find and execute these scripts after each dpkg.

# cd /usr/local/natinst/nikal/bin
# ./nikaliInstallerUtility.sh
# ./installerUtility.sh
# ./updateNIDrivers
Reboot? yes

After it, check it that module nikal is working:

# modprobe nikal

NI488.2 INSTALLATION

The next step is to install NI488.2, first download NI-488.2-beta-2.5 and follow the same steps that we follow with nikal, remember unpackage  NI-488.2-beta-2.5.1b1.tar.gz.

# cd /home/vicente/Escritorio/NI4882/NI-488.2-beta-2.5.1b1
# ./INSTALL --nodeps

After to install using the method ./INSTALL --nodeps it appears errors post installation. At this moment if you check it nikal you will find that nikal isn't working. Don't worry follow these steps:

# cd /home/vicente/Escritorio/nikal/tmp/nikal-1.10.0f0/rpms

# dpkg -P nikali
# dpkg -i nikali_1.10.0-f0_all.deb
# cd /usr/local/natinst/nikal/bin
# ./nikaliInstallerUtility.sh
# ./installerUtility.sh
# ./updateNIDrivers
Reboot? yes


Right after it, you can check it that you have installed nikal, nipalk, gpibrtk and a new demon nipal.

# modprobe nikal

# modprobe nipalk
# modprobe gpibprtk
# /etc/init.d/nipal restart (appears a error but nipal is working)

I know that it is a pretty peculiar  method  (even for a human beings) but works. For example if you have a PCI/GPIB card you can test it writting up this

# gpibtsw

What happens after gpibtsw?

0 Kudos
Message 2 of 8
(4,270 Views)

hey thanks Vicente Muñoz:

ok I was finally installed nikal 1.10, I realized that earlier I was trying to install NIkal 1.8 and 1.9 but neithe rof them worked. the nikal modul also got loaded correctly.

however now I have a different problem.

when I try to install ni488.2 and run the ./INSTALL--nodeps

it lists the entire package lists and says that they are already installed, however I deleted the package folders for nipal etc from /local/user/natinst and /etc/natinst.. now the problem is that I cant install these packages from the install script  because it thinks that those packges are installed however they are not since I deleted them.

0 Kudos
Message 3 of 8
(4,270 Views)

Hi tanuj22

Please forget it the script install, The people who made it, were not thinking about Ubuntu Distro at that very moment.

The script is for Suse, Red Hat and Mandriva, and I'm not going to talking about the reason of this because I'm very tired of discussing about the topic

and I know that people of NI (Bohrer,NeilS,etc) too.

Please follow my last tutorial till installation of NI488.2 (Don't follow Visa Installation, there is a error that I'm trying to solve).

Good luck

0 Kudos
Message 4 of 8
(4,270 Views)

hey that is what I did but even you are using the install script to install ni4888.2 right, I was able to install nikal. but now when i do

lsmod | grep ni
     69576  0

sudo modprobe nipalk
FATAL: Module nipalk not found.

0 Kudos
Message 5 of 8
(4,270 Views)

Ok,

did you install these packages before?

# apt-get install linux-headers-2.6.24-24-generic
# apt-get install alien

Remenber that your kernel is diferent

And right after it

# cd /bin
# ln -s bash sh

cheers

0 Kudos
Message 6 of 8
(4,270 Views)

why do i need

apt-get install linux-headers-2.6.24-24-generic

i have the headers installed for my kernel 2.6.28-15-general

0 Kudos
Message 7 of 8
(4,270 Views)

HI

Sorry, you need the headers for your kernel. In your case.

apt-get install linux-headers-2.6.28-15-general

did you install?

What happens after...?

# alien nikali-1.10.0-f0.noarch.rpm

# dpkg -i nikali_1.10.0-f0_all.deb

# cd /usr/local/natinst/nikal/bin
# ./nikaliInstallerUtility.sh
# ./installerUtility.sh
# ./updateNIDrivers
Reboot? yes

Let me see the errors messages?

Did you download the version  download NI-488.2-beta-2.5 ?

Sorry if I seem a little paranoid.

Regards

0 Kudos
Message 8 of 8
(4,270 Views)