EDV:LabVIEW-auf-debian/LabVIEW-2014

From KIP Wiki
Revision as of 07:44, 12 November 2014 by Weis (talk | contribs)
⧼kip-jumptonavigation⧽⧼kip-jumptosearch⧽

LabVIEW Version 2014 (Herbst)

als Beispiel hier eine Installation von LabVIEW Version 2014 (Herbst) auf einem 64bit debian wheezy. Das meiste läuft analog zu EDV:LabVIEW-auf-debian/LabVIEW-2013

Vorbereitungen

Die Installations-Skripte erwarten ein richtiges bash, wenn /bin/sh aufgerufen wird, daher

dpkg-reconfigure dash

und mit 'nein' antworten.

Ausserdem

aptitude install alien

deb-Pakete bauen

Zunächst braucht man die rpm-Pakete von der Installations-CD.

1. Problem: die CD ist im HPFS-Format. D.h. ein einfaches Einlegen und anklicken genügt nicht. Daher als root:

[ -d /media/cdrom] || mkdir /media/cdrom
mount -t hfsplus /dev/sr0 /media/cdrom

oder auch

sudo mount -t hfsplus /dev/sr0 /media/cdrom

Die Linux-Dateien sind dann unter /media/cdrom/Linux/LabVIEW Am besten kopiert man sich die Dateien der CD in ein temporäres Verzeichnis.

Dann die Dateien in deb umwandeln. Zu beachten ist hierbei, dass alien normalerweise auf einem 64bit-System i386-Pakete nicht übersetzt. Mit DEB_HOST_ARCH=i386 lässt es sich aber dann doch überreden.

for f in *.rpm ; do DEB_HOST_ARCH=i386 alien --to-deb --keep-version --scripts $f ; done

examples

Die Beispiele müssen noch etwas bearbeitet werden:

DEB_HOST_ARCH=i386 alien -g --keep-version --scripts labview-2014-examples-14.0.0-1.i386.rpm
mv labview-2014-examples-14.0.0/debian labview-2014-examples-14.0.0/DEBIAN
gedit labview-2014-examples-14.0.0/DEBIAN/control

oder ein anderer Editor. Mit dem Editor folgenden Inhalt von control erstellen:

Source: labview-2014-examples
Section: alien
Priority: extra
Maintainer: root <root@tux.kip.uni-heidelberg.de>
Package: labview-2014-examples
Architecture: i386
Depends: 
Version: 14.0.0-1
Description: LabVIEW VI Examples
 Contains a variety of example VI's which demonstrate various aspects
 of programming in G.

und das Paket erstellen:

dpkg -b labview-2014-examples-14.0.0

appbuilder

Genauso kann man auch mit dem appbuilder verfahren:

DEB_HOST_ARCH=i386 alien -g --keep-version --scripts labview-2014-appbuild-14.0.0-1.i386.rpm 
mv labview-2014-examples-14.0.0/debian labview-2014-examples-14.0.0/DEBIAN
gedit labview-2014-appbuild-14.0.0/DEBIAN/control

Mit control:

Source: labview-2014-appbuild
Section: alien
Priority: extra
Maintainer: root <root@tux.kip.uni-heidelberg.de>
Package: labview-2014-appbuild
Architecture: i386
Depends: 
Version: 14.0.0-1
Description: LabVIEW Run-Time Application Builder
 Allows the user to build stand-alone applications using LabVIEW.

und schliesslich

dpkg -b labview-2014-appbuild-14.0.0


Installation

apt-get install lib32gcc1 lib32stdc++6 libc6-i386


dpkg -i labview-2014-core_14.0.0-1_i386.deb labview-2014-desktop_14.0.0-1_i386.deb \
  labview-2014-exe_14.0.0-1_i386.deb labview-2014-pro_14.0.0-1_i386.deb \
  labview-2014-ref_14.0.0-1_i386.deb labview-2014-rte_14.0.0-1_i386.deb \
  labview-2014-help_14.0.0-1_i386.deb labview-2014-examples-14.0.0.deb \
  labview-2014-appbuild-14.0.0.deb


Mit 'labview-2014-appbuild_14.0.0-1_i386.deb' gibt es noch Abhängigkeits-Probleme


