当前位置:文档之家› MS在linux的安装过程

MS在linux的安装过程

MS在linux的安装过程
MS在linux的安装过程

Linux下安装MS 3.1

整理:wsilei lying zbaohui

一、安装MS前的准备:

在根用户下创建msi用户并上传MS安装文件于/home/msi/tmp下

[root@lm16 home]# useradd msi

[root@lm16 home]# passwd msi

Changing password for user msi.

New password: abcdefg 密码可自由设定,这里以abcdefg为例

BAD PASSWORD: it does not contain enough DIFFERENT characters

Retype new password: abcdefg

passwd: all authentication tokens updated successfully.

[root@lm16 home]# ls

wsl lost+found msi

[root@lm16 home]# cd msi

[root@lm16 msi]# ls

[root@lm16 msi]# mkdir tmp

[root@lm16 msi]# ls

tmp

[root@lm16 home]# cd tmp

上传MS安装文件及license于tmp下

把hostname改成localhost就可以了,或者127.0.0.1,这是基于IPv4的原理二、安装过程:

root下解压安装文件,修改UNIX的权限;msi用户下安装

[root@lm16 tmp]# ls

msilic.lic unix.zip

[root@lm16 tmp]# chmod -R 777 unix.zip

unix.zip

[root@lm16 tmp]$ unzip unix.zip

……

……

[root@lm16 tmp]# chmod -R 777 UNIX/

[root@lm16 tmp]# su msi

[msi@lm16 tmp]$ ls

0x0409.ini Info README_MS_Modeling.htm Accelrys MS Modeling 3.1.msi instmsia.exe setup.exe

Autorun.exe instmsiw.exe Setup.ini

autorun.inf ISScript8.Msi SplashBitmap.bmp

Container.ico Legal UNIX

Data1.cab License Pack unix.zip

[msi@lm16 tmp]$ cd UNIX/

[msi@lm16 UNIX]$ ls

Install IRIX License_Pack Linux_IA64 Tru64

installer IRIX64 Linux README.txt

[msi@lm16 UNIX]$ ./Install

Running Materials Studio installer for platform Linux...

Please specify an absolute destination path [/usr/people/MSI/MaterialsStudio] :

/home/msi/ms

Please choose the package you wish to install:

1. Amorphous Cell Server

2. CASTEP Server

3. Discover Server

4. DMol3 Server

5. DPD Server

6. Equilibria Server

7. Forcite Server

8. GULP Server

9. MesoDyn Server

10. Morphology Server

11. Polymorph Server

12. QSARModels Server

13. Reflex Server

14. Reflex Plus Server

15. VAMP Server

16. Structures database

17. Everything

Enter items to install (e.g. 1,2,5) , or Q to quit : 17 根据安装需要也可只选择部分模块……

……

If you have not already installed an Accelrys License Pack, we recommend

that you do so. To install or update a License Pack follow the prompts

below.

License Pack environment set to:

/home/msi/License_Pack

Is this the correct License_Pack path (y|n|q) [y]? Y

/home/msi/License_Pack is lower than current version or

doesn't exist. /home/msi/License_Pack will be updated with

new files.

Press to continue. (q and to quit) 按Enter键继续

……

……

Would you like to start the Gateway service now (y|n) [y] :Y

Starting gateway...

LicensePack::PostAllInstall

--------------------------------------------------

You have the following options:

1. Install emailed or current license file.

2. Install demo license.

3. Continue without License Installation.

--------------------------------------------------

Please select one: 1

Please enter a full path to the license file (q to quit):

/home/msi/License_Pack/msi_lic_cshrc

……

……

/etc/hosts.equiv exists. However The MPICH installation included as

part of this Materials Studio requires that the uncommented lines in

/home/msi/ms/hosts.eqiv are present.

Please ask your systems administrator to check and update /etc/hosts.equiv

as required.

Materials Studio installation has completed.

三、安装后的处理:

切换到根用户,复制msilic.lic到/home/msi,变更msilic.lic的所有者与所属群组;在msi用户下用/home/msi/msilic.lic 覆盖/home/msi/

License_Pack/licenses/ msilicense.dat

[msi@lm16 UNIX]$ su root

Password:

[root@lm16 UNIX]# cd /home/msi/tmp

[root@lm16 tmp]# ls

0x0409.ini instmsia.exe setup.exe

Accelrys MS Modeling 3.1.msi instmsiw.exe Setup.ini

Autorun.exe ISScript8.Msi SplashBitmap.bmp autorun.inf Legal UNIX

Container.ico License Pack unix.zip

Data1.cab msilic.lic

Info README_MS_Modeling.htm

[root@lm16 tmp]# cp msilic.lic /home/msi

[root@lm16 tmp]# cd /home/msi

[root@lm16 msi]# ls

License_Pack ms msilic.lic tmp

[root@lm16 msi]# chown msi:msi msilic.lic

[root@lm16 msi]# su msi

[msi@lm16 msi]$ ls

License_Pack ms msilic.lic tmp

[msi@lm16 msi]$ cd License_Pack/

[msi@lm16 License_Pack]$ ls

bin ibm ibmsprs2 licenses msi_lic_cshrc Policies

config ibmrs2 irix6m3 Linux_2_Intel_32 msi_lic_profile Products

data ibmsprs1 irix6m4 logs OSF1_4_Alpha_64 sun5

[msi@lm16 License_Pack]$ cd licenses/

[msi@lm16 licenses]$ ls

backup msilicense.dat

[msi@lm16 licenses]$ cp /home/msi/msilic.lic msilicense.dat

[msi@lm16 licenses]$ exit

exit

[root@lm16 msi]# exit

exit

[msi@lm16 UNIX]$ exit

exit

[root@lm16 tmp]# exit

Exit

做最后的测试工作,http://liunux服务器的ip:18888,看到apache启动正常就ok了

一切OK啦!

这是我看了别人的的安装方法再结合自己的计算机特点给出的安装方式,经成功并行。

1. 安装并行版输入./Install --type cluster 串行版输入./Install

2. 开始按提示安装了

3. 指定你要Materials Studio安装到的目录,如~/location

4. 指定你所需要安装的模块了,根据自己的需要选择,当然也可以全部选上

5. 指定你License_Pack所在的目录,如~/location,按提示Enter,安装Licens_Pack

6. 选择临时文件夹,例~/temp

7. 把licene文件msilic.lic拷贝到/home/msi/ms40/License_Pack/licenses目录中,注意不要改名,4.2版需要*.lic的文件(此处一定要注意,网上的安装教程都叫要把lic文件改程mslicense.dat,但是4.2版本的一定不要改,要不程序会提示找不到*.lic文件)

MS并行需要hpmpi,如果要并行但你机上没有hpmpi,中间会提示安装hpmpi到ms的目录,可以采用非root用户安装,按照提示安装就可以。

8. 安装完毕

9. gateway运行,进入/home/msi/ms40/Gateway目录,运行下面的命令:

./msgateway_control_18888 start

提示说Gateway start succeeded - running as process xxxx后,就启动成功了

10. 并行还需做以下工作 vi /home/msi/ms40/share/data/machines.LINUX 写入每个节点的CPU数,格式:节点名:该节点上的CPU数,一行一个节点。node1:2

并行运行命令nohup ~/location/Discover/bin/RunDiscover.sh -np 2 7-1-1.inp &

我已经用上面的命令在机器上用两个结点并行成功。

其中~/location是你的安装位置

Linux下MS安装全过程

