1、1 Materials Studio for Linux安装教程 软件版本: Materials Studio 8.0 操作系统 : CentOS 7 x86_64 1161 普通 账户 : zwz 红字字体为敲入的代码或修改的内容,蓝色字体为注意事项,紫色字体为补充说明 1. 安装前 的 准备 将 MS软件、 证书 和库文件 拷贝或上传至普通用户 的根 目录 zwzzifeng $ ls glibc-2.17-157.el7.i686.rpm libgcc-4.8.5-11.el7.i686.rpm libstdc+-4.8.5-11.el7.i686.rpm Materials Studi
2、o80.tgz msi.lic Music perl5 Pictures Public Templates Videos 切换至 root用户 zwzzifeng $ su Password: 检查主机名 rootzifeng zwz# hostname zifeng 修改 hosts文件 rootzifeng zwz# vi /etc/hosts 127.0.0.1 zifeng localhost localhost.localdomain localhost4 localhost4.localdomain4 :1 localhost localhost.localdomain local
3、host6 localhost6.localdomain6 关闭防护墙 rootzifeng zwz# systemctl stop firewalld.service rootzifeng zwz# systemctl disable firewalld.service Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service. 当操作系统为 Cen
4、tOS 6等 时,如下执行: rootzifeng zwz# service iptables stop rootzifeng zwz# chkconfig iptables off 更改 SELiunx为 disabled rootzifeng zwz# vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enf
5、orced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, 2 # minimum - Modification of targeted policy. Only selected processes are pr
6、otected. # mls - Multi Level Security protection. SELINUXTYPE=targeted 检查库文件是否齐全 rootzifeng zwz# rpm -qa|grep libgcc libgcc-4.8.5-11.el7.x86_64 rootzifeng zwz# rpm -qa|grep glibc compat-glibc-2.12-4.el7.centos.x86_64 glibc-devel-2.17-157.el7.x86_64 glibc-common-2.17-157.el7.x86_64 compat-glibc-heade
7、rs-2.12-4.el7.centos.x86_64 glibc-headers-2.17-157.el7.x86_64 glibc-2.17-157.el7.x86_64 rootzifeng zwz# rpm -qa|grep libstdc+ libstdc+-4.8.5-11.el7.x86_64 libstdc+-devel-4.8.5-11.el7.x86_64 要求这三个库文件的 32位、 64为位程序都安装, 发现缺少 32位 libgcc-4.8.5-11.el7.i686、 glibc-2.17-157.el7.i686和 libstdc+-4.8.5-11.el7.i6
8、86程序 。 安装库文件 rootzifeng zwz# rpm -ivh libgcc-4.8.5-11.el7.i686.rpm Warning: libgcc-4.8.5-11.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing. # 100% Updating / installing. 1:libgcc-4.8.5-11.el7 # 100% 由于 yum 初始化安装时,安装了旧版本的 GPG keys,不能正常安装 glibc-2.17-157.el7.i686.rpm 和li
9、bstdc+-4.8.5-11.el7.i686.rpm, 解决方法如下: 首先 , 引入已安装的 public key rootzifeng zwz# rpm -import /etc/pki/rpm-gpg/RPM* 再强制安装 glibc-2.17-157.el7.i686.rpm和 libstdc+-4.8.5-11.el7.i686.rpm rootzifeng zwz# rpm -ivh glibc-2.17-157.el7.i686.rpm -force -nodeps Preparing. # 100% Updating / installing. 1:glibc-2.17-1
10、57.el7 # 100% rootzifeng zwz# rpm -ivh libstdc+-4.8.5-11.el7.i686.rpm -force -nodeps Preparing. # 100% Updating / installing. 1:libstdc+-4.8.5-11.el7 # 100% 缺少 的 库文件可以在 CentOS 7的安装包 (解压 CentOS x86_64 Everything 1611.iso)中找到。 不同版本的Linux 操作系统所需要的库文件不同,视具体情况而定。 若服务器能联网, 也可 采用 下列 方式安装 缺少 的 库 文件: 3 rootz
11、ifeng zwz# yum install libgcc.i686 rootzifeng zwz# yum install glibc.i686 rootzifeng zwz# yum install libstdc+.i686 重启 服务器 rootzifeng zwz# reboot 2. 安装 Materials Studio 以普通用户登录,解压安装包 Materials Studio 8.0 for Linux.tgz zwzzifeng $ tar -zxvf MaterialsStudio80.tgz MaterialsStudio80/ MaterialsStudio80/M
12、aterialsStudio_InstallGuide.js MaterialsStudio80/MaterialsStudio_InstallGuide.htm 进入解压后的 MaterialsStudio80 文件夹,运行 install 命令进行安装,安装采用默认设置,回车下一步 zwzzifeng MaterialsStudio80$ cd MaterialsStudio80 zwzzifeng MaterialsStudio80$ ./install Performing per-user installation of Materials Studio 8.0. Restart t
13、his installation as root if you wish to perform an RPM-based installation. Please enter the location in which to install Materials Studio 8.0 The location where Materials Studio will be installed is /MaterialsStudio8.0 /home/zwz/Accelrys The Accelrys License Pack is required in order to run Material
14、s 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/zwz/Accelrys /home/zwz/Accelrys does not appear to contain a supported License Pack installation. Would you like to install it to that location? Y/n Y Do
15、 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 4 /home/zwz/MaterialsStudio80/LicensePack/lp_setup_linux.sh
16、: line 1735: warning: here-document at line 1735 delimited by end-of-file (wanted /dev/null) - 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.
17、 To continue, choose Next. Accelrys License Pack 7.6.11 Accelrys Software Inc. http:/ 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 directory or press Enter to accept the default
18、directory. Destination Directory /home/zwz/Accelrys Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay 1 - Accelrys License Pack 7.6.11 - InstallShield Wizard Select the features for “Accelrys License Pack 7.6.11“ you would like to install: Accelrys License Pack 7.6.11 To select/deselec
19、t a feature or to view its children, type its number: 1. x LicensePack 5 2. Compatibility LicensePack The Compatibility LicensePack is required for supporting Accelrys software shipped with License Packs 6.x or lower and to support IRIX and Solaris platforms. See License Pack documentation for compl
20、ete list of Accelrys software supported by this License Pack. Other options: 0. Continue installing Enter command 0 Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay 1 - Accelrys License Pack 7.6.11 - InstallShield Wizard Accelrys License Pack 7.6.11 will be installed in the following
21、location: /home/zwz/Accelrys/LicensePack with the following features: LicensePack for a total size: 157.7 MB Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay 1 - Accelrys License Pack 7.6.11 - InstallShield Wizard Installing Accelrys License Pack 7.6.11. Please wait. |-|-|-|-| 0% 25%
22、50% 75% 100% | 6 Creating uninstaller. Finalizing the Vital Product Data Registry. Please wait. Configuring License Pack - Accelrys License Pack 7.6.11 - InstallShield Wizard The InstallShield Wizard has successfully installed Accelrys License Pack 7.6.11. Choose Finish to exit the wizard. Press 3 t
23、o Finish or 5 to Redisplay 3 Running installation . Running ConfigureMaterialsStudio.pl /usr/bin/free: invalid option - o Usage: free options Options: -b, -bytes show output in bytes -k, -kilo show output in kilobytes -m, -mega show output in megabytes -g, -giga show output in gigabytes -tera show o
24、utput in terabytes -h, -human show human-readable output -si use powers of 1000 not 1024 -l, -lohi show detailed low and high memory statistics -t, -total show total for RAM + swap -s N, -seconds N repeat printing every N seconds -c N, -count N repeat printing N times, then exit -w, -wide wide outpu
25、t -help display this help and exit -V, -version output version information and exit For more details see free(1). 7 Gateway configuration. Port 18888 appears to be available right now. Starting gateway at: http:/zifeng:18888/ /home/zwz/Accelrys/MaterialsStudio8.0/etc/Gateway/root_default/httpd/bin/a
26、pachectl start: httpd started Gateway start succeeded - running as process 10355. Testing gateway installation for script u/dsd_test.pl Running GET for url http:/zifeng:18888/dsd/commands/u/dsd_test.pl It works! . This is the simple cgi test output . Test succeeded, it appears! 1) Enter temporary li
27、cense password 2) Set connection to license server 3) List command line license administration tools 99) Finished with license configuration Choose one of the above options: Invalid response. Choices are: Choose one of the above options: 99 Exiting program 修改证书的 hostname zwzzifeng MaterialsStudio80$
28、 cd zwzzifeng $ vi msi.lic SERVER zifeng ANY 25100 VENDOR msi 复制证书至 Licenses目录 zwzzifeng $ cp msi.lic Accelrys/LicensePack/Licenses/ 启动 Licenses服务 zwzzifeng $ cd Accelrys/LicensePack/etc/ zwzzifeng etc$ ls lp_archiver lp_cshrc lp_env_cleanup lp_lmenv lp_plat_cshrc lp_server_check lp_config lp_echova
29、rs lp_ldenv lp_mpi_vars lp_profile zwzzifeng etc$ . lp_profile zwzzifeng etc$ lp_server -s Attempting to start the server. Server has been started. 8 Run lp_set_env OR csh: source /home/zwz/Accelrys/LicensePack/etc/lp_cshrc sh: . /home/zwz/Accelrys/LicensePack/etc/lp_profile to refresh shell license
30、 administration environment setup. 3. 安装后的操作 添加 Gateway服务 至 开机自启动列表 zwzzifeng etc$ cd zwzzifeng $ su Password: rootzifeng zwz# cd Accelrys/MaterialsStudio8.0/etc/Gateway/ rootzifeng Gateway# cp ./msgateway_control_18888 /etc/rc.d/init.d/ rootzifeng Gateway# chkconfig -add msgateway_control_18888 添加
31、Licenses服务至开机自启动列表 rootzifeng Gateway# pwd /home/zwz/Accelrys/MaterialsStudio8.0/etc/Gateway rootzifeng Gateway# vi /etc/rc.d/rc.local #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot inst
32、ead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run chmod +x /etc/rc.d/rc.local to ensure # that this script will be executed during boot. touch /var/lock/subsys/local . /home/zwz/Accelrys/MaterialsStudio8.0/etc/lp_profile lp_server s 备注: 不同版本 Materials Studio在 不同版本 Linux操作系统上 的 安装 方法 大同小异, 不同版本的 Linux系统所需要的库文件有所不同, 导入 msi证书 时 需 注意 Hostname(主机名 )。