Linux Users

Highlighted

Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Hi everybody,

I have some trouble when I install NI-VISA 5.2 under OpenSuse.

See below the output of the NI-VISA installer :

Installing NI-VISA for Linux version 5.2.0f0...

Pre Installation .

Post Installation .

Skipping nisvcloc-10.0.1-1.i386.rpm installation, same or newer already installed.

Pre Installation ..................................

Preparing...                          ################################# [100%]

    file /usr/local/natinst from install of nirpci-4.3.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nirpci-4.3.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nirpci-4.3.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nikali-2.3.0-f0.noarch conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nikali-2.3.0-f0.noarch conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nikali-2.3.0-f0.noarch conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nipalki-2.8.1-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nipalki-2.8.1-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nipalki-2.8.1-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nipali-2.8.1-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nipali-2.8.1-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nipali-2.8.1-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of niorbki-1.10.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of niorbki-1.10.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of niorbki-1.10.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of niorbi-1.10.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of niorbi-1.10.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of niorbi-1.10.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nidimki-1.13.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nidimki-1.13.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nidimki-1.13.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nidimi-1.13.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nidimi-1.13.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nidimi-1.13.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nimdbgki-1.11.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nimdbgki-1.11.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nimdbgki-1.11.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nimdbgi-1.11.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nimdbgi-1.11.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nimdbgi-1.11.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nimxdfki-1.12.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nimxdfki-1.12.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nimxdfki-1.12.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of nimxdfi-1.12.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nimxdfi-1.12.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nimxdfi-1.12.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst conflicts between attempted installs of nipxipfki-1.5.1-f0.i386 and nimxdfi-1.12.0-f0.i386

    file /usr/local/natinst from install of nispyi-2.8.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nispyi-2.8.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nispyi-2.8.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst conflicts between attempted installs of nispyi-2.8.0-f0.i386 and nipxipfki-1.5.1-f0.i386

    file /usr/local/natinst from install of nimdnsresponder-2.1.0-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of nimdnsresponder-2.1.0-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of nimdnsresponder-2.1.0-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst from install of niapalerri-2.1.1-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of niapalerri-2.1.1-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of niapalerri-2.1.1-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst conflicts between attempted installs of nipxipfi-1.5.1-f0.i386 and niapalerri-2.1.1-f0.i386

    file /usr/local/natinst from install of niiotracei-3.0.1-f0.i386 conflicts with file from package nitdmsi-2.4.0-f0.i386

    file /usr/local/natinst from install of niiotracei-3.0.1-f0.i386 conflicts with file from package nigmpi-12.0.0-f5.i386

    file /usr/local/natinst from install of niiotracei-3.0.1-f0.i386 conflicts with file from package niwebpipeline20_dep-2.0-5.i586

    file /usr/local/natinst conflicts between attempted installs of niiotracei-3.0.1-f0.i386 and nipxirmi-2.7.3-f0.i386

Error installing NI-VISA for Linux 5.2.0f0.

Installer is aborted.

Could some one can help or debbug the installer ?

Regards Marc

0 Kudos
Message 1 of 13
(9,891 Views)
12 REPLIES 12

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Marc,

It seems that you already have LabVIEW 2012 installed. Is that correct?

Also, I do not believe that any official support for openSUSE 12.3 has been made for NI-VISA 5.2. Have you doen an NI-KAL upgrade already?

Lastly, I wanted to let you know that we are looking into this issue and we will get back to you soon.

Randy

0 Kudos
Message 2 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Randy,

It seems that you already have LabVIEW 2012 installed. Is that correct?

Yes, and I use the NI-VISA 5.2 provide on the CD with LabVIEW 2012.

Also, I do not believe that any official support for openSUSE 12.3 has been made for NI-VISA 5.2.

Yes I know, but it seem I have the same issu with NI-VISA 5.3 downloaded on NI web site and with Fedora 18.

Have you doen an NI-KAL upgrade already?

I think no, but what is NI-KAL ?

I just do a fresh install of openSUSE 12.3, install the kernel-header and the kernel-sources and finally install LV 2012 with no problems and try to install NI-VISA which the installer abort.

Regards Marc

0 Kudos
Message 3 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

NI-KAL is the glue between linux kernel and NI linux kernel modules. The latest is version 2.3.1:

http://joule.ni.com/nidu/cds/view/p/id/3477/lang/en

OpenSUSE 12.3 comes with a kernel that requires changes to NI-KAL.

If you can wait, KAL 2.4 will be released later this year (another 4 months or so) that'll work with this kernel.

If you can't wait, here's the patch you can try. It patches both nikal.c and configure script:

