AIX 安装GCC
c++ 编译器for aix的详细安装

第一步:下载第二步:安装# lsgnu.gcc-2.95.3.0.exegnu.gcc.g++-2.95.3.0.exe# chmod +x *exe# ./gnu.gcc-2.95.3.0.exeUnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@). --inflating: gnu.gcc-2.95.3.0.bff--inflating: gnu.gcc-2.95.3.0.bff.asc# ./gnu.gcc.g++-2.95.3.0.exeUnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@). --inflating: gnu.gcc.g++-2.95.3.0.bff--inflating: gnu.gcc.g++-2.95.3.0.bff.asc# inutoc .# installp -aXgd . all+-----------------------------------------------------------------+Pre-installation Verification...+-----------------------------------------------------------------+Verifying selections...doneVerifying requisites...doneResults...SUCCESSES---------Filesets listed in this section passed pre-installation verificationand will be installed.Selected Filesets-----------------freeware.gnu.gcc.g++ 2.95.3.0 ---# GNU Compiler Collection Extras freeware.gnu.gcc.rte 2.95.3.0 ---# GNU Compiler Collection<< End of Success Section >;>;FILESET STATISTICS------------------2 Selected to be installed, of which:--2 Passed pre-installation verification----2 Total to be installedFilesystem size changed to 1179648+----------------------------------------------------------------+Installing Software...+----------------------------------------------------------------+installp: APPLYING software for:--------freeware.gnu.gcc.rte 2.95.3.0. . . . . << Copyright notice for freeware.gnu.gcc >;>; . . . . . . .GCC, GNU Compiler Collection, version 2.95.3Copyright (C) 2001 Free Software Foundation, Inc.Plaese refer to the COPYING file delivered in the directory/usr/local/lib/gcc-2.95.3 for complete details. The README file delivered in the same directory should also be read.Packaging is Copyright (C) 2001 BULL SA.This LPP shall not be redistributed commercially. Software, information and material distributed as freeware or shareware (hereinafter the"Materials"are provided "as is", without warranty of any kind.Bull and its suppliers disclaim all warranties whether expressed or implied, including, but not limited to the implied warranties of merchantability and fitness for a particular purpose. The entire riskas to the quality and performance of the Materials is with you.Neither Bull nor its suppliers warrant that the functions containedin the Materials will meet your requirements or that the Materialswill be error free.Bull and its suppliers shall in no event be liable for direct or indirect damage caused to the User or to third parties by use of the Materials, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use or performance of the Materials.. . . . . << End of copyright notice for freeware.gnu.gcc >;>;. . . .Post-inststallation configuration - generate fixed header filesThis will take several minutesTo re-execute this procedure (after installing new include files)perform the fillowing commands----# cd /usr/local/lib/gcc-2.95.3----# ./dofixlsdev: 0514-518 Cannot access the CuDv object class in the device--------configuration database./usr/sbin/lsattr: option requires an argument -- llsattr: 0514-500 Usage error - _=/usr/sbin/lsattrUsage:lsattr {-D[-O]| -E[-O] | -F Format} -l Name [-a Attribute]...[-H][-f File]lsattr {-D[-O]| -F Format}{[-c Class][-s Subclass][-t Type]}[-a Attribute]...[-H][-f File]lsattr -R {-l Name | [-c Class][-s Subclass][-t Type]} -a Attribute [-H][-f File]lsattr -hFixing headers into /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includt Finding directories and links to directoriesSearching /usr/include/.Searching /usr/include/./X11Searching /usr/include/./uilSearching /usr/include/./XmSearching /usr/include/./MrmAll directories (including links to directories):./sys ./diag ./nfs ./rpcsvc ./nsl ./tirpc ./tirpc/rpc ./tirpc/rpcsvc./oncplus sMaking symbolic directory links./X11 ->; root/usr/lpp/X11/include/X11 : Making rooted linkDuplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includs Duplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includm Duplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includa Duplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includm Duplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includw Duplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includu Duplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includt Duplicating ./X11's /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includs ./uil ->; Motif1.2/uil : Making local link./Xm ->; Motif1.2/Xm : Making local link./Mrm ->; Motif1.2/Mrm : Making local linkFixing directory /usr/include into /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.eApplying Io_Def_Quotes ----------to ./sys/ioctl.hApplying Isc_Sys_Limits ---------to ./sys/limits.hApplying Hpux_Maxint ------------to ./sys/param.hApplying Aix_V olatile -----------to ./sys/signal.hFixed: ./sys/signal.hApplying Io_Def_Quotes ----------to ./sys/stropts.hApplying Ioctl_Fix_Ctrl ---------to ./sys/ttychars.hFixed: ./sys/ttychars.hApplying Irix_Multiline_Cmnt ----to ./sys/types.hApplying Systypes ---------------to ./sys/types.hApplying Systypes_For_Aix -------to ./sys/types.hFixed: ./sys/types.hApplying Next_Wait_Union --------to ./sys/wait.hFixed: ./sys/wait.hApplying No_Double_Slash --------to ./nsl/cache.hFixed: ./nsl/cache.hApplying Io_Def_Quotes ----------to ./net/bpf.hApplying Machine_Name -----------to ./net/bpf.hFixed: ./net/bpf.hApplying End_Else_Label ---------to ./net/bpfdesc.hFixed: ./net/bpfdesc.hApplying Io_Def_Quotes ----------to ./netinet/if_802_5.h Fixed: ./netinet/if_802_5.hApplying Ip_Missing_Semi --------to ./netinet/ip.hApplying Machine_Name -----------to ./Motif1.2/Xm/XmosP.h Fixed: ./Motif1.2/Xm/XmosP.hApplying Machine_Name -----------to ./arpa/nameser_compat.h Fixed: ./arpa/nameser_compat.hApplying Machine_Name -----------to ./arpa/onameser_compat.h Fixed: ./arpa/onameser_compat.hApplying Irix_Sockaddr ----------to ./rpc/auth.hApplying Sun_Auth_Proto ---------to ./rpc/auth.hFixed: ./rpc/auth.hApplying Sun_Auth_Proto ---------to ./rpc/clnt.hFixed: ./rpc/clnt.hApplying Nested_Comment ---------to ./rpc/rpc.hApplying Sun_Auth_Proto ---------to ./rpc/svc.hApplying Ultrix_Nested_Cmnt -----to ./rpc/svc.hFixed: ./rpc/svc.hApplying Cxx_Unready ------------to ./rpc/types.hFixed: ./rpc/types.hApplying Irix_Struct__File ------to ./rpc/xdr.hApplying Sun_Auth_Proto ---------to ./rpc/xdr.hFixed: ./rpc/xdr.hApplying Avoid_Bool -------------to ./curses.hApplying V oid_Null --------------to ./curses.hFixed: ./curses.hApplying Bad_Lval ---------------to ./dirent.hApplying Bad_Lval ---------------to ./ftw.hApplying Bad_Lval ---------------to ./grp.hApplying End_Else_Label ---------to ./netiso/argo_debug.h Fixed: ./netiso/argo_debug.hApplying Machine_Name -----------to ./netiso/clnp.h Fixed: ./netiso/clnp.hApplying End_Else_Label ---------to ./netiso/cons_pcb.h Fixed: ./netiso/cons_pcb.hApplying Machine_Name -----------to ./netiso/esis.h Fixed: ./netiso/esis.hApplying End_Else_Label ---------to ./netiso/tp_param.h Fixed: ./netiso/tp_param.hQuoted includes in ./netiso/tp_param.hApplying Machine_Name -----------to ./netiso/tp_tpdu.h Fixed: ./netiso/tp_tpdu.hApplying End_Else_Label ---------to ./netiso/tp_trace.h Fixed: ./netiso/tp_trace.hQuoted includes in ./netiso/tp_trace.hApplying End_Else_Label ---------to ./netiso/tp_user.h Fixed: ./netiso/tp_user.hQuoted includes in ./netiso/tp_user.hApplying Bad_Lval ---------------to ./libgen.hApplying Limits_Ifndefs ---------to ./limits.hApplying V oid_Null --------------to ./locale.hFixed: ./locale.hApplying Sun_Malloc -------------to ./malloc.hApplying Math_Exception ---------to ./math.hApplying Math_Gcc_Ifndefs -------to ./math.hApplying Rs6000_Double ----------to ./math.hApplying Sunos_Matherr_Decl------to ./math.hApplying Ultrix_Atof_Param ------to ./math.hFixed: ./math.hApplying Bad_Lval ---------------to ./ndbm.hApplying Machine_Name -----------to ./netns/ns.h Fixed: ./netns/ns.hApplying Machine_Name -----------to ./netns/spp_var.h Fixed: ./netns/spp_var.hApplying Bad_Lval ---------------to ./pthread.hApplying Bad_Lval ---------------to ./pwd.hApplying Bad_Lval ---------------to ./signal.hApplying Bad_Lval ---------------to ./standards.h Applying Systypes ---------------to ./stddef.hFixed: ./stddef.hApplying Io_Def_Quotes ----------to ./stdio.hApplying Rs6000_Param -----------to ./stdio.hApplying Stdio_Va_List ----------to ./stdio.hApplying Ultrix_Const -----------to ./stdio.hFixed: ./stdio.hApplying Bad_Lval ---------------to ./stdlib.hApplying Systypes ---------------to ./stdlib.hApplying Sysz_Stdlib_For_Sun ----to ./stdlib.hFixed: ./stdlib.hApplying Bad_Lval ---------------to ./string.hApplying Sysv68_String ----------to ./string.hFixed: ./string.hApplying Sunos_Strlen -----------to ./strings.hApplying Bad_Lval ---------------to ./stropts.hApplying Avoid_Bool -------------to ./term.hApplying Bad_Lval ---------------to ./time.hApplying Bad_Lval ---------------to ./unistd.hApplying Rs6000_Param -----------to ./unistd.hApplying Machine_Name -----------to ./isode/general.hFixed: ./isode/general.hApplying Machine_Name -----------to ./isode/manifest.hFixed: ./isode/manifest.hFixing directory /usr/include/X11 into /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1 Applying Machine_Name -----------to ./X11/ext/servermd.hFixed: ./X11/ext/servermd.hApplying Machine_Name -----------to ./X11/Xfuncs.hFixed: ./X11/Xfuncs.hApplying End_Else_Label ---------to ./X11/Xi18nlib.hFixed: ./X11/Xi18nlib.hApplying Machine_Name -----------to ./X11/Xosdefs.hFixed: ./X11/Xosdefs.hCopied ./netiso/tp_states.hCopied ./netiso/tp_events.hCopied ./netiso/../netiso/tp_pcb.hCleaning up DONE files.Removing unneeded directories:Various warnings and error messages from fixproto are normalfixproto: populating `/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/incl'/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/syslimits.h:7: warefix-header: In file included from /usr/include/nsl/thread.h:65,------from /usr/include/nsl/rpc_mt.h:75,------from /usr/include/nsl/nis_local.h:121,------from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/incl:/usr/include/pthread.h:113: warning: missing white space after `#define PTHREAD' /usr/include/pthread.h:128: warning: missing white space after `#define PTHREAD' /usr/include/pthread.h:147: warning: missing white space after `#define PTHREAD' /usr/include/pthread.h:157: warning: missing white space after `#define PTHREAD'(No *.h files in /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/M)fix-header: fixing isode/general.h(No *.h files in /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/r)(No *.h files in /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/r)(No *.h files in /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/r)(No *.h files in /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/r)(No *.h files in /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/r)fix-header: fixing root/usr/lpp/X11/include/X11/Xfuncs.hTo re-execute this procedure (after installing new include files)perform the fillowing commands----# cd /usr/local/lib/gcc-2.95.3----# ./dofixNo info directory found !stoppingFilesets processed: 1 of 2 (Total time: 14 mins 35 secs).installp: APPLYING software for:--------freeware.gnu.gcc.g++ 2.95.3.0. . . . . << Copyright notice for freeware.gnu.gcc.g++ >;>; . . . . . . .GCC, GNU Compiler Collection, version 2.95.2Copyright (C) 1999 Free Software Foundation, Inc.Plaese refer to the COPYING file delivered in the directory/usr/local/lib/gcc-2.95.2 for complete details. The README file deliveredin the same directory should also be read.Packaging is Copyright (C) 1999 BULL SA. This LPP may not be redistributed comercially. No warranty or support in any form is offered with this LPP. Groupe Bull will not be liable for errors contained herein, or for incidental or consequential damages in connection with the use of this material.. . . . . << End of copyright notice for freeware.gnu.gcc.g++ >;>;. . . .Finished processing all filesets. (Total time: 14 mins 55 secs).+-------------------------------------------------------------+Summaries:+-------------------------------------------------------------+Installation Summary--------------------Name ------------------Level------ Part--- Event----Result---------------------------------------------------------------freeware.gnu.gcc.rte --2.95.3.0 -- USR ----APPLY ---SUCCESSfreeware.gnu.gcc.g++ --2.95.3.0 -- USR ----APPLY ---SUCCESS第三步:配置主要是环境变量问题,编辑用户的profile文件,包含下列设置Export PATH=$PATH:/usr/local/binExport LIBPATH=$LIBPATH;/usr/local/libExport MANPATH=$MANPATH:/usr/local/man。
文档4--AIX平台IBMC安装步骤v1_0