1安装系统,注意阅读在压缩包中的README_Materials_Studio.htm这个文件,这个文件里包含里安装ms4.4所需要的操作系统环境。就是要安装类似以下的系统补丁包 glibc-32bit-9-200710191304

hpmpi-2.02.05.01-20070708r.x86_64

libgcc-3.3.3-43.54 (32-bit and 64-bit)

libstdc++-3.3.3-43.54 (32-bit and 64-bit)

这些包都要一定要装上去,hpmpi-2.02.05.01-20070708r.x86_64 这个一般是在MS得安装盘上有。

2、安装MS4.4 ,我创建的个人用户是msi 在msi下建temp文件夹把软件拷到temp里

3、修改权限,chmod –R 755 UNIX,进入temp/UNIX,执行./Install

4、选择完全安装,

5、安装修改过得license,放到和windows版本类似那个license文件夹里

6.启动license 路径:…./Accelrys/LicensePack/linux/bin命令:[ls@localhost bin]$ ./lp_admin

7、完成

[msi@DELLr710 UNIX]$ ls

buildData.txt LicensePack Linux_x86_64 README.txt

Install License_Pack msi.lic

installer Linux PBS_Pro

Legal Linux_IA64 README_InstallingGaussianServer.txt

[msi@DELLr710 UNIX]$ ./Install

Running Materials Studio installer for platform Linux_x86_64...

Please specify an absolute destination path [/home/msi/Accelrys/MaterialsStudio44] :

Please choose the packages you wish to install:

1. AmorphousCell Server

2. Blends Server

3. CASTEP Server

4. CCDC Servers (ConQuest, Motif)

5. Conformers Server

6. DFTB+ Server

7. DMol3 Server

8. DPD Server

9. Discover Server

10. Equilibria Server

11. Forcite Server

12. GULP Server

13. Gaussian Server

14. MesoDyn Server

15. Mesocite Server

16. Mesotek Server

17. Morphology Server

18. ONETEP Server

19. Polymorph Server

20. QMERA Server

21. QSAR Models Server

22. Reflex+ Server

23. Reflex QPA Server

24. Reflex Server

25. Sorption Server

26. Structures Library

27. V AMP Server

28. Everything

Enter items to install (e.g. 1,2,5) , or Q to quit : 28

Starting installation...

Install log in /home/msi/Accelrys/MaterialsStudio44/install.log

Installing everything...

Checking for dependencies for AmorphousCellServer:6

Checking for dependencies for AmorphousCell: None

Checking for dependencies for Licensing:1

Checking for dependencies for LicensePack: None

Initializing InstallShield Wizard........

Launching InstallShield Wizard........

------------------------------------------------------------------------------- Accelrys License Pack 7.6 - InstallShield Wizard

Welcome to the InstallShield Wizard for Accelrys License Pack 7.6

The InstallShield Wizard will install Accelrys License Pack 7.6 on your computer.

To continue, choose Next.

Accelrys License Pack 7.6

Accelrys Software Inc.

https://www.doczj.com/doc/5c4291112.html,

Press 1 for Next, 3 to Cancel or 5 to Redisplay [1]

-------------------------------------------------------------------------------

Accelrys License Pack 7.6 - InstallShield Wizard

Accelrys License Pack 7.6 Install Location

Please specify a directory or press Enter to accept the default directory.

Destination Directory [/home/msi/Accelrys]

Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

------------------------------------------------------------------------------

Accelrys License Pack 7.6 - InstallShield Wizard

Select the features for "Accelrys License Pack 7.6" you would like to install: Accelrys License Pack 7.6

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 - InstallShield Wizard

Accelrys License Pack 7.6 will be installed in the following location:

/home/msi/Accelrys/LicensePack

with the following features:

LicensePack

for a total size:

161.2 MB

Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]

-------------------------------------------------------------------------------

Accelrys License Pack 7.6 - InstallShield Wizard

Installing Accelrys License Pack 7.6. 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 - InstallShield Wizard

The InstallShield Wizard has successfully installed Accelrys License Pack 7.6. Choose Finish to exit the wizard.

Press 3 to Finish or 5 to Redisplay [3]

Checking for dependencies for SharedSetup:4

Checking for dependencies for IntelRuntime: None

Checking for dependencies for HPMPI:1

Do HP-MPI Installation -- MesoDyn server selected.

Should HPMPI use SSH? [Y/n]: y

Configuring HP-MPI installation

Setting up machines.LINUX file in /home/msi/Accelrys/MaterialsStudio44/share/data Checking for dependencies for GatewayTmp: None

Please specify the location for temporary files (required for certain

computational servers), e.g., /tmp or /usr/tmp. Enter ./tmp if you prefer

to create these files in the directory where the job is being run. Please

note that the ./tmp setting could create additional I/O overhead and thereby

affect performance [/tmp] :

Checking for dependencies for GatewayScripts: None

Configuring environment setup

Setting installation path in environment setup script files

Checking for dependencies for Gateway:2

Configuring Gateway to use default port

Configuring Gateway for supported queueing systems

Checking for dependencies for PPComponents: None

Checking for dependencies for Discover: None

Creating Stand alone AmorphousCell script /home/msi/Accelrys/MaterialsStudio44/etc/AmorphousCell/bin/RunAmorphousCell.sh Checking for dependencies for CASTEPServer:7

Checking for dependencies for CASTEP: None

Checking for dependencies for MKL:1

Creating Stand alone CASTEP script /home/msi/Accelrys/MaterialsStudio44/etc/CASTEP/bin/RunCASTEP.sh

Checking for dependencies for DMol3Server:6

Checking for dependencies for DMol3: None

Creating Stand alone DMol3 script /home/msi/Accelrys/MaterialsStudio44/etc/DMol3/bin/RunDMol3.sh

Checking for dependencies for DPDServer:7

Checking for dependencies for DPD: None

Creating Stand alone DPD script /home/msi/Accelrys/MaterialsStudio44/etc/DPD/bin/RunDPD.sh Checking for dependencies for DiscoverServer:6

Creating Stand alone Discover script /home/msi/Accelrys/MaterialsStudio44/etc/Discover/bin/RunDiscover.sh

Checking for dependencies for EquilibriaServer:7

Checking for dependencies for Equilibria: None

Creating Stand alone Equilibria script /home/msi/Accelrys/MaterialsStudio44/etc/Equilibria/bin/RunEquilibria.sh

Checking for dependencies for GaussianServer:5

Checking for dependencies for Gaussian: None

Y ou have chosen to install the Gaussian server but Gaussian seems not to be

installed on this machine. Before using the Gaussian server please make sure

that Gaussian is installed.

Press ENTER to continue:

Checking for dependencies for MesoDynServer:6

Checking for dependencies for MesoDyn: None

Creating Stand alone MesoDyn script /home/msi/Accelrys/MaterialsStudio44/etc/MesoDyn/bin/RunMesoDyn.sh

Checking for dependencies for ReflexPlusServer:7

Checking for dependencies for xpcom: None

Checking for dependencies for xpidl: None

Checking for dependencies for perl: None

Checking for dependencies for WinCE: None

Checking for dependencies for MS3rdParty: None

Checking for dependencies for ApplicationComponents: None

Checking for dependencies for ApplicationLibraries: None

Checking for dependencies for Container: None

Checking for dependencies for ContainerInterfaces: None

Checking for dependencies for ContainerRootConsumer: None

Checking for dependencies for ContainerUtils: None

Checking for dependencies for DataModel: None

Checking for dependencies for Documents: None

Checking for dependencies for DocumentsInterfaces: None

