1、登录主机从FTP服务器获取安装包
#telnet 192.168.1.110
# ftp 192.168.1.100
> lcd tmp
>cd /Software/IBM/AIX/cpp8
>bin
> mget * (获取所有文件到目标主机)
2、
#telnet 192.168.1.110
#cd /tmp
#tar cdf cpp8.tar.gz cpp8 (将CPP8目录文件打一个包方便其余的主机)
#Smitty -->software Installation and Maintenance-->Install and Update Sofware--> Install Sofware--> 在INPUT device /directory for software 下输入/tmp/CPP8 > 在SOFWARE to install 下按F4将下面的内容全选 在ACCEPT new License agreements 选择YES 并回车
#smitty install_latest
指定安装包所在的路径,设置ACCEPT new License agreements 选择YES 并回车
登入第二台要安装C语言的主机操作步骤 余下几台操作步骤跟下面操作一样
1、#telent 192.168.1.111
# ftp 192.168.1.100
> lcd tmp
>cd tmp
>bin
>get
2、#telnet 192.168.1.111
#cd /tmp
#tar xvf cpp8.tar.gz
#Smit > software Installation and Maintenance > Install and Update Sofware > Install Sofware > 在INPUT device /directory for software 下输入/tmp/CPP8 > 在SOFWARE to install 下按F4将下面的内容全选 在ACCEPT new License agreements 选择YES 并回车
查看是否安装
#lslpp -L|grep vac
vac.Bnd 8.0.0.0 C F IBM XL C Media Defined Bundles
vac.C 8.0.0.0 C F IBM XL C Compiler
vac.aix50.lib 8.0.0.0 C F IBM XL C Compiler Libraries
vac.html.common.search 8.0.0.0 C F IBM XL C Compiler
vac.html.en_US.C 8.0.0.0 C F IBM XL C Compiler
vac.include 8.0.0.0 C F IBM XL C Compiler Include
vac.lib 8.0.0.0 C F IBM XL C Compiler Libraries
vac.lic 8.0.0.0 C F IBM XL C Licence Files
vac.man.en_US 8.0.0.0 C F IBM XL C Compiler Man
vac.msg.en_US.C 8.0.0.0 C F IBM XL C Compiler Messages -
vac.ndi 8.0.0.0 C F IBM XL C Non-Default
vac.pdf.en_US.C 8.0.0.0 C F IBM XL C Documentation
vacpp.Bnd 8.0.0.0 C F IBM XL C/C++ Media Defined
vacpp.cmp.aix50.lib 8.0.0.0 C F IBM XL C/C++ Libraries for AIX
vacpp.cmp.aix50.tools 8.0.0.0 C F IBM XL C/C++ Tools for AIX 5.0
vacpp.cmp.core 8.0.0.0 C F IBM XL C/C++ Compiler
vacpp.cmp.include 8.0.0.0 C F IBM XL C/C++ Compiler Include
vacpp.cmp.lib 8.0.0.0 C F IBM XL C/C++ Libraries
vacpp.cmp.rte 8.0.0.0 C F IBM XL C/C++ Compiler
vacpp.cmp.tools 8.0.0.0 C F IBM XL C/C++ Tools
vacpp.html.common 8.0.0.0 C F IBM XL C/C++ Documentation
vacpp.html.en_US 8.0.0.0 C F IBM XL C/C++ Documentation
vacpp.lic 8.0.0.0 C F IBM XL C/C++ Licence Files
vacpp.licAgreement 8.0.0.0 C F IBM XL C++ Electronic License
vacpp.man.en_US 8.0.0.0 C F IBM XL C/C++ Compiler Man
vacpp.memdbg.aix50.lib 8.0.0.0 C F IBM XL C/C++ User Heap/Memory
vacpp.memdbg.aix50.rte 8.0.0.0 C F IBM XL C/C++ User Heap/Memory
vacpp.memdbg.lib 8.0.0.0 C F IBM XL C/C++ User Heap and
vacpp.memdbg.rte 8.0.0.0 C F IBM XL C/C++ User Heap and
vacpp.msg.en_US.cmp.core 8.0.0.0 C F IBM XL C/C++ Compiler
vacpp.msg.en_US.cmp.tools 8.0.0.0 C F IBM XL C/C++ Tools
vacpp.ndi 8.0.0.0 C F IBM XL C/C++ Non-Default
vacpp.pdf.en_US 8.0.0.0 C F IBM XL C/C++ Documentation
vacpp.samples.ansicl 8.0.0.0 C F IBM XL C/C++ Compiler ANSI
#lslpp -l|grep xlC
xlC.adt.include 8.0.0.0 COMMITTED C Set ++ Application
xlC.aix50.rte 10.1.0.2 COMMITTED XL C/C++ Runtime for AIX 5.3
xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 10.1.0.2 COMMITTED XL C/C++ Runtime
xlC.rte 10.1.0.2 COMMITTED XL C/C++ Runtime
#
三、测试方法
通过编译程序文件的方式来测试编译器是否正常工作。
C编译器的测试
执行如下命令:
#cd /tmp
#vi testc.c
testc.c内容如下:
#include ;
main()
{
printf(“\nC is OK!\n\n”);
}
编译test.c
#make test
生成可执行文件test(通过ls命令可以看到)
运行 test
#./test
屏幕输出
C is OK!
阅读(9239) | 评论(0) | 转发(1) |