一、C++ for AIX的安装请先安装oracle,以确保装上了bos.adt.libm bos.adt.prof bos.cifs_fs.rte使用root身份登录系统,将光盘放入光驱,C++ for AIX只有一张光盘。
使用命令:1、#smitty进入如下界面:【或输入命令smitty installp会直接跳到第3步】2、选则第一项,回车进入以下界面:3、选则第一项,回车进入以下界面:4、选则第一项,回车进入以下界面:5、选则第一项,按F4 弹出选择列表,选择/dev/cd0 回车,进入如下界面:6、在上述界面修改以下两项:SOFTWARE to install 默认为_all_latest (表示全部,如果不是需要修改)ACCEPT new license agreements?修改为yes设定完毕,回车开始安装。
二、License Server的配置步骤一:运行命令:#/usr/opt/ifor/ls/os/aix/bin/i4config步骤二:From a License Management point of view,you can choose to configure this system as:1) Network License Client2) Nodelock License Server (and/or Network License Client)3) Network (and/or Nodelock) License Server4) Central Registry (and/or Network and/or Nodelock) License Server (*)(*) Remember that one and only one Central Registry License Server (i4gdb daemoe in a Licensing domain.Please indicate your choice [1,2,3,4]: 2选择2步骤三:Do you want to disable remote administration of this Nodelock LicenseServer? [y,n]: y选择y步骤四:You have to choose now which mechanism must be enabledto locate this License Server:1) NCS Namespace and Direct Binding (*)2) Direct Binding only(*) WARNING: Modifying NCS Namespace configuration may affectany other application that use NCS on this system.NCS Namespace is necessary to support old Netls, iFOR/LS Clients.Please indicate your choice [1,2]: 2选择2步骤五The Administration tool usually uses port number [12999] to locate theNodelock License Servers. If for some reason your environment can not use port [12999], or you want to modify a previously assigned port number you can do it now.Do you want to change the Nodelock License Server ip port number? [y,n]: n选择n步骤六Choose the desired Server(s) logging level1) Default2) All3) CustomizedPlease indicate your choice [1,2,3]: 1选择1步骤七The default Log file(s) path is /var/iforEnter blank to accept default or specify a new path:直接回车步骤八Server configuration is complete.Do you want to modify the list of remote Nodelock and/or Network License Servers this system can connect to in direct binding mode (both forAdministration purposes and for working as Network License Client) ? [y,n]: n选择n步骤九Do you want the License Server(s) automatically start on this systemat boot time? [y,n]: y选择y步骤十WARNING: Configuration is about to end.This is your last chance to quit before your updates will be written.Do you want to continue? [y,n]: y选择y步骤十一*** Configuration file updated. ***Do you want the License Server(s) start now? [y,n]: y选择y屏幕显示0513-059 The i4llmd Subsystem has been started. Subsystem PID is 21776. 'Start Services' has completed successfully***************************************** Configuration completed successfully *****************************************步骤十二C for AIX:运行命令:#/usr/opt/ifor/ls/os/aix/bin/i4blt -a -f /usr/vac/cforaix_cn.lic -R root -T 10屏幕显示:Product successfully enrolled配置完成三、测试找到cc命令的路径。
AIX安装