Checking for dependencies for Libraries: None

Checking for dependencies for SDK: None

Checking for dependencies for Scripting: None

Checking for dependencies for V iewersInterfaces: None

Checking for dependencies for V isualizer: None

Checking for dependencies for V isualizerInterfaces: None

Checking for dependencies for QSAR: None

Checking for dependencies for QSARApplications: None

Checking for dependencies for Polymer: None

Checking for dependencies for MSExampleData: None

Checking for dependencies for Simulations: None

Checking for dependencies for Analytical: None

Checking for dependencies for ReflexServer:5

Checking for dependencies for PowderIndexing: None

Checking for dependencies for Structures:1

Checking for dependencies for MSStructures: None

Checking for dependencies for V AMPServer:6

Checking for dependencies for V AMP: None

Creating Stand alone V AMP script /home/msi/Accelrys/MaterialsStudio44/etc/V AMP/bin/RunV AMP.sh

Checking for dependencies for QMERAServer:7

Checking for dependencies for QMERA: None

Checking for dependencies for GULP: None

Creating Stand alone QMERA script /home/msi/Accelrys/MaterialsStudio44/etc/QMERA/bin/RunQMERA.sh

Checking for dependencies for GULPServer:6

Creating Stand alone GULP script /home/msi/Accelrys/MaterialsStudio44/etc/GULP/bin/RunGULP.sh

Checking for dependencies for ONETEPServer:6

Creating Stand alone ONETEP script /home/msi/Accelrys/MaterialsStudio44/etc/ONETEP/bin/RunONETEP.sh

Checking for dependencies for MesotekServer:6

Checking for dependencies for Mesotek: None

Creating Stand alone Mesotek script /home/msi/Accelrys/MaterialsStudio44/etc/Mesotek/bin/RunMesotek.sh

Checking for dependencies for BlendsServer:3

Checking for dependencies for Docking: None

Checking for dependencies for ConformerSearchServer:3

Checking for dependencies for DFTBServer:9

Checking for dependencies for DFTB: None

Checking for dependencies for Quantum: None

Checking for dependencies for Nano: None

Creating Stand alone DFTB script /home/msi/Accelrys/MaterialsStudio44/etc/DFTB/bin/RunDFTB.sh

Checking for dependencies for ForciteServer:2

Checking for dependencies for MesociteServer:3

Checking for dependencies for Meso: None

Checking for dependencies for MorphologyServer:3

Checking for dependencies for Crystallization: None

Checking for dependencies for PolymorphServer:3

Checking for dependencies for QSARModelsServer:2

Checking for dependencies for FastDesc: None

Checking for dependencies for ReflexQPAServer:3

Checking for dependencies for SorptionServer:3

Checking for dependencies for CCDCServers:4

Checking for dependencies for CCDC: None

Y ou have chosen to install the CCDC servers, but neither ConQuest nor Motif

appear to be installed. Please make sure that these servers are present before

attempting to use them.

Press ENTER to continue:

Checking for dependencies for QSARInterfaces: None

If you would like the Gateway at /home/msi/Accelrys/MaterialsStudio44/etc

to be started automatically when the system is restarted

you will need to get your administrator to place a copy of

/home/msi/Accelrys/MaterialsStudio44/etc/Gateway/msgateway_control_18889 in /etc/rc.d/init.d/msgateway_control_18889

and run:

/sbin/chkconfig --add msgateway_control_18889

Please refer to the installation instructions for more details.

A Materials Studio Gateway provides access to server components

installed on your machine. By default the Gateway is configured

to use minimum security. Y ou can use the Gateway configuration

tools after installation to enforce higher levels of security.

The servers in this installation will not be available from the

Materials Studio visualizer until the Gateway has been started.

If you choose not to start the Gateway now you will need to start

it manually after this installation has completed.

Please refer to the help text on the CD for instructions on how

to start, stop, and customize your Gateway configuration.

Would you like to start the Gateway service now? [Y/n]: y

Starting gateway...

Registering XPCom components; this may take a while...

System configuration details for HP-MPI

These checks assume that the default user authentication mechanism is being used. Y our System Administrator may have chosen to use an alternative mechanism. If you find that parallel jobs fail you should consult your System Administrator and ask them to perform appropriate configuration work. For further details please refer your System Administrator to the installation documentation under the info folder on your installation CD Checking remote shell settings for MPI

openssh package is installed.

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: 99

Exiting program

Press ENTER to continue:

Materials Studio installation has completed.

[msi@DELLr710 UNIX]$ ls

buildData.txt LicensePack Linux_x86_64 README.txt Install License_Pack msi.lic

installer Linux PBS_Pro

Legal Linux_IA64 README_InstallingGaussianServer.txt

[msi@DELLr710 UNIX]$ cd

[msi@DELLr710 ~]$ cd..

bash: cd..: command not found

[msi@DELLr710 home]$ ls

lost+found msi

[msi@DELLr710 home]$ ls

lost+found msi

[msi@DELLr710 home]$ cd root

bash: cd: root: No such file or directory

[msi@DELLr710 home]$ cd /

[msi@DELLr710 /]$ ls

bin dev home lib64 media mnt opt root selinux sys usr

boot etc lib lost+found misc net proc sbin srv tmp var

[msi@DELLr710 /]$ cd home

[msi@DELLr710 home]$ cd msi

[msi@DELLr710 ~]$ ls

Accelrys libgcc-4.1.2-42.el5.x86_64.rpm

compat-libstdc++-33-3.2.3-61.x86_64.rpm libstdc++-4.1.2-42.el5.x86_64.rpm Desktop ms

glibc-2.5-24.x86_64.rpm temp

hpmpi-2.02.05.01-20070708r.x86_64.rpm testwrite

[msi@DELLr710 ~]$ cd Accelrys

[msi@DELLr710 Accelrys]$ ld

ld: no input files

[msi@DELLr710 Accelrys]$ LS

bash: LS: command not found

[msi@DELLr710 Accelrys]$ ls

LicensePack MaterialsStudio44

[msi@DELLr710 Accelrys]$ cd LicensePack

[msi@DELLr710 LicensePack]$ ls

buildinfo.txt LicensePack.html linux README.txt Uninstaller

etc Licenses Logs share

[msi@DELLr710 LicensePack]$ cd Licenses

[msi@DELLr710 Licenses]$ ls

Offline

[msi@DELLr710 Licenses]$ /Accelrys/LicensePack/linux/bin/lp_admin bash: /Accelrys/LicensePack/linux/bin/lp_admin: No such file or directory [msi@DELLr710 Licenses]$ cd /Accelrys/LicensePack/linux/bin/lp_admin bash: cd: /Accelrys/LicensePack/linux/bin/lp_admin: No such file or directory [msi@DELLr710 Licenses]$ cd

[msi@DELLr710 ~]$ cd /Accelrys/LicensePack/linux/bin/lp_admin

bash: cd: /Accelrys/LicensePack/linux/bin/lp_admin: No such file or directory [msi@DELLr710 ~]$ ./lp_admin

bash: ./lp_admin: No such file or directory

[msi@DELLr710 ~]$ cd /Accelrys/LicensePack/linux/bin

bash: cd: /Accelrys/LicensePack/linux/bin: No such file or directory

Accelrys libgcc-4.1.2-42.el5.x86_64.rpm

compat-libstdc++-33-3.2.3-61.x86_64.rpm libstdc++-4.1.2-42.el5.x86_64.rpm

Desktop ms

glibc-2.5-24.x86_64.rpm temp

