免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4969 | 回复: 13
打印 上一主题 下一主题

[安装配置] 急,求c++ 编译器for aix4.3.3的详细安装文档!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-16 13:26 |只看该作者 |倒序浏览
那位大侠有啊,谢谢了。

论坛徽章:
0
2 [报告]
发表于 2003-10-16 13:34 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

在论坛里找,有很多的

论坛徽章:
0
3 [报告]
发表于 2003-10-16 13:34 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

gcc-3.3.1

论坛徽章:
0
4 [报告]
发表于 2003-10-16 13:40 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

我找了,没有很详细的。我是说visual age C++,坛里是c的

论坛徽章:
0
5 [报告]
发表于 2003-10-16 13:41 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

第一步:下载


第二步:安装
# ls
gnu.gcc-2.95.3.0.exe
gnu.gcc.g++-2.95.3.0.exe
# chmod +x *exe
# ./gnu.gcc-2.95.3.0.exe
UnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@lists.wku.edu).
--inflating: gnu.gcc-2.95.3.0.bff
--inflating: gnu.gcc-2.95.3.0.bff.asc
# ./gnu.gcc.g++-2.95.3.0.exe
UnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@lists.wku.edu).
--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...done
Verifying requisites...done
Results...

SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and 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 installed

Filesystem 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.3
Copyright (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 risk
as to the quality and performance of the Materials is with you.
Neither Bull nor its suppliers warrant that the functions contained
in the Materials will meet your requirements or that the Materials
will 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 files
This will take several minutes
To re-execute this procedure (after installing new include files)
perform the fillowing commands
----# cd /usr/local/lib/gcc-2.95.3
----# ./dofix
lsdev: 0514-518 Cannot access the CuDv object class in the device
--------configuration database.
/usr/sbin/lsattr: option requires an argument -- l
lsattr: 0514-500 Usage error - _=/usr/sbin/lsattr

Usage:
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 -h

Fixing headers into /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/includt
Finding directories and links to directories
Searching /usr/include/.
Searching /usr/include/./X11
Searching /usr/include/./uil
Searching /usr/include/./Xm
Searching /usr/include/./Mrm
All directories (including links to directories):
./sys ./diag ./nfs ./rpcsvc ./nsl ./tirpc ./tirpc/rpc ./tirpc/rpcsvc
./oncplus s
Making symbolic directory links
./X11 ->; root/usr/lpp/X11/include/X11 : Making rooted link
Duplicating ./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 link
Fixing directory /usr/include into /usr/local/lib/gcc-lib/powerpc-ibm-
aix4.3.2.e
Applying Io_Def_Quotes ----------to ./sys/ioctl.h
Applying Isc_Sys_Limits ---------to ./sys/limits.h
Applying Hpux_Maxint ------------to ./sys/param.h
Applying Aix_Volatile -----------to ./sys/signal.h
Fixed: ./sys/signal.h
Applying Io_Def_Quotes ----------to ./sys/stropts.h
Applying Ioctl_Fix_Ctrl ---------to ./sys/ttychars.h
Fixed: ./sys/ttychars.h
Applying Irix_Multiline_Cmnt ----to ./sys/types.h
Applying Systypes ---------------to ./sys/types.h
Applying Systypes_For_Aix -------to ./sys/types.h
Fixed: ./sys/types.h
Applying Next_Wait_Union --------to ./sys/wait.h
Fixed: ./sys/wait.h
Applying No_Double_Slash --------to ./nsl/cache.h
Fixed: ./nsl/cache.h
Applying Io_Def_Quotes ----------to ./net/bpf.h
Applying Machine_Name -----------to ./net/bpf.h
Fixed: ./net/bpf.h
Applying End_Else_Label ---------to ./net/bpfdesc.h
Fixed: ./net/bpfdesc.h
Applying Io_Def_Quotes ----------to ./netinet/if_802_5.h
Fixed: ./netinet/if_802_5.h
Applying Ip_Missing_Semi --------to ./netinet/ip.h
Applying Machine_Name -----------to ./Motif1.2/Xm/XmosP.h
Fixed: ./Motif1.2/Xm/XmosP.h
Applying Machine_Name -----------to ./arpa/nameser_compat.h
Fixed: ./arpa/nameser_compat.h
Applying Machine_Name -----------to ./arpa/onameser_compat.h
Fixed: ./arpa/onameser_compat.h
Applying Irix_Sockaddr ----------to ./rpc/auth.h
Applying Sun_Auth_Proto ---------to ./rpc/auth.h
Fixed: ./rpc/auth.h
Applying Sun_Auth_Proto ---------to ./rpc/clnt.h
Fixed: ./rpc/clnt.h
Applying Nested_Comment ---------to ./rpc/rpc.h
Applying Sun_Auth_Proto ---------to ./rpc/svc.h
Applying Ultrix_Nested_Cmnt -----to ./rpc/svc.h
Fixed: ./rpc/svc.h
Applying Cxx_Unready ------------to ./rpc/types.h
Fixed: ./rpc/types.h
Applying Irix_Struct__File ------to ./rpc/xdr.h
Applying Sun_Auth_Proto ---------to ./rpc/xdr.h
Fixed: ./rpc/xdr.h
Applying Avoid_Bool -------------to ./curses.h
Applying Void_Null --------------to ./curses.h
Fixed: ./curses.h
Applying Bad_Lval ---------------to ./dirent.h
Applying Bad_Lval ---------------to ./ftw.h
Applying Bad_Lval ---------------to ./grp.h
Applying End_Else_Label ---------to ./netiso/argo_debug.h
Fixed: ./netiso/argo_debug.h
Applying Machine_Name -----------to ./netiso/clnp.h
Fixed: ./netiso/clnp.h
Applying End_Else_Label ---------to ./netiso/cons_pcb.h
Fixed: ./netiso/cons_pcb.h
Applying Machine_Name -----------to ./netiso/esis.h
Fixed: ./netiso/esis.h
Applying End_Else_Label ---------to ./netiso/tp_param.h
Fixed: ./netiso/tp_param.h
Quoted includes in ./netiso/tp_param.h
Applying Machine_Name -----------to ./netiso/tp_tpdu.h
Fixed: ./netiso/tp_tpdu.h
Applying End_Else_Label ---------to ./netiso/tp_trace.h
Fixed: ./netiso/tp_trace.h
Quoted includes in ./netiso/tp_trace.h
Applying End_Else_Label ---------to ./netiso/tp_user.h
Fixed: ./netiso/tp_user.h
Quoted includes in ./netiso/tp_user.h
Applying Bad_Lval ---------------to ./libgen.h
Applying Limits_Ifndefs ---------to ./limits.h
Applying Void_Null --------------to ./locale.h
Fixed: ./locale.h
Applying Sun_Malloc -------------to ./malloc.h
Applying Math_Exception ---------to ./math.h
Applying Math_Gcc_Ifndefs -------to ./math.h
Applying Rs6000_Double ----------to ./math.h
Applying Sunos_Matherr_Decl------to ./math.h
Applying Ultrix_Atof_Param ------to ./math.h
Fixed: ./math.h
Applying Bad_Lval ---------------to ./ndbm.h
Applying Machine_Name -----------to ./netns/ns.h
Fixed: ./netns/ns.h
Applying Machine_Name -----------to ./netns/spp_var.h
Fixed: ./netns/spp_var.h
Applying Bad_Lval ---------------to ./pthread.h
Applying Bad_Lval ---------------to ./pwd.h
Applying Bad_Lval ---------------to ./signal.h
Applying Bad_Lval ---------------to ./standards.h
Applying Systypes ---------------to ./stddef.h
Fixed: ./stddef.h
Applying Io_Def_Quotes ----------to ./stdio.h
Applying Rs6000_Param -----------to ./stdio.h
Applying Stdio_Va_List ----------to ./stdio.h
Applying Ultrix_Const -----------to ./stdio.h
Fixed: ./stdio.h
Applying Bad_Lval ---------------to ./stdlib.h
Applying Systypes ---------------to ./stdlib.h
Applying Sysz_Stdlib_For_Sun ----to ./stdlib.h
Fixed: ./stdlib.h
Applying Bad_Lval ---------------to ./string.h
Applying Sysv68_String ----------to ./string.h
Fixed: ./string.h
Applying Sunos_Strlen -----------to ./strings.h
Applying Bad_Lval ---------------to ./stropts.h
Applying Avoid_Bool -------------to ./term.h
Applying Bad_Lval ---------------to ./time.h
Applying Bad_Lval ---------------to ./unistd.h
Applying Rs6000_Param -----------to ./unistd.h
Applying Machine_Name -----------to ./isode/general.h
Fixed: ./isode/general.h
Applying Machine_Name -----------to ./isode/manifest.h
Fixed: ./isode/manifest.h
Fixing directory /usr/include/X11 into /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1
Applying Machine_Name -----------to ./X11/ext/servermd.h
Fixed: ./X11/ext/servermd.h
Applying Machine_Name -----------to ./X11/Xfuncs.h
Fixed: ./X11/Xfuncs.h
Applying End_Else_Label ---------to ./X11/Xi18nlib.h
Fixed: ./X11/Xi18nlib.h
Applying Machine_Name -----------to ./X11/Xosdefs.h
Fixed: ./X11/Xosdefs.h
Copied ./netiso/tp_states.h
Copied ./netiso/tp_events.h
Copied ./netiso/../netiso/tp_pcb.h
Cleaning up DONE files.
Removing unneeded directories:
Various warnings and error messages from fixproto are normal
fixproto: 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: ware
fix-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.h
To re-execute this procedure (after installing new include files)
perform the fillowing commands
----# cd /usr/local/lib/gcc-2.95.3
----# ./dofix
No info directory found !
stopping
Filesets 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.2
Copyright (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 delivered
in 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 ---SUCCESS
freeware.gnu.gcc.g++ --2.95.3.0 -- USR ----APPLY ---SUCCESS

第三步:配置
主要是环境变量问题,编辑用户的profile文件,包含下列设置
Export PATH=$PATH:/usr/local/bin
Export LIBPATH=$LIBPATH;/usr/local/lib
Export MANPATH=$MANPATH:/usr/local/man

论坛徽章:
0
6 [报告]
发表于 2003-10-16 13:42 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

谢谢。楼上的。有visual age C++的安装文档吗,我要用这个。再次谢谢

论坛徽章:
0
7 [报告]
发表于 2003-10-16 14:03 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

1.        Smitty install_latest
选择除”for AIX 4.1和4.2”以外的所有包
2.        find / -name replaceCSET  àreturn : /usr/vac/bin/replaceCSET
3.        /usr/vac/bin/replaceCSET
4.        /var/ifor/i4config
a)        First Screen select 2:Nodelock License Server
b)        Do you want to disable remote Admin of this Nodelock license Server: n
c)        2-direct binding Only
d)        Do you want to change the Nodelock License Server IP port #: n
e)        Choose the desired Server(s) Logging Level: 1(default)
f)        Default log file path is /var/ifor ..: Enter
g)        Server Configuration is completed, do you want to change …?: n
h)        Do you want the License Server automatically start on system boot: y
i)        Warning : the configuration is about to end , continue?” y
j)        Do you want to start the license Server now? y
5.        find / name *.lic
results: /usr/vac/cforaix_cn.lic; /usr/vacpp/vacpp_cn.lic
/var/ifor/i4blt –a –f /usr/vac/cforaix_cn.lic –R root –T 10
/var/ifor/i4blt –a –f /usr/vacpp/cacpp_cn.lic –R root –T 10