? # smitty lang --- select “Add Additional Language Environments”
将光标移动到 “CULTURAL convention to install” 这一行,键 F4 或 ESC+4
?使用 F7 或 ESC+7 键 选择
执行:#/etc/rc.dt 或 rc.dt 状态如下:# rc.dt
Starting AIX Windows Desktop..............#
Bundle安装成功后,进行系统镜像设置
App-DEV
CDE
Server
*****
bundle 安装比较简单
FREE DISTRIBUTION: 110..106..29..109..109
USED DISTRIBUTION: 00..03..80..00..00
MIRROR POOL: None
若是,则进行下一步:#mirrorvg rootvg #smitty mirrorvg
等待一段时间后出现含有sucessfully的句子即镜像成功。
成功后还要更改系统的启动顺序,
命令为:
#bosboot –ad hdisk1 将启动扇区写入hdisk1
#smit extendvg
然后用lspv来查看两块硬盘是否都是属于rootvg
# lspv
hdisk0 00c15c168b220856 rootvg active
hdisk1 00c15b868b225830 rootvg active
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
AIX操作系统补丁和工具安装通用方法集

AIX操作系统补丁和工具安装通用方法集根据P570_01_LA系统安装为例。
参考了之前黄斌等人写的安装文档。
一.系统补丁以下补丁的安装方法,基本相同,都是使用smit install 的方法。
如下图:1.图形化界面如要需要使用图形化界面,需要安装Xwindows,支持Xwindows需要以下文件集:a)X11.apps.*b)X11.base.*c)pat.*d)X11.fnt.*e)X11.motif.*运行CDE, 需要安装X11.Dt.*如果希望远程使用CDE仿真,还需要安装X11.fnt.fontServer2.C编译器安装ORACLE数据库,需要安装C编译器,1.安装C编译器,需要首先安装文件集:a)bos.adt.baseb)bos.adt.libc)bos.adt.libmd)bos.perf.libperfstate)bos.perf.perfstatf)bos.perf.protools2.安装C编译器。
C的光盘插入后,安装所有更新,占用空间很小。
安装方法如下:安装C/C++Enterprise Edition V7.0 for AIXa)判断满足前提条件(如果没有需要用系统安装盘1来安装)b)安装:插入C++安装光盘smit install_latest, 如下参数选择安装:c)(如果没有安装成功,提示需要accept,则将accept new license agreements设为“yes”)d)测试安装成功:编写一个简单C程序hello.c:#include <stdio.h>int main(void){printf("Hello World!\n");return 0;}编译: /usr/vac/bin/xlc hello.c -o hello运行这个程序: ./hello //*output is Hello World检查返回结果: echo $? //*显示程序的返回结果为0e)设置环境变量:创建symbolic link:ln -s /usr/vac/bin/* /usr/binln -s /usr/vacpp/bin/* /usr/bin编辑环境变量, 在PATH中加入C bin: vi /etc/environmentPATH=/usr/vac/bin:/usr/vacpp/bin确定以下环境变量为所标值, /etc/environment:NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.catLANG=en_USMANPATH=/usr/vacpp/man/en_US:f)安装完毕, 缺省安装路径为: /usr/vac, /usr/vacpp3.Savevg补丁1.3.1 首先确认系统是否要安装该补丁发命令: lslpp -l|grep sysbr,确定bos.sysmgt.sysbr的版本在5.3.0.52以上,下图显示的版本就不符合要求1.3.2安装方法首先需要从10.1.1.5.58(P550_04_LB)上下载。
AIX安装说明流程