hpmpi-2.02.05.01-20070708r.x86_64.rpm testwrite

[msi@DELLr710 ~]$ cd Accelrys/LicensePack/

[msi@DELLr710 LicensePack]$ cd linux/bin

[msi@DELLr710 bin]$ lp_admin

bash: lp_admin: command not found

[msi@DELLr710 bin]$ ./lp_admin

/home/msi/Accelrys/LicensePack/linux/bin/rt_bin/lp_admin_gui: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

[msi@DELLr710 bin]$

注意,我这个最后启动license说明系统缺少几个补丁包,要安装上。

安装linux操作系统的时候先对照HPMPI和MS对rpm软件包的要求,选择安装组件,认真对照就不会出现少文件的现象了.真要少了就在系统安装盘里找到相应的rpm包安装上就好了.我安装的时候系统环境变量有些问题,修改防火墙和系统配置文件host中的IP和主机名就可以用了.

有linux系统使用和维护经验对MS的linux版安装和维护非常有必要.

MPI安装与运行报告

MPI 安装于运行报告 本机运行环境: 机器型号:联想G450 处理器:Pentium(R)Dual-Core CPU T4200 @ 2.00GHz 运行内存 (RAM):2GB 操作系统:Windows 7(32 位) 程序开发环境:Visual Studio 2008 MPI 版本: mpich2-1.3.2p1-win-ia32 安装程序 详细安装步骤: 1、运行mpich2-1.3.2p1-win-ia32.msi。 安装过程中,会要求设置一个passphrase我的机器上默认的passphrase是beHappy,很有意思的密码。设置这个东西很重要,一定要记住;下面会说到为什么。 2、安装完之后,不知道下一步怎么进行了。打开刚才安装的MPICH2 的快捷方式目录,发现了一个README文件。打开之后,发现了MPICH2的使用方法介绍,于是按照其中的指示,我进行了第一个MPI 并行程序的编写。 我使用的是VC++2008首先创建一个新的工程,取名为MPITes。 添加MPI 库的支持: 按照README中的指导,应该首先将MPI的头文件目录包含到项目中去。结果在项目属性中找了半天,也没有找到添加头文件目录的位置,只找到了包含库文件的位置,我安装MPICH2的目录为D:\Program Files\MPICH2将MPICH2的库文件添加到如下面图1所示的位置即可。 最后才反应过来,这个工程还是空的,没有任何文件,可能跟这个有关系吧。 于是,马上新建了一个Cpp文件main.cpp,将老师PPT中的例子程序拷贝进去。

图1 果然,新建了这个cpp文件之后,项目属性中多出了C/C++这样一项, 于是,就可以在其中设置包含文件的目录了,相应的配置如下面图2所示 图2 设置好这些文件之后,编译程序,结果在连接的时候报错,类似于 main.obj : error LNK2019:无法解析的外部符号_MPI_Finalize,该符号在函数_main中被引用”这样的错误出现了六个。再看READM文档,发现了这样? 句话:

MPICH2在Windows环境下Visual_Studio_2010的环境搭建

MPICH2在Windows系统Visual Studio 2010的环境搭建 本机运行环境: 机器型号:联想G450 处理器:Pentium(R)Dual-Core CPU T4200 @ 2.00GHz 运行内存(RAM):2GB 操作系统:Windows 7(32位) 程序开发环境:Visual Studio 2008 MPI版本: mpich2-1.3.2p1-win-ia32安装程序 MPI的编译和运行 对于简单的程序,可以使用专门的编译命令。对于大的项目,最好使用标准的Makefile。MPICH提供的编译命令有mpicc和mpif77,它们分别是C和Fortran的编译命令: mpicc -o first first.c mpif77 -o first firstf.f 对于编译得到的目标程序,运行的命令为: mpirun –arch xxx –np yyy first 其中xxx为machines.,yyy为申请的进程数目。 MPICH的安装和配置 文中使用的MPICH2安装文件是mpich2-1.4-win-ia32 (https://www.doczj.com/doc/5c4291112.html,/mpi/mpich),在Windows下安装MPICH2比较简单,但是要有Microsoft .NET Framework的支持。安装基本上只要单击“Next”即可。在安装过程中会提示输入进程管理器的密码,这个密码被用来访问所有的程序,这里使用的密码为admin。如果是多台机器执行mpi,那么这多台机器上必须配置相同的mpi用户,就是新用户的用户名和密码必须相同。

Linux下QQ等软件的安装方法

Linux下QQ等软件的安装方法.txt24生活如海,宽容作舟,泛舟于海,方知海之宽阔;生活如山,宽容为径,循径登山,方知山之高大;生活如歌,宽容是曲,和曲而歌,方知歌之动听。Linux下QQ等软件的安装方法2008-10-31 23:39 Linux下QQ等软件的安装方法2008-10-16 16:06要充分发挥电脑的作用,就得有大量的应用软件,完成不同的工作。在Windows环境中安装各种应用软件的思路与方法,想必大家早已熟悉。然而,在使用Linux时,我们却总会被这些本不应该是问题的问题所困扰:怎么安装应用软件?我的软件安装在什么地方?如何删除不要的应用软件?…… 下面,我们就一起来认识一下这些方面的知识。 一、解读Linux应用软件安装包 通常Linux应用软件的安装包有三种: 1) tar包,如software-1.2.3-1.tar.gz。它是使用UNIX系统的打包工具tar打包的。2) rpm包,如software-1.2.3-1.i386.rpm。它是Redhat Linux提供的一种包封装格式。3) dpkg包,如software-1.2.3-1.deb。它是Debain Linux提供的一种包封装格式。 而且,大多数Linux应用软件包的命名也有一定的规律,它遵循: 名称-版本-修正版-类型 例如: 1)software-1.2.3-1.tar.gz 意味着: 软件名称:software 版本号:1.2.3 修正版本:1 类型:tar.gz,说明是一个tar包。 2)sfotware-1.2.3-1.i386.rpm 软件名称:software 版本号:1.2.3 修正版本:1 可用平台:i386,适用于Intel 80x86平台。 类型:rpm,说明是一个rpm包。 注:由于rpm格式的通常是已编译的程序,所以需指明平台。在后面会详细说明。 而software-1.2.3-1.deb就不用再说了吧!大家自己练习一下。 二、了解包里的内容 一个Linux应用程序的软件包中可以包含两种不同的内容: 1)一种就是可执行文件,也就是解开包后就可以直接运行的。在Windows中所有的软件包都是这种类型。安装完这个程序后,你就可以使用,但你看不到源程序。而且下载时要注意这个软件是否是你所使用的平台,否则将无法正常安装。 2)另一种则是源程序,也就解开包后,你还需要使用编译器将其编译成为可执行文件。这在Windows系统中是几乎没有的,因为Windows的思想是不开放源程序的。 通常,用tar打包的,都是源程序;而用rpm、dpkg打包的则常是可执行程序。一般来说,自己动手编译源程序能够更具灵活性,但也容易遇到各种问题和困难。而相对来说,下载那些可执行程序包,反而是更容易完成软件的安装,当然那样灵活性就差多了。所以一般一个软件总会提供多种打包格式的安装程序的。你可以根据自己的情况来选择。 三、搞定使用tar打包的应用软件 1. 安装: 整个安装过程可以分为以下几步: 1)取得应用软件:通过下载、购买光盘的方法获得;

实验3安装MPICH