CDSim

DEB_HOST_ARCH=i386 alien --to-deb --keep-version --scripts lvsupport2014-cdsimmathscript-14.0.0-f3.i386.rpm
DEB_HOST_ARCH=i386 alien -g --keep-version --scripts lvsupport2014-cdsim-14.0.0-f3.i386.rpm
mv lvsupport2014-cdsim-14.0.0/debian lvsupport2014-cdsim-14.0.0/DEBIAN
gedit lvsupport2014-cdsim-14.0.0/DEBIAN/control
Source: lvsupport2014-cdsim
Section: alien
Priority: extra
Maintainer: root <root@tux.kip.uni-heidelberg.de>
Package: lvsupport2014-cdsim
Architecture: i386
Depends:
Version: 14.0.0-1
Description: LabVIEW 2014 Control Design and Simulation Module
 Contains the files, examples, and help documentation necessary for the LabVIEW Control Design and Simulation Module.
 Post installation steps are required to fully install the lvsupport2014-cdsim package.
 Proper uninstall needs to do steps before removing the lvsupport2014-cdsim package.
 The INSTALL and UNINSTALL scripts provided with the distribution do
 everything for you.
chmod 755 lvsupport2014-cdsim-14.0.0/DEBIAN/preinst
chmod 755 lvsupport2014-cdsim-14.0.0/DEBIAN/prerm
chmod 755 lvsupport2014-cdsim-14.0.0/DEBIAN/postinst
chmod 755 lvsupport2014-cdsim-14.0.0/DEBIAN/postrm
dpkg -b lvsupport2014-cdsim-14.0.0


VI Analyzer

DEB_HOST_ARCH=i386 alien --to-deb --keep-version --scripts lvsupport2014-vianalyzer-14.0.0-f0.i386.rpm

NI Example Finder

DEB_HOST_ARCH=i386 alien -g --keep-version --scripts niexfinder-exe-1.0-35.i386.rpm 
mv niexfinder-exe-1.0/debian niexfinder-exe-1.0/DEBIAN
gedit niexfinder-exe-1.0/DEBIAN/control
Source: niexfinder-exe
Section: alien
Priority: extra
Maintainer: root <root@tux.kip.uni-heidelberg.de>
Package: niexfinder-exe
Architecture: i386
Depends:
Version: 1.0-35
Description: NI Example Finder executable
 Executable for browsing and searching for National Instruments examples.
chmod 755 niexfinder-exe-1.0/DEBIAN/preinst
chmod 755 niexfinder-exe-1.0/DEBIAN/prerm
chmod 755 niexfinder-exe-1.0/DEBIAN/postinst
chmod 755 niexfinder-exe-1.0/DEBIAN/postrm
dpkg -b niexfinder-exe-1.0

NI Web-Pipeline

DEB_HOST_ARCH=i386 alien -g --keep-version --scripts niwebpipelinei-2.0.5-f3.i386.rpm
mv niwebpipelinei-2.0.5/debian niwebpipelinei-2.0.5/DEBIAN
gedit niwebpipelinei-2.0.5/DEBIAN/control
Source: niwebpipelinei
Section: alien
Priority: extra
Maintainer: root <root@tux.kip.uni-heidelberg.de>
Package: niwebpipelinei
Architecture: i386
Depends:
Version: 2.0.5
Description: Dependencies of National Instruments WebPipeline client-side and LabVIEW libraries
 Contains support files for integrating LabVIEW and other National Instruments products with Web Services from ni.com such as Example Finder, Instrument Driver Finder, and User Profiles.
 Post installation steps are required to fully install the niwebpipelinei package.
 Proper uninstall needs to do steps before removing the niwebpipelinei package.
 The INSTALL and UNINSTALL scripts provided with the distribution do
 everything for you.
chmod 755 niwebpipelinei-2.0.5/DEBIAN/preinst
chmod 755 niwebpipelinei-2.0.5/DEBIAN/prerm
chmod 755 niwebpipelinei-2.0.5/DEBIAN/postinst
chmod 755 niwebpipelinei-2.0.5/DEBIAN/postrm
dpkg -b niwebpipelinei-2.0.5