--- //sa/ss/kal/trunk/2.4/source/linux/nikal.c     //sa/ss/kal/trunk/2.4/source/linux/nikal.c#16
+++ //sa/ss/kal/trunk/2.4/source/linux/nikal.c     2013-02-13 14:41:45
@@ -187,6 +187,12 @@ static inline int pci_enable_msi(struct
static inline void pci_disable_msi(struct pci_dev *p) { }
#endif

+#ifdef nNIKAL240_kHasVM_RESERVED
+#define nNIKAL240_kVM_RESERVED VM_RESERVED  /* older */
+#else
+#define nNIKAL240_kVM_RESERVED (VM_DONTEXPAND | VM_DONTDUMP)   /* newer */
+#endif
+
/* ---------------------------------------------------------------------- */
/* typedefs for kernel structures KAL uses */
/* ---------------------------------------------------------------------- */
@@ -2502,7 +2508,7 @@ static int nNIKAL100_mmap(nLinux_fileHan

    if (status >= 0)
    {
-      vma->vm_flags |= VM_RESERVED | VM_LOCKED | VM_DONTCOPY | VM_DONTEXPAND;
+      vma->vm_flags |= nNIKAL240_kVM_RESERVED | VM_LOCKED | VM_DONTCOPY | VM_DONTEXPAND;
    }

    return status;
@@ -2789,7 +2795,7 @@ static int nNIKAL190_vmaPageFaultHandler
{
    nNIKAL100_tUPtr addr = vmf->pgoff << PAGE_SHIFT;
    vmf->page = (nLinux_physicalPage*)nNIKAL100_incrementPageRefcount((void*)addr);
-   return VM_CAN_NONLINEAR;
+   return 0;
}

/* nNIKAL220_vmaPageFaultHandler
@@ -2817,7 +2823,7 @@ static int nNIKAL220_vmaPageFaultHandler

    vmf->page = ((list->flags & nNIKAL220_kPageListContiguous) ? (list->pages[0] + vmf->pgoff) : list->pages[vmf->pgoff]);
    get_page(vmf->page);
-   return VM_CAN_NONLINEAR;
+   return 0;
}
#else
/* nNIKAL100_vmaPageFaultHandler
@@ -3517,7 +3523,7 @@ static nNIKAL100_tStatus nNIKAL100_remap
{
    int status;
    nLinux_vmArea *vma = (nLinux_vmArea*)vmaPtr;
-   vma->vm_flags |= (VM_RESERVED | VM_IO);
+   vma->vm_flags |= (nNIKAL240_kVM_RESERVED | VM_IO);
    /* [mhoogendNOTE;9jun2005]: remap_pfn_range was introduced in 2.6.10 */
    status =
#ifdef nNIKAL100_kRemapPFNRange
--- //sa/ss/kal/trunk/2.4/source/linux/configure     //sa/ss/kal/trunk/2.4/source/linux/configure#2
+++ //sa/ss/kal/trunk/2.4/source/linux/configure     2013-02-13 14:40:45
@@ -96,6 +96,16 @@ else
    echo "no"
fi

+echo -n "Kernel has VM_RESERVED: "
+VM_RESERVED_VARIANT=""
+vm_rsvd=`$GREP -wc VM_RESERVED $headersDir/include/linux/mm.h`
+if [ $vm_rsvd -ne 0 ]; then
+   echo "yes"
+   VM_RESERVED_VARIANT="-DnNIKAL240_kHasVM_RESERVED"
+else
+   echo "no"
+fi
+
echo -n "Kernel struct pci_dev has busn_res member: "
BUSNRES_VARIANT=""
busnres=`$GREP 'struct[[:space:]]\+resource' $headersDir/include/linux/pci.h | $GREP -wc 'busn_res'`
@@ -370,7 +380,7 @@ $USB_TIMEOUT_UNITS_VARIANT $USB_OWNER_VA
$MUTEX_VARIANT $CONFIG_VARIANT $IRQ_REGS_VARIANT $WORKQUEUE_VARIANT \
$IOCTL32_VARIANT $VM_OPS_VARIANT $COMPLETION_VARIANT $KZALLOC_VARIANT \
$GENERATED_DIR_VARIANT $CHAINED_SGL_VARIANT $IOREMAP_WC_VARIANT $PGPROT_WC_VARIANT \
-$CRED_VARIANT`"
+$CRED_VARIANT $VM_RESERVED_VARIANT`"

echo " "
echo "Storing configuration in Makefile.in"
0 Kudos
Message 4 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Hi,

Correct me if I'm wrong, my understanding is: NI-KAL is a small program that prepare the kernel and the kernel modules to install NI-VISA driver for a specific kernel. But if I read the error message (post 1) it seem, the conflic dependancy is between rpm packages install by LV 2012 and rpm packages install by NI-VISA.

Here come my question, what is the link between the kernel, the kernel modules, LV 2012 and NI-VISA ?

Other question to Irwan, what I have to do with your code ? I'm not a newbie in Linux, but I am not a god either

Regards Marc

0 Kudos
Message 5 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Yes, you're right that KAL won't fix the installer conflicts, and has nothing to do with that..

But you will need KAL 2.4 or 2.3.1+that patch if you want it to work with OpenSUSE 12.3.

To apply patch: copy that patch to a text file, say "kal.patch"

cd /usr/local/natinst/nikal/src/nikal/

Then use patch command to apply kal.patch to the files needed. Something like "patch -p99 < kal.patch" .. but you might need to tweak a bit to get the patch applied correctly.

Or.. just wait for KAL 2.4, then you don't have to mess with patches.

Sorry, can't help you with all those conflicts.. the installer stuff isn't my cup-of-tea

0 Kudos
Message 6 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Marc,

It seems openSuSE 12.3 started shipping RPM version 4.10.2. The release notes of RPM version 4.10.0 (http://www.rpm.org/wiki/Releases/4.10.0) indicate that they have made changes to "Detect file conflicts when permissions (user, group, mode) differ".

We are working on what we can do to resolve the issue with our current installers. I will update this post when we have more information.

Randy Hoskin

0 Kudos
Message 7 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Hi Randy,

Ok, and in my opinion, that will be usefull for the futur version of LabVIEW and NI-VISA for Linux.

We have the same issu under Fedora 18 because, the rpm version is the same as openSUSE 12.3

Regards, Marc

0 Kudos
Message 8 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

Hi Randy,

Do you have some issu for this problem ?

Regards Marc.

0 Kudos
Message 9 of 13
(3,547 Views)

Re: Depandancy conflict when installing NI-VISA 5.2 under OpenSuse 12.3

We are trying to determine if we will support openSUSE12.3 for our next release.

To install NI-VISA, besides the KAL patch earlier discussed, you will need to launch the NI-VISA installer by hand and pass it the --noDeps option. Please let me know if you run into additional issues.

Randy

0 Kudos
Message 10 of 13
(3,547 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.