实验3 安装MPICH 准备知识(自学) 一、Linux命令及脚本文件 目的与要求:使学生掌握Linux基本命令的使用;学会编写简单的脚本文件。 主要内容及提示: 1.Linux基本命令 1.1帮助 所有的Linux命令及C,MPI函数的使用说明都可以通过联机帮助获得。 man 〈命令|C语言函数名|MPI函数名〉 〈命令名〉—help 1.2 文件、目录、磁盘操作命令 ls 查看目录中的内容,常用的参数有–al pwd 显示当前工作目录 cd 改变当前工作目录,(.表示当前目录;..表示父目录;~表示当前用户的主目录) mkdir 建立子目录 cp 复制文件或子目录,可用参数 -R cat 显示文件内容 more 分屏输出(回车:上滚一行;空格:上滚一屏;q:退出) less 分屏输出(q键退出、还可以使用光标上下移动键) chmod 改变文件或目录的读(r)写(w)执行(x)属性(三组rwx中,第一组rwx 为该文件主的权限、第二组rwx为同一用户组中其他用户的权限、第三组rwx为其他用户的权限。例如:chmod 765 <文件名>,则文件的读写执行权限为rwxrw-r-x,即7=111B,6=110B,5=101B,这里B表示二进制) ln 建立文件链接,常用参数-s(相当于Windows中的“快捷方式”) rm 删除文件,删除子目录(需要参数-r) mv 移动文件(目标文件若存在,则会被覆盖) gzip gz文件的压缩/解压缩,常用参数-d(解压缩),-9(最大压缩) tar tar,tgz文件的打包/解包,常用参数-cvf(打包成tar文件),-xvf (解tar文件包),-zcvf(打包并压缩成tgz文件),-zxvf(解tgz文件) df 显示硬盘各分区的使用情况 mount 装载文件系统 umount 卸载文件系统 1.3 m命令集——DOS/Windows格式软盘的使用 mdir或mdir a: 显示软盘当前目录内容 mcopy Linux操作系统中的文件与DOS/Windos格式软盘之间复制文件 mtype 显示软盘中指定文件的内容 mren 更改软盘中指定文件的文件名 mdel 删除软盘中指定文件 mcd 改变软盘的当前目录 mmd 在软盘上建立子目录

linux下安装abaqus

1 sudo apt-get install g++ 2 sudo apt-get install csh 3 sudo mount -o loop /home/zhangfei/DVD1.iso /mnt (挂载,只能挂载一个) 4 mkdir temp(临时储存安装信息) 5 mkdir abaqus610 (安装目录) 6 cd /mnt/ 7 ls /mnt 8 sudo /mnt/./setup -nosystemchecks (安装license) 10 cd /mnt/crack/ 11 ls 13 sudo cp abq6101.dat ~/abaqus610/License/ (将.dat文件复制到目录) 14 cd 15 cd abaqus610/License/ 16 ls 17 sudo gedit abq6101.dat(改写此文件) 18 sudo ./lmgrd -c abq6101.dat (运行) 40 pwd 42 cat /mnt/setup 47 su 50 cd ~/ 51 ls 52 cd temp/ 54 cd ..(返回上一目录) 56 cd abaqus610/ 58 sudo XLIB_SKIP_ARGB_VISUALS=1 ./Commands/abq6101 cae 59 sudo apt-get install libjpeg62 60 sudo XLIB_SKIP_ARGB_VISUALS=1 ./Commands/abq6101 cae 62 sudo XLIB_SKIP_ARGB_VISUALS=1 ./Commands/abq6101 cae 64 sudo XLIB_SKIP_ARGB_VISUALS=1 ./Commands/abq6101 cae 68 cd site/ 70 sudo gedit abaqus_v6.env 71 cd .. 73 sudo XLIB_SKIP_ARGB_VISUALS=1 ./Commands/abq6101 cae 75 cd 77 pwd 78 sudo gedit .bash_aliases 79 su / 80 cd /(进入根目录) 82 pwd 83 sudo gedit .bash_aliases 84 abaqus 86 cd 88 sudo gedit .bash_aliases 89 cd temp/(在此文件下运行abaqus) 90 abqlm 91 abaqus cae 93 sudo /mnt/./install.sh (安装fortran) 95 abaqus cae 97 sudo umount /mnt(取消挂载) 102 sudo apt-get install ia32-libs

linux下环境以及软件安装

Zookeeper的安装 1.1.1.安装环境: Linux:centos6.4 Jdk:1.7以上版本 Zookeeper是java开发的可以运行在windows、linux环境。需要先安装jdk。 1.1. 2.安装步骤: 第一步:安装jdk 第二步:把zookeeper的压缩包上传到linux系统。 第三步:解压缩压缩包 tar -zxvf zookeeper-3.4.6.tar.gz 第四步:进入zookeeper-3.4.6目录,创建data文件夹。 第五步:把zoo_sample.cfg改名为zoo.cfg [root@localhost conf]# mv zoo_sample.cfg zoo.cfg 第六步:修改data属性:dataDir=/root/zookeeper-3.4.6/data 第七步:启动zookeeper [root@localhost bin]# ./zkServer.sh start 关闭:[root@localhost bin]# ./zkServer.sh stop 查看状态:[root@localhost bin]# ./zkServer.sh status 注意:需要关闭防火墙。 需要安装tomcat,然后部署监控中心即可。 1、部署监控中心: [root@localhost ~]# cp dubbo-admin-2.5.4.war apache-tomcat-7.0.47/webapps/dubbo-admin.war 2、启动tomcat 3、访问http://192.168.25.167:8080/dubbo-admin/ 用户名:root 密码:root 如果监控中心和注册中心在同一台服务器上,可以不需要任何配置。 如果不在同一台服务器,需要修改配置文件: /root/apache-tomcat-7.0.47/webapps/dubbo-admin/WEB-INF/dubbo.properties Nginx安装 1、需要安装gcc的环境。yum install gcc-c++ 2、第三方的开发包。 PCRE PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括perl 兼容的正则表达式库。nginx的http模块使用pcre来解析正则表达式,所以需要在linux上安装pcre库。yum install -y pcre pcre-devel 注:pcre-devel是使用pcre开发的一个二次开发库。nginx也需要此库。

Win7 64bit系统mpich2并行平台的搭建

Windows7系统下搭建MPI环境 本人想做一个小的机群,做并行计算,搜罗了一些网上的资料,在单机上建了个并行平台,一些小例子都没问题,但是我的计算程序还是没有成功! 我的电脑是Win7 ,64位系统。按照网上所说64位系统应该装64位的mpich2,但是没有找到资源,就装了32位的。程序设计软件是vc++6! 下面讲一下我的安装过程,希望对大家有用!!! 第一项:准备工作 1 安装MPI的SDK——MPICH2 mpich2-1.4.1p1-win-ia32安装程序的下载地址: https://www.doczj.com/doc/5c4291112.html,/research/projects/mpich2/downloads/tarballs/ 1.4.1p1/mpich2-1.4.1p1-win-ia32.msi 注意:网上很多人都说要以管理员身份进行安装,究竟怎样以管理员身份安装呢?这一点浪费了我好长时间,其实也不是很难,只是没有意识到! 点击“开始”——输入cmd(就会看见cmd.exe)——右键——以管理员身份运行——(输入要安装的文件)"msiexec /i e:\mpi\mpich2-1.4.1p1-win-ia32.msi"回车即可,然后按照提示下一步直至安装成功。其中e:\mpi\mpich2-1.4.1p1-win-ia32.msi是指源文件所在位置。(注意空格) 安装成功后会有如下几个文件生成 注意在bin文件中一定要有下面两个应用程序,否则未安装成功。

