Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

linux and NI USB 6008

hello !

I am running Ubuntu (I know that Ubuntu is not officaly supported by NI but I do not have the choice of the distribution...) and I want to install the drivers of the NI-USB 6008, but I have some problems ! The installation script does not work :

error: Failed dependencies:
        kernel >= 2.4.0 is needed by nikali-1.4.0-f0.i386
        /bin/sh is needed by nikali-1.4.0-f0.i386
        /bin/sh is needed by nipali-1.11.1-f0.i386
        /bin/sh is needed by nirpci-3.3.0-f0.i386
        /bin/sh is needed by niorbi-1.5.0-f0.i386
        /bin/sh is needed by nidimi-1.5.0-f0.i386
        /bin/sh is needed by nipxirmi-1.6.0-f0.i386
        ld-linux.so.2 is needed by nipxirmi-1.6.0-f0.i386
        libdl.so.2 is needed by nipxirmi-1.6.0-f0.i386
        libc.so.6(GLIBC_2.0) is needed by nipxirmi-1.6.0-f0.i386
        libc.so.6(GLIBC_2.1) is needed by nipxirmi-1.6.0-f0.i386
        libc.so.6(GLIBC_2.1.3) is needed by nipxirmi-1.6.0-f0.i386
        libc.so.6(GLIBC_2.2) is needed by nipxirmi-1.6.0-f0.i386
        libdl.so.2(GLIBC_2.0) is needed by nipxirmi-1.6.0-f0.i386
        libdl.so.2(GLIBC_2.1) is needed by nipxirmi-1.6.0-f0.i386
        libpthread.so.0(GLIBC_2.0) is needed by nipxirmi-1.6.0-f0.i386
        libpthread.so.0(GLIBC_2.1) is needed by nipxirmi-1.6.0-f0.i386
        /bin/sh is needed by nicvirte-8.0-5.i386
        /bin/sh is needed by labview80-rte-8.0.1-1.i386
        /bin/sh is needed by nivisa-4.0.0-f0.i386
        /bin/sh is needed by nivisa-devel-4.0.0-f0.i386
        /bin/sh is needed by nivisa-config-4.0.0-f0.i386
        /bin/sh is needed by nivisaserver-4.0.0-f0.i386
        /bin/sh is needed by nispyi-2.4.0-f0.i386

Running NI-KAL Post Installation Script ...

******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.20-16-generic/build does not appear to be
* for the 2.6.20-16-generic kernel.
* Ensure that kernel source for the 2.6.20-16-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 ****************************************
./uninstall.sh: line 13: Makefile.in: No such file or directory




But all is ok... and should work !

So, I convert the .rpm packages to .deb packages then I install the .deb and when I run 'lsdaq' :

--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
/usr/local/bin/lsdaq: line 7: 14722 Aborted                 /etc/natinst/nidaqmxbase/bin/daqmxbase_listdevices
--------------------------------

the niSystemReport show :

/usr/local/bin/niSystemReport version 1.4.0f0

********************************************************************************
/bin/uname -a:
Linux jay 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
********************************************************************************

********************************************************************************
/etc/lsb-release:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.04
DISTRIB_CODENAME=feisty
DISTRIB_DESCRIPTION="Ubuntu 7.04"
********************************************************************************
******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.20-16-generic/build does not appear to be
* for the 2.6.20-16-generic kernel.
* Ensure that kernel source for the 2.6.20-16-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 ****************************************

