Chinaunix首页 | 论坛 | 博客
  • 博客访问: 499523
  • 博文数量: 401
  • 博客积分: 244
  • 博客等级: 入伍新兵
  • 技术积分: 2215
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-04 10:02
文章分类

全部博文(401)

文章存档

2013年(37)

2012年(364)

分类: AIX

2013-07-08 09:09:05

原文地址:AIX gcc编译环境搭建 作者:xianweibo

GZCRM-APP3:/ftproot/tools/gcc # oslevel -s

6100-06-09-1228

GZCRM-APP3:/ftproot/tools/gcc # lslpp -l|grep -i gcc

GZCRM-APP3:/ftproot/tools/gcc # lslpp -l|grep -i xlc

  xlC.aix61.rte             11.1.0.1  COMMITTED  XL C/C++ Runtime for AIX 6.1

  xlC.cpp                    9.0.0.0  COMMITTED  C for AIX Preprocessor

  xlC.msg.ZH_CN.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         11.1.0.1  COMMITTED  XL C/C++ Runtime

  xlC.msg.zh_CN.cpp          9.0.0.0  COMMITTED  C for AIX Preprocessor

  xlC.rte                   11.1.0.1  COMMITTED  XL C/C++ Runtime

  xlC.sup.aix50.rte          9.0.0.1  COMMITTED  XL C/C++ Runtime for AIX 5.2

GZCRM-APP3:/ftproot/tools/gcc #

GZCRM-APP3:/ftproot/tools/gcc # ls

bash-4.2-6.aix6.1.ppc.rpm               info-5.0-1.aix6.1.ppc.rpm               mpfr-3.0.1-1.aix5.3.ppc.rpm

bash-doc-3.2-4.aix5.1.ppc.rpm           libgcc-4.6.1-1.aix6.1.ppc.rpm           readline-6.2-3.aix6.1.ppc.rpm

gcc-4.6.1-1.aix6.1.ppc.rpm              libiconv-1.13.1-3.aix6.1.ppc.rpm        readline-devel-6.2-3.aix6.1.ppc.rpm

gcc-c++-4.6.1-1.aix6.1.ppc.rpm          libmpc-0.9-1.aix5.3.ppc.rpm             rlwrap-0.37-1.aix5.1.ppc.rpm

gcc-locale-4.6.1-1.aix6.1.ppc.rpm       libstdc++-4.6.1-1.aix6.1.ppc.rpm        zlib-1.2.5-4.aix6.1.ppc.rpm

gettext-0.17-7.aix6.1.ppc.rpm           libstdc++-devel-4.6.1-1.aix6.1.ppc.rpm

gmp-5.0.2-2.aix6.1.ppc.rpm              lsof-4.61-4.aix5.3.ppc.rpm

GZCRM-APP3:/ftproot/tools/gcc #

GZCRM-APP3:/ftproot/tools/gcc # rpm -ivh gettext-0.17-7.aix6.1.ppc.rpm --nodeps

/

gettext                     ##################################################

add libintl.so.1 (32bits) shared member to /opt/freeware/lib/libintl.a

add libintl.so.1 (64bits) shared member to  /opt/freeware/lib/libintl.a

/

GZCRM-APP3:/ftproot/tools/gcc #

GZCRM-APP3:/ftproot/tools/gcc # mv gettext-0.17-7.aix6.1.ppc.rpm ../

GZCRM-APP3:/ftproot/tools/gcc # ls

bash-4.2-6.aix6.1.ppc.rpm               info-5.0-1.aix6.1.ppc.rpm               lsof-4.61-4.aix5.3.ppc.rpm

bash-doc-3.2-4.aix5.1.ppc.rpm           libgcc-4.6.1-1.aix6.1.ppc.rpm           mpfr-3.0.1-1.aix5.3.ppc.rpm

gcc-4.6.1-1.aix6.1.ppc.rpm              libiconv-1.13.1-3.aix6.1.ppc.rpm        readline-6.2-3.aix6.1.ppc.rpm

gcc-c++-4.6.1-1.aix6.1.ppc.rpm          libmpc-0.9-1.aix5.3.ppc.rpm             readline-devel-6.2-3.aix6.1.ppc.rpm

gcc-locale-4.6.1-1.aix6.1.ppc.rpm       libstdc++-4.6.1-1.aix6.1.ppc.rpm        rlwrap-0.37-1.aix5.1.ppc.rpm

gmp-5.0.2-2.aix6.1.ppc.rpm              libstdc++-devel-4.6.1-1.aix6.1.ppc.rpm  zlib-1.2.5-4.aix6.1.ppc.rpm