AIX 安装默认配置1、设置root密码为root(默认)2、修改IP地址为默认192.168.55.100使用smittytcpip命令修改IP地址3、安装登陆相关软件包1)上传bash-3.0-1.aix5.1.ppc.rpmgzip-1.2.4a-10.aix5.2.ppc.rpmunzip-5.51-1.aix5.1.ppc.rpm使用rpm –ivh安装以上软件包,可以使用bash shell环境和unzip解压工具2)上传openssh_5.4p1openssl-fips.12.9.8.1102软件包使用smittyinstallp先安装openssl-fips.12.9.8.1102,再安装openssh_5.4p1,可以使用SHH 登陆停止ssh服务:stopsrc -s sshd启动ssh服务:startsrc -s sshd停止telnet服务:stopsrc -t telnet4、配置系统镜像,使用如下命令extendvg-f rootvg hdisk1mirrorvgrootvg hdisk1bosboot -ad hdisk1bootlist -m normal -obootlist -m normal hdisk0 hdisk1bootlist -m normal –o3、使用smittymkvg创建datavg(具体VG名称及大小根据实际需求而定、注意选择Add a Big Volume Group选项,以支持超过2TB文件系统)4、使用smittypgsp扩展swap空间大小,一般为内存的一半扩展时使用lsps–a查看当前swap大小,和lsvgrootvg查看当前pp大小注意扩展时为增加pp数量5、扩展文件系统使用smittychfs修改当前文件系统大小文件系统默认分区如下Filesystem大小/ 20GB/usr 10GB/tmp 10GB/var 10GB/opt 10GB/home 20GB/u0 40GB#根据需要/usr/mqm 10GB #根据需要/var/mqm 10GB #根据需要若要创建新的文件系统,使用smittycrfs即可创建,创建时注意选择自动挂载,创建完成后,Smittychps修改Swap分区,查看lsvgrootvg每个PP大小,smittychps中为增加的PP数量。
AIX 系统安装指南