2 新建用户密码 安装成功后要测试一下,测试前要先注册一个用户(这个用户名须为有效的操作系统管理员账户,密码对应为系统登录密码。这个地方也煞费苦心啊,一定要注意!!!) 开始——控制面板——用户账户和家庭安全——添加或删除用户账户——创建一个新账户(在下面可以看到)——输入用户名(选择用户类型为“管理员”)——创建用户 然后再创建密码就ok啦!如下图所示 这个用户名和密码就是我们测试时需要用的。 3 注册 开始——所有程序——mpich2——wmpiregister 如下图,这个就是刚才注册的用户和密码。输入后点击Register——OK。就会出现一行字,成功注册。

查看linux 下已经安装的软件包

查看linux 下已经安装的软件包 RPM使用详解在Linux 操作系统中,有一个系统软件包,它的功能类似于Windows里面的“添加/删除程序”,但是功能又比“添加/删除程序”强很多,它就是Red Hat Package Manager(简称RPM)。此工具包最先是由Red Hat公司推出的,后来被其他LinuxRPM使用详解 在Linux 操作系统中,有一个系统软件包,它的功能类似于Windows 里面的“添加/删除程序”,但是功能又比“添加/删除程序”强很多,它就是Red Hat Package Manager(简称RPM)。此工具包最先是由Red Hat公司推出的,后来被其他Linux开发商所借用。由于它为Linux 使用者省去了很多时间,所以被广泛应用于在Linux下安装、删除软件。下面就给大家介绍一下它的具体使用方法。 1.我们得到一个新软件,在安装之前,一般都要先查看一下这个软件包里有什么内容,假设这个文件是:Linux-1.4-6.i368.rpm,我们可以用这条命令查看: rpm -qpi Linux-1.4-6.i368.rpm 系统将会列出这个软件包的详细资料,包括含有多少个文件、各文件名称、文件大小、创建时间、编译日期等信息。

2.上面列出的所有文件在安装时不一定全部安装,就像Windows下程序的安装方式分为典型、完全、自定义一样,Linux也会让你选择安装方式,此时我们可以用下面这条命令查看软件包将会在系统里安装哪些部分,以方便我们的选择: rpm -qpl Linux-1.4-6.i368.rpm 3. 选择安装方式后,开始安装。我们可以用rpm-ivh Linux-1.4-6.i368.rpm命令安装此软件。在安装过程中,若系统提示此软件已安装过或因其他原因无法继续安装,但若我们确实想执行安装命令,可以在-ivh后加一参数“-replacepkgs”: rpm -ivh -replacepkgs Linux-1.4-6.i368.rpm 4.有时我们卸载某个安装过的软件,只需执行rpm-e <文件名>;命令即可。 5.对低版本软件进行升级是提高其功能的好办法,这样可以省去我们卸载后再安装新软件的麻烦,要升级某个软件,只须执行如下命令:rpm -uvh <文件名>;,注意:此时的文件名必须是要升级软件的升级补丁

MPICH 的安装使用和MPI原理分析

MPICH 的安装使用和MPI原理分析MPICH的安装和使用 运行mpich2-1.3.2p1-win-ia32.msi,填写passphrase,默认为behappy,选择默认路径安装。 运行wmpiregister, 注册当前的管理员用户。 使用建立和编译MPI程序:新建一个项目,设置项目属性,将MPICH2\lib 目录添加到C++连接的library path内,将MPICH2\include 目录添加到C++链接的Include Path内,在程序属性的链接器->命令行中添加mpi.lib,编译和生成程序。 将结果exe程序拷贝到MPICH2\bin 目录下,运行mpiexec程序,在Application内添加要我们运行的exe程序。选择进程数目,然后Execute,就会显示多个进程的执行情况。 MPICH程序原理 MPI过程就好像一个几步的过程调用,通过初始化,设置进程数,运行进程,进程间发送和接受消息,结束这些步骤来完成。 每个步骤都有基本函数相对应。 MPI_Init (*argc,*argv);//初始化MPI环境 MPI_Comm_size (comm,*size) ;//返回同组内进程数 MPI_Comm_rank (comm,*rank) ;//返回该进程在组内的进程号,从0开始 MPI_Send(buf,count,datatype,dest,tag,comm); //向目标进程发送buf内的count个datatype数据 MPI_Recv(buf,count,datatype,source,comm,status);//接收消息 MPI_Finalize ();//结束 MPIπ的计算程序说明 #include "mpi.h" #include #include double f(double x) { return(4.0/(1.0+x*x)); } int main (int argc,char * argv[]) { int done =0,n,myid,numprocs,i; double PI25DT=3.141592653589793238462643; double mypi,pi,h,sum,x;

MPICH在windows下搭建集群系统

一、首先自己的计算机上进行测试 1、命令行方式: 注册:mpiexec -register 输入你当前登陆帐户名和密码,不注册的话每次执行程序都要求输入帐户和密码。 运行:mpiexec -n 2 helloworld.exe 这里用两个进程执行当前目录下的helloworld.exe,如果在linux下就应该写为mpiexec -n 2 ./helloworld.exe 2、GUI方式: 注册:开始菜单=>所有程序=>MPICH2=>wmpiregister.exe 填上当前登陆用户名和密码,点击“register”将信息写入磁盘,再点“ok”关闭程序。若先点击“ok”则是写入内存,重启机器后还要再注册。想更换其他用户运行mpi程序时,点“remove”将原来的信息删除。 运行:开始菜单=>所有程序=>MPICH2=>wmpiexec.exe 在Application处选择可执行程序,在Number of processes处选择用几个进程。点“Execute”执行,“B reak”终止程序。下面有个选项“more options”,选中后有更多的参数可选用,包括用配置文件执行程序,单机测试没必要写配置文件了吧。 二、加上多台计算机上测试 首先、在其他的机器上也安装mpich2,版本不应该相差太远,最好同样版本,如mpich2-1.0.6。 其次、每个机器上的帐户要一样,如administrator,更重要的是密码也要一样!希望新手要注意:用户和密码都要求一致。 再次、一定要把所有机器的防火墙都关掉,windows防火墙最好也关掉,不然可能相互连接不上,或者执行的时候有奇怪的错误。

Linux下软件安装详解(精)