GZCRM-APP3:/ftproot/tools/gcc # rpm -Uvh *.rpm

bash                        ##################################################

        ## Binary "bash" is avaible on 32bit and 64bit ##

        The default used is 64bit

        Please change symbolic link

        from "bash" into /bin directory

        To do that tape:

                # rm -f /bin/bash

                # ln -sf /opt/freeware/bin/bash_32 /bin/bash

bash-doc                    ##################################################

warning: /opt/freeware/info/dir created as /opt/freeware/info/dir.rpmnew

info                        ##################################################

exec(): 0509-036 Cannot load program /sbin/install-info because of the following errors:

        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).

        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

        0509-152   Member libiconv.so.2 is not found in archive

        0509-022 Cannot load module install-info.

        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.

        0509-022 Cannot load module .

Please check that /etc/info-dir does exist.

You might have to rename it from /etc/info-dir.rpmsave to /etc/info-dir.

gcc                         ##################################################

exec(): 0509-036 Cannot load program /sbin/install-info because of the following errors:

        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).

        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

        0509-152   Member libiconv.so.2 is not found in archive

        0509-022 Cannot load module install-info.

        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.

        0509-022 Cannot load module .

exec(): 0509-036 Cannot load program /sbin/install-info because of the following errors:

        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).

        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

        0509-152   Member libiconv.so.2 is not found in archive

        0509-022 Cannot load module install-info.

        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.

        0509-022 Cannot load module .

exec(): 0509-036 Cannot load program /sbin/install-info because of the following errors:

        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).

        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

        0509-152   Member libiconv.so.2 is not found in archive

        0509-022 Cannot load module install-info.

        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.

        0509-022 Cannot load module .

exec(): 0509-036 Cannot load program /sbin/install-info because of the following errors:

        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).

        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

        0509-152   Member libiconv.so.2 is not found in archive

        0509-022 Cannot load module install-info.

        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.

        0509-022 Cannot load module .

exec(): 0509-036 Cannot load program /sbin/install-info because of the following errors:

        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).

        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

        0509-152   Member libiconv.so.2 is not found in archive

        0509-022 Cannot load module install-info.

        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.

        0509-022 Cannot load module .

gcc-c++                     ##################################################

gcc-locale                  ##################################################

gmp                         ##################################################

libgcc                      ##################################################

libiconv                    ##################################################

add shr4.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a

add shr.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a

add shr4_64.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a

/

libmpc                      ##################################################

libstdc++                   ##################################################

libstdc++-devel             ##################################################

lsof                        ##################################################

mpfr                        ##################################################

readline                    ##################################################

readline-devel              ##################################################

rlwrap                      ##################################################

zlib                        ##################################################

GZCRM-APP3:/ftproot/tools/gcc #

GZCRM-APP3:/ftproot/tools/gcc # rpm -Uvh *.rpm

package bash-4.2-6 is already installed

package bash-doc-3.2-4 is already installed

package gcc-4.6.1-1 is already installed

package gcc-c++-4.6.1-1 is already installed

package gcc-locale-4.6.1-1 is already installed

package gmp-5.0.2-2 is already installed

package info-5.0-1 is already installed

package libgcc-4.6.1-1 is already installed

package libiconv-1.13.1-3 is already installed

package libmpc-0.9-1 is already installed

package libstdc++-4.6.1-1 is already installed

package libstdc++-devel-4.6.1-1 is already installed

package lsof-4.61-4 is already installed

package mpfr-3.0.1-1 is already installed

package readline-6.2-3 is already installed

package readline-devel-6.2-3 is already installed

package rlwrap-0.37-1 is already installed

package zlib-1.2.5-4 is already installed

GZCRM-APP3:/ftproot/tools/gcc #

GZCRM-APP3:/ftproot/tools/gcc # gcc

gcc: fatal error: no input files

compilation terminated.

GZCRM-APP3:/ftproot/tools/gcc # cat hello.c

/* hello.c */

#include

int main(void)

{

    printf ("Hello World!\n");

    return 0;

}

GZCRM-APP3:/ftproot/tools/gcc # gcc hello.c

GZCRM-APP3:/ftproot/tools/gcc # ./a.out

Hello World!

GZCRM-APP3:/ftproot/tools/gcc #

GZCRM-APP3:/ftproot/tools/gcc # alias sql='rlwrap sqlplus'

GZCRM-APP3:/ftproot/tools/gcc # sql /nolog

SQL*Plus: Release 11.2.0.3.0 Production on Wed Jul 3 15:20:43 2013

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

SQL> conn NGCRM_GZ@SGZ2

Enter password:

Connected.

SQL> show user

USER is "NGCRM_GZ"

SQL>

阅读(1910) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~