您的位置:首页 > 大数据 > 人工智能

在ubuntu 12.04 RTAI 下安装LABVIEW

2016-09-19 08:07 691 查看
关于详细的安装过程请参考以下两篇文章:

教你在ubuntu下使用labview

Ubuntu
14.04 LTS下安装使用LabVIEW介绍

内核版本:

3.16.0-rtai

问题1:

lb@lb-cnc:/media/LabView.2010.Pro/install$ ./INSTALL

bash: ./INSTALL: 权限不够

解决1:

将安装文件拷贝至当前用户目录下:

lb@lb-cnc:/media/LabView.2010.Pro$ cp -r install /home/lb/LABVIEW2010/

lb@lb-cnc:/media/LabView.2010.Pro$ CP -r runtime_engine /home/lb/LABVIEW2010/

更改文件权限:

lb@lb-cnc:/home/lb/LABVIEW2010/install# sudo chmod a+x INSTALL

执行安装:(需要root权限)

lb@lb-cnc:~/LABVIEW2010/install$ sudo ./INSTALL

问题2:

WARNING!  You do not have glibc2 (libc.so.6) installed.

Because LabVIEW is a multi-threaded application and

requires POSIX 1003.1 pthread support, this library is

a prerequisite for installation.

See the file Glibc2-HOWTO on this CD for information on installing glibc2

from source or binary distribution, or for additional mirror

sites.

Try to proceed anyway? [ny] 

解决2:

查看本机是否真的未安装glibc:

lb@lb-cnc:~/LABVIEW2010/install$ ldd --version

ldd (Ubuntu EGLIBC 2.15-0ubuntu10.15) 2.15

版权所有 (C) 2012 Free Software Foundation, Inc.

这是自由软件;请参考原始码的版权声明。本软件不提供任何担保,甚至不会包括可售性或适用于任何特定目的的担保。

由 Roland McGrath 和 Ulrich Drepper 编写。

从上面的命令可以看到系统已经安装了glibc,但是LABVIEW的安装程序的依赖路径是/lib,而我的安装路径是/lib64,LABVIEW找不到。因此,只需要建一个软连接就可以了。

lb@lb-cnc:~/LABVIEW2010/install$ sudo ln -s /lib64/libc-2.15.so /lib/libc.so.6

问题3:ubantu不能直接安装rpm包。

NI官网说只支持下面的Linux发行版本。

没说支持Ubuntu。

openSUSE 13.1

Red Hat Enterprise Linux Desktop

Scientific Linux

不过既然有Red Hat,那么就可以把RPM压缩包转化成debian形式的.deb包。

lb@lb-cnc:~/LABVIEW2010/install$ sudo apt-get install alien fakeroot

之后就开始转化了,把install文件夹里面的所有的rpm文件都操作一遍:

root@lb-cnc:/home/lb/LABVIEW2010/install# fakeroot alien labview-2010-appbuild-10.0.0-1.i386.rpm

其它的软件包也这样操作。

安装过程中出现的问题:(暂未解决)

root@lb-cnc:/home/lb/LABVIEW2010/install# fakeroot alien niexfinder-labview-2010-10.0.0-1.i386.rpm 

Warning: Skipping conversion of scripts in package niexfinder-labview-2010: preinst

Warning: Use the --scripts parameter to include the scripts.

chmod: 无法访问"niexfinder-labview-2010-10.0.0/./usr/local/natinst/share/example": 没有那个文件或目录

chmod: 无法访问"finder": 没有那个文件或目录

chmod: 无法访问"niexfinder-labview-2010-10.0.0/./usr/local/natinst/share/example": 没有那个文件或目录

chmod: 无法访问"finder/1.0/bin": 没有那个文件或目录

niexfinder-labview-2010_10.0.0-2_i386.deb generated

之后就开始依次安装deb包:

dpkg -i labview-2010-core_10.0.0-2_i386.deb

......

安装结束后,从下面目录双击"labview"执行即可。
/usr/local/natinst/LabVIEW-2010

不过安装好后界面字体很难看,不知道能不能改一下。

最后我在NI的官网上查到一个解决办法,可以参考一下:https://decibel.ni.com/content/docs/DOC-16018

To fix the problem, install the xfonts-75dpi and xfonts-100dpi packages. In order to go through with this installation, you can run the following command at the terminal and then reboot the PC:

sudo apt-get install xfonts-75dpi xfonts-100dpi

Just to add. If you come from non-english speaking country (like me) you better use transcoded fonts because it contains also special signs.

The command for the terminal would look like this:

sudo apt-get install xfonts-75dpi-transcoded xfonts-100dpi-transcoded
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubantu labview