ubuntu-install-ms8.0

参考: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应该也可以,不过我还没有测试)。
另外还需要安装rpm2cpiocsh:

$ 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 /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 directory or press Enter to accept the default directory.

Destination Directory [/home/ms-test/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/deselect a feature or to view its children, type its number:

     1.  [x] LicensePack
     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 complete 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 location:

/home/ms-test/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%         50%         75%        100%
||||||||||||||||||||||||||||||||||||||||||||||||||

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 to Finish or 5 to Redisplay [3] 

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

ms-test@mstest:~/MaterialsStudio80$ cd /home/ms-test/Accelrys/
ms-test@mstest:~/Accelrys$ cd LicensePack/etc
ms-test@mstest:~/Accelrys/LicensePack/etc$ ./lp_config 
ms-test@mstest:~/Accelrys/LicensePack/etc$ ./lp_echovars 
PATH=/home/ms-test/Accelrys/LicensePack/linux/bin:/home/ms-test/bin:/home/ms-test/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ms-test/jdk1.8.0_161/bin ;
export PATH ;
LD_LIBRARY_PATH=/home/ms-test/Accelrys/LicensePack/linux/lib ;
export LD_LIBRARY_PATH ;
ACCELRYS_LIC_PACK_DIR=/home/ms-test/Accelrys/LicensePack ;
export ACCELRYS_LIC_PACK_DIR ;
ACCELRYS_LICENSE_PLATFORM=linux ;
export ACCELRYS_LICENSE_PLATFORM ;
MSI_LICENSE_FILE=/home/ms-test/Accelrys/LicensePack/Licenses ;
export MSI_LICENSE_FILE ;
ms-test@mstest:~/Accelrys/LicensePack/etc$ cd ../../MaterialsStudio8.0/
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 /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] 
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 installation ...

Running ConfigureMaterialsStudio.pl
/home/ms-test/Accelrys/MaterialsStudio8.0/bin/perl: 4: [: /home/ms-test/Accelrys/MaterialsStudio8.0: unexpected operator
../../bin/perl: 4: [: ../..: unexpected operator
/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 output 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 output

     --help     display this help and exit
 -V, --version  output version information and exit

For more details see free(1).
../../bin/perl: 4: [: ../..: unexpected operator
../../bin/perl: 4: [: ../..: unexpected operator
Gateway configuration...
Port 18888 appears to be available right now...
Starting gateway at: 
http://mstest:18888/
/home/ms-test/Accelrys/MaterialsStudio8.0/etc/Gateway/root_default/httpd/bin/apachectl start: httpd started
Gateway start succeeded - running as process 11709.
/home/ms-test/Accelrys/MaterialsStudio8.0/bin/perl: 4: [: /home/ms-test/Accelrys/MaterialsStudio8.0: unexpected operator
Testing gateway installation for script u/dsd_test.pl
Running GET for url http://mstest:18888/dsd/commands/u/dsd_test.pl

It works! ...

This is the simple cgi test output ...
Test succeeded, it appears!


 1) Enter temporary license 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: <1/2/3/99>

Choose one of the above options: 99
Exiting program

测试环境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 /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 directory or press Enter to accept the default directory.

Destination Directory [/home/ms-test/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/deselect a feature or to view its children, type its number:

     1.  [x] LicensePack
     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 complete 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 location:

/home/ms-test/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%         50%         75%        100%
||||||||||||||||||||||||||||||||||||||||||||||||||

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 to Finish or 5 to Redisplay [3] 

Running installation ...

Running ConfigureMaterialsStudio.pl
/home/ms-test/Accelrys/MaterialsStudio8.0/bin/perl: 4: [: /home/ms-test/Accelrys/MaterialsStudio8.0: unexpected operator
../../bin/perl: 4: [: ../..: unexpected operator
/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 output 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 output

     --help     display this help and exit
 -V, --version  output version information and exit

For more details see free(1).
../../bin/perl: 4: [: ../..: unexpected operator
../../bin/perl: 4: [: ../..: unexpected operator
Gateway configuration...
Port 18888 appears to be available right now...
Starting gateway at: 
http://mstest:18888/
/home/ms-test/Accelrys/MaterialsStudio8.0/etc/Gateway/root_default/httpd/bin/apachectl start: httpd started
Gateway start succeeded - running as process 11709.
/home/ms-test/Accelrys/MaterialsStudio8.0/bin/perl: 4: [: /home/ms-test/Accelrys/MaterialsStudio8.0: unexpected operator
Testing gateway installation for script u/dsd_test.pl
Running GET for url http://mstest:18888/dsd/commands/u/dsd_test.pl

It works! ...

This is the simple cgi test output ...
Test succeeded, it appears!


 1) Enter temporary license 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: <1/2/3/99>

Choose one of the above options: 99
Exiting program

你可能感兴趣的:(业余,MS8.0,ubuntu)