********************************************************************************
/usr/local/natinst/nikal/src make:
Makefile:11: Makefile.in: No such file or directory
make: *** No rule to make target `Makefile.in'.  Stop.
********************************************************************************
/home/gardet/CD

********************************************************************************
/usr/bin/tail /var/log/messages:
Jun 18 10:58:42 jay niusb9161dlfw: [libnipalu.so.1.11]  Warning: source/package/posix/ulibEntry.cpp:191 - initialize: unable to load NI-PAL. status=-50204
Jun 18 10:58:53 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/lib/linux/linLoadKern.cpp:168 - libKernelDriverLoad: Failed to open nipalk, errno: 2
Jun 18 10:58:53 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/initcln/initcln.cpp:147 - Posix: Init kInitClnPackage: kernelDriver: failed! status=-50204
Jun 18 10:58:53 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/package/posix/ulibEntry.cpp:191 - initialize: unable to load NI-PAL. status=-50204
Jun 18 10:58:56 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/lib/linux/linLoadKern.cpp:168 - libKernelDriverLoad: Failed to open nipalk, errno: 2
Jun 18 10:58:56 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/initcln/initcln.cpp:147 - Posix: Init kInitClnPackage: kernelDriver: failed! status=-50204
Jun 18 10:58:56 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/package/posix/ulibEntry.cpp:191 - initialize: unable to load NI-PAL. status=-50204
Jun 18 11:04:28 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/lib/linux/linLoadKern.cpp:168 - libKernelDriverLoad: Failed to open nipalk, errno: 2
Jun 18 11:04:28 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/initcln/initcln.cpp:147 - Posix: Init kInitClnPackage: kernelDriver: failed! status=-50204
Jun 18 11:04:28 jay daqmxbase_listdevices: [libnipalu.so.1.11]  Warning: source/package/posix/ulibEntry.cpp:191 - initialize: unable to load NI-PAL. status=-50204
********************************************************************************
/usr/local/natinst/nikal/src/Makefile.in: File not found!!!
/usr/local/bin/niSystemReport: line 95: /usr/local/natinst/nikal/src/Makefile.in: No such file or directory




If someone know what I have to do...

Guillaume.

0 Kudos
Message 1 of 6
(8,264 Views)
Hi,

I don't know anything about using DAQ card under Linux, but I know
something about Linux and Ubuntu.

Looking at the error report shows that you have to install some libraries,
libc.so.6, ld-linux.so.2 and some others. I don't understand why it indicates
that you don't have bourne shell, but you can try to install that one also.

So, use your package manager(apt, aptitude, synaptic) to install the missing
packages. This might solve your problem.

I don't know if Ubuntu uses a non-standard kernel and the installation script
does not work with it. The error report instructs to look at the README file
for instructions on how to configure your kernel. You might need to compile
a new kernel.

Like I said, I don't have much information about this stuff, but hopefully I gave
you some ideas on what to try for a fix. Keep posting your current state here,
and I (and hopefully others) will try to help you.
0 Kudos
Message 2 of 6
(8,253 Views)
Of course the first error is your kernel is not new enough.

    kernel >= 2.4.0 is needed by nikali-1.4.0-f0.i386

You probably need the 2.6 kernel for that version of the driver.

Scott
0 Kudos
Message 3 of 6
(8,113 Views)
It was not the problem ! I was running the kernel 2.6.20.

I managed to install all. I converted the *.rpm packages to *.deb and I made my own script to install the packages and load the drivers in the kernel.

If someone is interested, he can contact me.

Guillaume.

Message Edité par GuillaumeG le 07-30-2007 09:54 AM

0 Kudos
Message 4 of 6
(8,050 Views)
Bonjour GuliaumeG,

I'd really apreciate your help, for I need to use the USB-6008 with Ubuntu.

Please reply to this message and I send you my emailadress - there seems to be no PM-function here...

Thanks alot,

Johannes
0 Kudos
Message 5 of 6
(7,817 Views)

GuillaumeG, I've recently been given a copy to evaluate of labview 2009 for Linux. I've got that installed no problem on ubuntu 8.04LTS All I need now is VISA drivers for serial which I think I got working just my serial doesn't come up, which could be a Linux issue that I have not yet checked. And of course the NI-DaqMX for the USB-6008. I would be grateful if you could send me a copy of your scripts?

 

If anyone else received his scripts please forward to me if possible. Thanks.

- A minute saved is a Minute earned!
0 Kudos
Message 6 of 6
(6,297 Views)