Linux下软件安装详解 在Linux系统中,软件安装程序比较纷繁复杂,不过最常见的有两种: 1一种是软件的源代码,您需要自己动手编译它。这种软件安装包通常是用gzip 压缩过的tar包(后缀为.tar.gz。 2另一种是软件的可执行程序,你只要安装它就可以了。这种软件安装包通常被是一个RPM包(Redhat Linux Packet Manager,就是Redhat的包管理器,后缀是.rpm。 当然,也有用rpm格式打包的源代码,用gzip压缩过的可执行程序包。只要您理解了以下的思路,这两种形式的安装包也不在话下了。 下面,我们就分成两个部分来说明软件安装思路: 第一部分:搞定.tar.gz 1.首先,使用tar -xzvf来解开这个包,如: #tar -xzvf apache_1_3_6_tar.gz 这样就会在当前目录中创建了一个新目录(目录名与.tat.gz包的文件名类似,用来存放解压了的内容。如本例中就是apache_1.3.6 2.进入这个目录,再用ls命令查看一下所包含的文件,如: #cd apache_1.3.6 #ls 你观察一下这个目录中包含了以下哪一个文件:configure、Makefile还是Imake。 1如果是configure文件,就执行:

#./configure #make #make install 2如果是Makefile文件,就执行: #make #make install 3如果是 Imake文件,就执行: #xmkmf #make #make install 3.如果没有出现什么错误提示的话,就搞定了。至于软件安装到什么地方,通常会在安装时出现。否则就只能查阅一下README,或者问问我,:- 如果遇到错误提示,也别急,通常是十分简单的问题: 1没有安装C或C++编译器; 确诊方法:执行命令gcc(C++则为g++,提示找不到这个命令。 解决方法:将Linux安装光盘mount上来,然后进入RPMS目录,执行命令: #rpm -ivh gcc* (哈哈,我们用到了第二种安装方式 2没有安装make工具; 确诊方法:执行命令make,提示找不到这个命令。

Linux下软件安装方法总结

Linux下软件安装方法总结 <转> 2009-04-18 22:26 一、rpm包安装方式步骤: 1、找到相应的软件包,比如soft.version.rpm,下载到本机某个目录; 2、打开一个终端,su -成root用户; 3、cd soft.version.rpm所在的目录; 4、输入rpm -ivh soft.version.rpm 二、deb包安装方式步骤: 1、找到相应的软件包,比如soft.version.deb,下载到本机某个目录; 2、打开一个终端,su -成root用户; 3、cd soft.version.deb所在的目录; 4、输入dpkg -i soft.version.deb 三、tar.gz源代码包安装方式: 1、找到相应的软件包,比如soft.tar.gz,下载到本机某个目录; 2、打开一个终端,su -成root用户; 3、cd soft.tar.gz所在的目录; 4、tar -xzvf soft.tar.gz //一般会生成一个soft目录 5、cd soft 6、./configure 7、make 8、make install 四、tar.bz2源代码包安装方式: 1、找到相应的软件包,比如soft.tar.bz2,下载到本机某个目录; 2、打开一个终端,su -成root用户; 3、cd soft.tar.bz2所在的目录; 4、tar -xjvf soft.tar.bz2 //一般会生成一个soft目录 5、cd soft 6、./configure 7、make 8、make install 五、apt方式安装: 1、打开一个终端,su -成root用户; 2、apt-cache search soft 注:soft是你要找的软件的名称或相关信息 3、如果2中找到了软件soft.version,则用apt-get install soft.version 命令安装软件注:只要你可以上网,只需要用apt-cache search查找软件,用apt-get install软件 六、bin文件安装: 如果你下载到的软件名是soft.bin,一般情况下是个可执行文件,安装方法如下:

Linux环境下MPICH安装指南

Linux环境下MPICH安装指南 说明:本系统测试环境为Redhat9.0完全安装, 下载mpich2-1.0.1.tar.gz软件包到/root/目录下。 以root用户登录。 假设:安装三台微机,名字分别为:node01,node02,node03. 一、Linux环境下设置SSH信任连接(在root目录下) 1)在/etc/hosts文件下添加 #vi /etc/hosts 打开hosts文件,在其后添加: node01 IP node01 https://www.doczj.com/doc/5c4291112.html, node02 IP node02 https://www.doczj.com/doc/5c4291112.html, node03 IP node03 https://www.doczj.com/doc/5c4291112.html, 在需要用户下建立SSH信任连接: 2) 在各节点机上生成SSH秘钥. #ssh-keygen -t rsa 一路回车即可产生.ssh文件夹, 包括文件id_rsa, id_rsa.pub 在各节点机.ssh目录下生成authorized_keys文件 各节点机拷贝其他节点机上的id_rsa.pub内容(密钥)到本机的authorized_keys 文件中,则节点机间建立了SSH信任连接。 ***注意:其他用户下建立信任连接方法同上面 3)确认节点机器的信任连接已建立 在某节点(如node01)上执行: #ssh node02 #ssh node03 在提示处输入yes回车,最后确定无需输入密码并且没有任何提示信息即可登陆

对方机器则表示配置成功。 二、安装MPICH2(在root目录下) 1)解压缩 下载mpich2-1.0.1.tar到根目录下,然后解压缩 #tar -zxvf mpich2-1.0.1.tar.gz 2)创建MPICH安装目录 #mkdir /usr/MPICH-instsll 进入mpich2-1.0.1目录 设置安装目录 #./configure --prefix=/usr/MPICH-install 3)编译、安装 #make #make install 4)增加MPICH执行路径 可在.bashrc 或etc/bashrc 或etc/profile中添加安装路径 如在etc/profile 中添加路径:usr/MPICH-install/bin 然后可测试路径设置: #which mpd #which mpicc #which mpiexec #which mpirun 5)创建/etc/mpd.conf文件,输入内容为secretword=myword 设置文件读取权限和修改时间: #touch /etc/mpd.conf

LINUX下安装软件方法命令方法

6) 执行“makeclean”删除安装时产生的临时文件。 7) 运行应用程序:一般来说,Linux的应用软件的可执行文件会存放在/usr/local/bin目录下!不过这并不是“放四海皆准”的真理,最可靠的还是看这个软件的 INSTALL和README文件,一般都会有说明。 8) 卸载:通常软件的开发者很少考虑到如何卸载自己的软件,而tar又仅是完成打包的工作,所以并没有提供良好的卸载方法。有两个软件能够解决这个问题,那就是Kinstall和Kife,它们是tar包安装、卸载的黄金搭档 5.rpm包: 1) 操作系统:RedHat(Red Hat/Fedora) 2) 常见的安装包格式 rpm包,安装rpm包的命令是“rpm -参数” 3) 包管理工具 yum 4) 支持tar包 5.1rpm命令 安装: rpm –ivh 软件包名.rpm( -I 安装软件,-t测试安装,不是真的安装,-p显示安装进度,-f忽略任何错误,-U升级安装,-v检测套件是否正确安装) 卸载: rpm –e 软件名(注意使用的是软件名,而不是软件包名) 查询:查询当前系统安装的软件包: rpm –qa ‘*软件包名*’ rpm description rpm -Uvh packages(s).rpm install/upgrade package ?le(s) rpm -e package emove package rpm -qa '*spell*'show all packages whose names contain the word spell and already installed in system rpm -q package show version of package installed rpm -q -i package show all package metadata rpm -q -i -p package.rpm show all package ?le's metadata rpm -q -f /path/?le what package does ?le belong rpm -q -l package list where ?les were installed

LINUX软件安装方法

Linux软件安装常用方法 1、软件安装卸载,分几种情况: A:RPM包,这种软件包就像windows的EXE安装文件一样,各种文件已经编译好,并打了包,哪个文件该放到哪个文件夹,都指定好了,安装非常方便,在图形界面里你只需要双击就能自动安装。 ==如何卸载: 1、打开一个SHELL终端 2、因为Linux下的软件名都包括版本号,所以卸载前最好先确定这个软件的完整名称。 查找RPM包软件:rpm -qa ×××* 注意:×××指软件名称开头的几个字母,不要求写全,但别错,*就是通配符号“*”,即星号,如你想查找机子里安装的REALPLAYER软件,可以输入:rpm -qa realplay* 3、找到软件后,显示出来的是软件完整名称,如firefox-1.0.1-1.3.2 执行卸载命令:rpm -e firefox-1.0.1-1.3.2 ===安装目录,执行命令查找:rpm -ql firefox-1.0.1-1.3.2 ===参考文章:https://www.doczj.com/doc/5c4291112.html,/article.p...178&blogId=1438 B:tar.gz(bz或bz2等)结尾的源代码包,这种软件包里面都是源程序,没有编译过,需要编译后才能安装,安装方法为: 1、打开一个SHELL,即终端 2、用CD 命令进入源代码压缩包所在的目录 3、根据压缩包类型解压缩文件(*代表压缩包名称) tar -zxvf ****.tar.gz tar -jxvf ****.tar.bz(或bz2) 4、用CD命令进入解压缩后的目录 5、输入编译文件命令:./configure(有的压缩包已经编译过,这一步可以省去) 6、然后是命令:make 7、再是安装文件命令:make install 8、安装完毕