最后一行就是C++的LICENSE安装.

论坛徽章:
0
8 [报告]
发表于 2003-10-16 14:03 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

C & Visual Age C++的安装
使用root身份登录系统,将光盘放入光驱,C for AIX只有一张光盘,而Visual Age C++有两张盘,放第一张盘。使用命令:
#smitty install_latest
选择安装介质为/dev/cd0
Install and Update from LATEST Available Software
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                       [Entry Fields]
* INPUT device / directory for software               /dev/cd0
* SOFTWARE to install                                [_all_latest]  +
PREVIEW only? (install operation will NOT occur)       no         +
COMMIT software updates?                               yes        +
SAVE replaced files?                                   no         +
AUTOMATICALLY install requisite software?             yes         +
EXTEND file systems if space needed?                  yes         +
OVERWRITE same or newer versions?                      no         +
VERIFY install and check file sizes?                   no         +
Include corresponding LANGUAGE filesets?               yes        +
DETAILED output?                                        no        +
Process multiple volumes?                              yes        +
提交安装光盘上所有软件

二、License Server的配置
步骤一:
使用命令:#/usr/vac/bin/replaceCSET
运行命令:#/var/ifor/i4config

步骤二:
From a License Management point of view,
you can choose to configure this system as:
   1) Network License Client
   2) Nodelock License Server (and/or Network License Client)
   3) Network (and/or Nodelock) License Server
   4) 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 License