AIX 系统安装指南目录目录1 安装AIX前准备1关于本章11.1 系统环境准备与检查11.1.1 硬件环境11.1.2 安装介质11.2 磁盘规划11.2.1 本地磁盘空间规划12 安装AIX 3关于本章32.1 安装基本操作系统包52.1.2 配置系统参数172.1.3 补充安装需要的包pakage 252.1.4 安装RML(ML) 推荐维护包292.1.5 系统备份332.1.6 安装中文语言包342.1.7 重启系统391 安装AIX前准备AIX系统安装指南插图目录图2-1 选择安装语种 (6)图2-2 更改默认安装设置 (6)图2-3 改变安装方法 (7)图2-4 安装设置 (8)图2-5 安装磁盘设置 (8)图2-6 改变安装磁盘 (9)图2-7 设置64位内核支持 (10)图2-8 64位内核支持 (10)图2-9 选择64位内核 (11)图2-10 JFS2支持 (12)图2-11 安装软件选择 (12)图2-12 安装选项总结 (13)图2-13 开始安装 (13)图2-14 安装过程中1 (14)图2-15 安装过程中2 (14)图2-16 部分安装失败 (15)图2-17 安装附加软件 (15)图2-18 初始化dump设备 (16)图2-19 系统自动重新启动 (17)图2-20 配置助手 (18)图2-21 选择配置日期和时间 (18)图2-22 选择Change/Show Date&Time (19)图2-23 选择定义时区,不选择夏令时 (19)图2-24 选择时区Peoples Rep.China (20)图2-25 设置时区完成 (20)AIX 系统安装指南插图目录图2-26 设置root口令 (21)图2-27 修改root口令 (21)图2-28 配置网络 (22)图2-29 选择TCP/IP Startup (22)图2-30 选择En0 (23)图2-31 输入主机名 (23)图2-32 输入IP地址及掩码 (24)图2-33 系统提示OK (24)图2-34 运行smitty installp (25)图2-35 选择Install Software (26)图2-36 软件选择 (27)图2-37 选择接受新安装协议 (28)图2-38 提示换盘 (28)图2-39 软件包安装完毕 (29)图2-40 从光驱安装补丁 (30)图2-41 选择Add a CDROM File System (30)图2-42 选择Add an Enhanced Journaled File System (31)图2-43 选择在创建好的lv上创建文件系统 (32)图2-44 安装文件系统 (32)图2-45 运行smitty (34)图2-46 选择System Environments (35)图2-47 选择Manage Language Environment (35)图2-48 选择Add Additional Language Environments (36)图2-49 选择安装的语言包 (37)图2-50 系统提示换盘 (38)图2-51 中文语言包安装完毕 (39)AIX 系统安装指南表格目录表格目录表1-1 本地硬盘空间规划表 (1)AIX 系统安装指南 1 安装AIX前准备1 安装AIX前准备关于本章本章描述内容如下表所示。
[1]gcc安装与基本操作
![[1]gcc安装与基本操作](https://img.taocdn.com/s3/m/9d8c834fcf84b9d528ea7a9d.png)
GCC安装GCC的官网 /下载地址 /1. 下载在 GCC网站上(/)或者通过网上搜索可以查找到下载资源。
目前GCC的最新版本为 3.4.0。
可供下载的文件一般有两种形式:gcc-3.4.0.tar.gz和gcc-3.4.0.tar.bz2,只是压缩格式不一样,内容完全一致,下载其中一种即可。
2. 解压缩根据压缩格式,选择下面相应的一种方式解包(以下的“$”表示命令行提示符):$ tar xzvf gcc-3.4.0.tar.gz或者$ bzcat gcc-3.4.0.tar.bz2 | tar xvf -新生成的gcc-3.4.0这个目录被称为源目录,用${srcdir}表示它。
以后在出现${srcdir}的地方,应该用真实的路径来替换它。
用pwd命令可以查看当前路径。
在${srcdir}/INSTALL目录下有详细的GCC安装说明,可用浏览器打开index.html阅读。
3. 建立目标目录目标目录(用${objdir}表示)是用来存放编译结果的地方。
GCC建议编译后的文件不要放在源目录${srcdir}中(虽然这样做也可以),最好单独存放在另外一个目录中,而且不能是${srcdir}的子目录。
例如,可以这样建立一个叫gcc-build 的目标目录(与源目录${srcdir}是同级目录):$ mkdir gcc-build$ cd gcc-build以下的操作主要是在目标目录${objdir} 下进行。
4. 配置配置的目的是决定将GCC编译器安装到什么地方(${destdir}),支持什么语言以及指定其它一些选项等。
其中,${destdir}不能与${objdir}或${srcdir}目录相同。
配置是通过执行 ${srcdir}下的configure来完成的。
其命令格式为(记得用你的真实路径替换 ${destdir}):${srcdir}/configure --prefix= ${destdir} [其它选项]例如,如果想将GCC 3.4.0安装到/usr/local/gcc-3.4.0目录下,则${destdir}就表示这个路径。
IBM-AIX操作系统的安装

AIX 操作系统的安装步骤一、AIX 操作系统的安装步骤二、扩展一个文件系统的大小三、安装Bundle四、安装Oracle 所需要的操作系统包五、安装操作系统补丁六、如何做系统镜像七、更改主机名八、如何给网卡配置IP 地址九、修改系统的配置参数一、AIX 操作系统的安装步骤我们使用来安装操作系统的。
主机接好电源,主机不开机(开关下的绿灯闪烁,LED 显示01 N V=F的状态。
T根据提示按2确认控制台(有时也可能提示按其他数字键如1或0等)一会会出现如下图所示界面,这时可以按5键直接进入光盘引导(一般机器出厂设置都是默认从光盘起),如果不能确定可以不按5,按1键进入如下图所示界面下面则选择5 S elect Boot Options进入下图所示界面按1 (Select Install/Boot Device) 并按Enter回车键进入下图所示界面按3 CD/DVD并按Enter回车键进入下图所示界面按4 IDE 并按Enter回车键进入下图所示界面按1并按Enter回车键进入下图所示界面按2并按Enter回车键进入下图所示界面按1并按Enter回车键进入下图所示界面前面黑色字体所说的按5如果能够直接进入也会进入如下图所示界面等待片刻,会出现绿色字体的界面如下图所示则根据提示键入1(注意根据提示键入,有时可能时提示键入别的数字键)并回车,确认控制台,一会出现如下图所示界面、选择“1”,安装期间使用英语。
选择“2”,改变安装设置。
选择“1”,系统设置选择“1”,进行新的完全安装。
选择安装到那块硬盘,通常是选择hdisk0。
选中的磁盘前有三个“>>>”符号选择完硬盘回车继续又出现如下图所示如果2中的语言不是English(United States)请进入2选择第48项的英文的1那一项即为English(United States),选择完毕进入3中More options 如下图根据用户需求选择系统内核和JFS 类型,然后再选择“7”选择“3”,把Server Bundle 安装上。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
AIX 安装GCC1. Installing the RedHat Package Manager (RPM)在安装GCC软件之前,必须安装RPM - the RedHat Package Manager。
你需要用installp安装RPM包, 下载此包的地址为:ftp:///aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte安装rpm 包,必须以root 用户操作,命令如下:# installp -qacXgd rpm.rte rpm.rteing the RedHat Package Manager (RPM)使用RPM的完整信息详见. 基本的安装操作参数:-i: install-e: erase-q: query--help: helprpm程序在/opt/freeware/bin/中#cd /opt/freeware/bin/# ./rpmRPM version 3.0.5Copyright & 1998 - Red Hat SoftwareThis may be freely redistributed under the terms of the GNU GPL3.下载GCC软件包到/servers/aix/products/aixos/linux/download.html上下载gcc以root用户执行如下步骤:# /opt/freeware/bin/rpm -i gcc-4.0.0-1.aix5.3.ppc.rpm## find / -name "gcc" -print/opt/freeware/bin/gcc/opt/freeware/lib/gcc/opt/freeware/libexec/gcc/usr/bin/gcc你可以在shell的提示符号下键入gcc -v,萤幕上就会显示出你目前正在使用的GCC的版本.在我的系统上,执行gcc -v的结果是:# gcc -vUsing built-in specs.Target: powerpc-ibm-aix5.3.0.0Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0Thread model: aixgcc version 4.0.04.测试方法只要执行gcc时,附加-v这个参数(switch),就能找出你所用的这版gcc,自动帮你定义了什麽符号(symbols).例如,我的机器看起来会像这样:# echo 'main(){printf("hello world\n");}' | gcc -E -v -Using built-in specs.Target: powerpc-ibm-aix5.3.0.0Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0Thread model: aixgcc version 4.0.0/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/cc1 -E -quiet -v -ignoring nonexistent directory "/usr/local/include"ignoring nonexistent directory "/opt/freeware/include"ignoring nonexistent directory "/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../../../powerpc-ibm-aix5.3.0.0/include"#include "..." search starts here:#include <...> search starts here:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/include/usr/includeEnd of search list.# 1 "<stdin>"# 1 "<built-in>"# 1 "<command line>"# 1 "<stdin>"main(){printf("hello world");}通过编译程序文件的方式来测试编译器是否正常工作.C编译器的测试,执行如下命令:#cd /db2db/event#vi cvevm.ccvevm.c内容如下:#define KEYNUMBER 23#include <stdio.h>#include <string.h>int SearchText(char *str);int main(int argc, char ** argv){FILE *fp_in,*fp_out;char buffer[32767];char *ptr ="abc" ;int i;int sequence=0;char *oper="sadf";char *value="skdf";char rec[KEYNUMBER][32767];if(argc != 3){printf("Usage:cvevm input output\n"); exit(1);}fp_in = fopen(argv[1],"r");fp_out = fopen(argv[2],"w");if((fp_in == NULL) || (fp_out == NULL)) {printf("open file failure\n");exit(1);}while(!feof(fp_in)){fgets(buffer,sizeof(buffer),fp_in);if(feof(fp_in)) break;ptr = strstr(buffer,"Statement Event"); if(ptr){sequence++;while(1){fgets(buffer,sizeof(buffer),fp_in);if(feof(fp_in)) break;if (!strncmp(buffer," sqlstate",11)){break;}oper = strtok(buffer,":");if(oper){i = SearchText(oper);if(i > 0){value = strtok(NULL,":");if(value){value[strlen(value)-1] = 0;strcpy(rec[i],value);}}}}fprintf(fp_out,"%d",sequence);for (i=0;i<KEYNUMBER;i++) {if(i == 10){rec[i][11] = 0;}if(i == 12){rec[i][12] = 0;}if(i == 13){rec[i][10] = 0;}if (i == 9){fputc('"',fp_out);fprintf(fp_out,"%s",rec[i]);fputc('"',fp_out);fputc(',',fp_out);}else{fprintf(fp_out,"%s,",rec[i]);}}fprintf(fp_out,"\n");}}fclose(fp_in);fclose(fp_out);}int SearchText(char *str){char *opers[KEYNUMBER] = {" Appl Handle"," Type "," Operation"," Section "," Creator "," Package "," Cursor "," Cursor was blocking"," Text "," Exec Time"," Number of Agents created"," User CPU"," System CPU"," Fetch Count"," Sorts"," Total sort time"," Sort overflows"," Rows read"," Rows written"," Internal rows deleted"," Internal rows updated"," Internal rows inserted"," sqlcode"};int i;for(i=0;i<KEYNUMBER;i++){if (strncmp(str,opers[i],strlen(str)) == 0) {return (i+1);}}return 0;}编译cvevm.c# gcc cvevm.c -o cvevm没有错误出来,证明OK!。