Intel MPI 4.1.0及MPICH2 1.2.1 for rhel6.2 X86_64 install

MPICH2 1.2.1 for rhel6.2 X86_64 install 物理机配置:Core i3 CPU(64位、VT技术支持即可),Win7 X86_64位系统(64位系统即可),6G内存(全安装完后,内存利用率为81%),300G硬盘 虚拟机配置(1,2,3机类似):1 CPU,2/1/1G内存,60/20/10G硬盘,双网卡 软件:VirtualBox 4.2.12,rhel6.2 X86_64,MPICH2基本包(包含1个文件),详见下面: 建立三个虚拟机,配置如下图:

安装rhel6.2 X86_64系统,可用虚拟光驱安装。分区情况:/——60/20/10G,swap ——4/2/2G,文件包为缺省安装,最好选择英文模式,添加中文支持即可。不安装防火墙和Selinux,不打任何补丁。安装步骤略。 本文说明如下: 为1机root用户执行 为2机root用户执行,另不说明或#开头即为2机root用户执行 为3机root用户执行 因有些步骤忘记了截图,选用了网络上的相应图片,会根据情况相应说明,在这里对选用了相应图片的作者表示感谢! 一、r ed hat enterprise linux 6 yum服务器的搭建 1、创建源文件存放的目录。 #mkdir /yum/ 2、挂光盘。 #mount /dev/cdrom media 3、将光盘文件复制到服务器上的源目录。 #cp -a /media/* /yum/ 4、新建一个yum源的响应文件,后缀为.repo。 #vi /etc/yum.repos.d/local.repo 其内容如下: 5、修改yum源地址。 #vi /usr/lib/python2.6/site-packages/yum/yumRepo.py 中的782行: Remote = url + ‘/’ + relative 将其改为: Remote = url + ‘/yum’ + relative 6、关于yum的一些命令。 #yum clean all #yum install -y *** #yum grouplist #yum groupinstall ***

LINUX系统必备程序安装步骤

1.红帽企业版5获得root权限方法: su root

2. 红帽企业版5 启动samba的方法: a.在安装LINUX的过程中将所有选项都选择上,这样可以确保samba等软件 都已经安装好。 b. 修改/etc/samba/smb.conf,添加: [root] comment = Root Directories browseable = yes writeable = yes path = / valid users = smb(用户名) c.添加用户: RHEL5: Useradd smb //添加smb系统用户 Smbpasswd -a smb //修改密码 d.重新启动samba: /etc/init.d/smb restart e.windows访问LINUX 访问LINUX的IP地址,输入用户名smb及密码就可以正常访问linux了

3.建立tftp服务器: a.在安装LINUX的过程中将所有选项都选择上,这样可以确保tftp等软件都 已经安装好。 b.建立TFTP主工作目录: mkdir /tftpboot c.修改配置文件 vi /etc/xinet d.d/tftp修改内容如下: d.重新启动tftp /etc/init.d/xinetd restart e.确认TFTP启动的是否成功:netstat –a | grep tftp

4.NFS a.配置vi /etc/exports b.重新启动NFS服务器:/etc/init.d/nfs restart

5.升级安装LINUX内核: a.解压缩内核代码tar –xvzf linux-2.6.32.27 b.拷贝config 文件将目录boot下的原先LINUX内核的CONFIG文件复制到 新内核的根目录下名字为.config c.make menuconfig d.make bzImage e.make modules f. make modules_install g.制作init ramdisk: h.内核安装: i.升级内核后重新启动机器所遇到的问题解决办法: 方法:编译时修改.config文件中的“CONFIG_SYSFS_DEPRECATED_V2”,默认该选项为not set,被注释掉的,将其改为y。即修改为 “CONFIG_SYSFS_DEPRECATED_V2=y”,修改后,再编译,重启即正常了。

MPI安装、设置以及运行

MPI安装、VS设置以及运行 一安装 MPICH2的安装很简单,按照步骤来就行了。 Intel cluster tool 安装参照install-cluster说明,找到license file即可。 安装完成后在“任务管理器”进程中能找到“smpd.exe”进程说明安装成功。如下图 二VS设置(c语言) 首先按照VS步骤新建空项目,编辑源文件。 完成源文件c后,需对其属性进行如下设置才能成功生成exe文件。 1、添加include 在工具栏中选择“项目”——“test1属性”,将出现test1属性页,选择“配置属性”——“c/c++”——“常规”,在右侧“附加包含目录”中添加MPI的“include”文件夹,如下图

2、添加lib 同样在属性页中选择“配置属性”——“链接器”——“常规”,在右侧“附加库目录”中 添加“lib”文件夹,如下图

3、设置参数 同样在属性页中选择“配置属性”——“链接器”——“输入”,在右侧“附加依赖项”中输入“mpi.lib”. 如下图 确定,然后退出,完成设置,可以生成exe文件。 三运行生成的exe文件 运行exe文件有两种方法,一种通过“开始”——“程序”——“MPICH2”——“wmpiexec.exe”运行,另一种是通过“命令提示符”窗口运行。 但运行前都需要注册,MPI要求电脑设置管理员用户和密码,在注册时采用相同用户名和密码。设置步骤如下: 1、设置电脑管理员用户名和密码 2、“开始”——“程序”——“MPICH2”——“wmpiregister.exe”出现如下界面,输入用户名及密码,register,完成注册。

linux软件安装命令

linux:linux软件安装命令 [root@test /root]# md5sum [-bct] filename [root@test /root]# md5sum [--status|--warn] --check filename 参数说明: -b :使用binary 的读档方式,预设为Windows/DOS 档案型态的读取方式;-c :检验md5sum 档案指纹; -t :以文字型态来读取md5sum 的档案指纹。 范例: [root@test /root]# md5sum grep-2.5.1-7.8.i386.rpm 5a0c3fcfcd4c3f937644b8cd71a0cf89 grep-2.5.1-7.8.i386.rpm # 看!显示的编码是否与上面相同呢?!赶紧测试看看! tar.gz源代码包安装方式 #1. 解压缩,并阅读一下ntp 底下的README 与INSTALL: [root@test root]# cd /usr/local/src [root@test src]# tar -zxvf /root/ntp-4.1.2.tar.gz # 这个步骤会让原始码解开成为/usr/local/src/ntp-4.1.2 这个目录 # 2. 进入原始码所在目录,并且查阅如何安装的技巧: [root@test src]# cd ntp-4.1.2 [root@test ntp-4.1.2]# vi INSTALL ( 或vi README) # 3. 开始设定参数、编译与安装: [root@test ntp-4.1.2]# ./configure --help | more # 上面这个动作可以察看一下可用的参数! [root@test ntp-4.1.2]# ./configure --prefix=/usr/local/ntp \ > --enable-all-clocks --enable-parse-clocks checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes .....(略).... configure: creating ./config.status config.status: creating Makefile # 一般来说configure 设定参数较重要的就是那个--prefix=/path 了,

相关主题
文本预览
相关文档 最新文档