Server? [y,n]:  y

选择y

步骤四:
You have to choose now which mechanism must be enabled
to locate this License Server:
   1) NCS Namespace and Direct Binding (*)
   2) Direct Binding only
(*) WARNING: Modifying NCS Namespace configuration may affect
   any 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 the
Nodelock 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 level
   1) Default
2) All
3) Customized
Please indicate your choice [1,2,3]: 1

选择1

步骤七
The default Log file(s) path is /var/ifor
Enter 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 for
Administration purposes and for working as Network License Client) ?  [y,n]: n

选择n

步骤九
Do you want the License Server(s) automatically start on this system
at 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:
运行命令:
#/var/ifor/i4blt -a -f /usr/vac/cXXaix_cn.lic -R root -T 10(XX为版本,10为license)
Visual Age C++:
运行命令:
#/var/ifor/i4blt -a -f /usr/vacpp/vacpp_cn.lic -R root -T 10
屏幕显示:
i4blt Version 4.5.1 AIX -- LUM Basic License Tool
(c) Copyright 1995-1998, IBM Corporation, All Rights Reserved
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
(c) Copyright 1991-1998 Gradient Technologies Inc., All Rights Reserved
(c) Copyright 1991,1992,1993, Hewlett-Packard Company, All Rights Reserved

ADM-10099: Product successfully enrolled

配置完成

三、测试方法
通过编译程序文件的方式来测试编译器是否正常工作。
C编译器的测试
执行如下命令:
#cd /tmp
#vi testc.c
testc.c内容如下:
#include <stdio.h>;
main()
{
printf(“\nC is OK!\n\n”);
}

编译test.c
#make test
生成可执行文件test(通过ls命令可以看到)
运行 test
#./test
屏幕输出
C is OK!
说明C程序编译正确。
VC的程序就请自己编拉:)

补充:
# /var/ifor/i4blt –s –l cn看看注册成功否?
另外,修改/usr/vac/cforaix_cn.lic文件,第一句话的最后一部分"admin_name"
不要改为root,而是改为 * ,提交以后其他用户编译就不会出现提示了


err:central registery server is not running???

论坛徽章:
0
9 [报告]
发表于 2003-10-16 14:05 |只看该作者

急,求c++ 编译器for aix4.3.3的详细安装文档!!

谢谢啊!!!
todd 该用户已被删除
10 [报告]
发表于 2003-10-16 15:06 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP