参考:1. http://blog.joshuamoesa.com/2015/03/how-to-fix-bundled-jre-is-not-binary.html
2. http://rachpt.top/install-materials-studio-on-ubuntu/
安装需要依赖于JAVA和glibc的32位包,但是在ubuntu中,是没有glibc这个包的,
尤其是在14.04和16.04的64位版本中,所以需要使用如下命令安装:
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
另外java的安装推荐采用oracle java(openjdk应该也可以,不过我还没有测试)。
另外还需要安装rpm2cpio
和csh
:
$ sudo apt-get install csh rpm2cpio
这样依赖就全部安装完成,接下来就可以进入MS8.0的安装目录进行安装.
在ubuntu 14.04里面,第一次进行安装会失败,但是在ubuntu 16.04中,我测试没有出现这个错误:
$ ./install
...
Running installation ...
Running ConfigureMaterialsStudio.pl
/home/ms-test/Accelrys/MaterialsStudio8.0/bin/perl: 4: [: /home/ms-test/Accelrys/MaterialsStudio8.0: unexpected operator
Can't exec "/home/ms-test/Accelrys/LicensePack/etc/lp_echovars": No such file or directory at /home/ms-test/Accelrys/MaterialsStudio8.0/share/Install/Scripts/MSConfig.pm line 295.
Couldn't get environment information from lp_echovars: -1 at /home/ms-test/Accelrys/MaterialsStudio8.0/share/Install/Scripts/MSConfig.pm line 296.
Materials Studio configuration failed
接下来需要去已经安装到的地方,从上面的报错信息可以看到安装目录在$HOME/Accelrys/
中,然后进入目录:
$ cd $HOME/Accelrys/LicensePack/etc/lp_echovars
$ ./lp_config
$ ./lp_echovars
然后在重新进入MS8.0的安装目录,执行安装命令:
$ ./install
即可完成。
测试环境ubunut 16.04完整的安装过程及输出如下(不包含依赖安装过程):
ms-test@mstest:~/MaterialsStudio80$ ./install
Please enter the location in which to install Materials Studio 8.0
The location where Materials Studio will be installed is <install location>/MaterialsStudio8.0
[/home/ms-test/Accelrys]
The Accelrys License Pack is required in order to run Materials Studio 8.0.
Please enter the location of a License Pack installation, or an empty directory
into which the License Pack will be installed.
[/home/ms-test/Accelrys]
/home/ms-test/Accelrys does not appear to contain a supported License Pack installation. Would you like to
install it to that location? [Y/n]
[Y]
Do you wish to start the Gateway service after installation? Answer no here if
you wish to configure security settings before starting. (Y/n)
[Y]
Running LicensePack installation...
Initializing InstallShield Wizard........
Launching InstallShield Wizard........
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
Welcome to the InstallShield Wizard for Accelrys License Pack 7.6.11
The InstallShield Wizard will install Accelrys License Pack 7.6.11 on your
computer.
To continue, choose Next.
Accelrys License Pack 7.6.11
Accelrys Software Inc.
http://www.accelrys.com
Press 1 for Next, 3 to Cancel or 5 to Redisplay [1]
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
Accelrys License Pack 7.6.11 Install Location
Please specify a directo