This discussion is archived
7 Replies Latest reply: Aug 29, 2012 10:13 AM by dbanoob4ever RSS

How do I install 32 bit gcc on a OEL 5.8 64 bit system

dbanoob4ever Newbie
Currently Being Moderated
Hi,

How do I install 32 bit gcc on a OEL 5.8 64 bit system

the command to check whether the required versions of the 32-bit and 64-bit glibc packages are installed is as follows:

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n' packagename

while I understand the package name is gcc, how do I know the name for its 32 bit counterpart?

thanks
  • 1. Re: How do I install 32 bit gcc on a OEL 5.8 64 bit system
    Dude! Guru
    Currently Being Moderated
    You cannot, and do not need to install a x86 version of gcc on a x86_64 system. You can instruct the compiler to generate 32-bit or 64-bit code, for instance gcc -m32 or gcc -m64.

    You can generally run x86 applications on a x86_64 system, provided it is a stand-alone application or you provide the necessary static libraries, but it won't work with ELF shared libraries.

    In case your plan is to install Oracle 11g 32-bit under a x86_64 system, it is not supported and won't work.

    To find out what packages exist, setup up Oracle public yum if you do not have a subscription. Use the yum utility for managing your software. Yum is a front-end for rpm and standard since EL 5. For instance "yum list gcc" or use a wildcard like "yum list glib\*" to see what is installed and what is available.

    There is usually no need to install 32-bit software under a x86_64 system. What are you trying to accomplish? If you really need 32-bit Oracle under x86_64, install Virtualbox or use some other Type 2 hypervisor.

    Edited by: Dude on Aug 27, 2012 4:54 AM
  • 2. Re: How do I install 32 bit gcc on a OEL 5.8 64 bit system
    dbanoob4ever Newbie
    Currently Being Moderated
    I'm trying to install Oracle 10gr2 on OEL 5.8. My people will told me I'm outdated, I agree, but the real problem is during interviews I'm often asked questions about how to upgrade from 10gr2 to 11gr2, some even ask me how to upgrade from 9i2 to 11gr2, despite me telling them that the procedures that are mentioned in the documentation. so it will be more convincing if I can really do the hands on upgrade. OTN on longer have 10gr2 download. the downloads I have is a download I've download long time ago.

    OS: OEL 5.8
    rdbms:10.2.0.1
    Exception String: Error in invoking target 'agent nmo nmb' of makefile '/u01/app/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk'

    when I googled around,

    http://www.orafaq.com/forum/t/66802/2/

    posted suggeste to install 32-bit versions of gcc, glibc and glibc-devel.

    really appreciate if someone tell m
  • 3. Re: How do I install 32 bit gcc on a OEL 5.8 64 bit system
    Dude! Guru
    Currently Being Moderated
    Sorry, did you read my last message? You cannot install x86 (32-bit) Oracle under x86_64 OS. The installer will fail because the ELF shared library of a x86_64 system do not support x86. To verify it, check the log file that is pointed out by the installer. The only way around I know is to install Oracle database for x86_64 or use a 32-bit system. Your problem are not versions, but you are mixing platforms.
  • 4. Re: How do I install 32 bit gcc on a OEL 5.8 64 bit system
    dbanoob4ever Newbie
    Currently Being Moderated
    actually what I mean to do is to install 64 bit rdbms on 64 bit platform.

    Exception String: Error in invoking target 'agent nmo nmb' of makefile '/u01/app/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk'

    I still don't why the above error happens, so one of the poster in the another forum suggest to install 32 bit packages of gcc, glibc and glibc-devel.
  • 5. Re: How do I install 32 bit gcc on a OEL 5.8 64 bit system
    Dude! Guru
    Currently Being Moderated
    Didn't you ask about installing oracle 32-bit under x86_64 earlier? Please be more specific and provide more details what you are installing to prevent misunderstandings. If your problem are software prerequisites, your easiest option should be to setup Oracle Public Yum according http://public-yum.oracle.com or create a yum configuration file to use the Installation DVD. Then install the oracle-validated package (yum install oracle-validated) to trigger the installation of the software prerequisites and system setup.
  • 6. Re: How do I install 32 bit gcc on a OEL 5.8 64 bit system
    dbanoob4ever Newbie
    Currently Being Moderated
    Hi dude thanks a lot,

    my objective: install oracle 10gr2 on oel 5.8 remotely. I've set up a virtualbox for oel 5.8

    but right now I encountered another problem,

    enterprise manager configuration failed due to the following error - invalid value null for parameter PORT

    from Unable to start enterprise management console

    and have rebuild the repository

    oracle@source ~]$ emca -repos create

    STARTED EMCA at Aug 30, 2012 6:00:08 AM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.

    Enter the following information:
    Database SID: orcl
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:

    Do you wish to continue? [yes(Y)/no(N)]: Y
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log.
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_repos_create_<date>.log for more details.
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log for more details.
    Could not complete the configuration. Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log for more details.
    [oracle@source ~]$


    details for u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log is as follow

    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log for more details.
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:194)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    118,1 Bot


    here's my /etc/hosts profile

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1          localhost.localdomain localhost
    ::1          localhost6.localdomain6 localhost6
    #92.242.132.18          source.localdomain source
    192.168.0.211          source.localdomain source


    here's my ifconfig settings

    [oracle@source ~]$ /sbin/ifconfig
    eth0 Link encap:Ethernet HWaddr 08:00:27:EE:68:57
    inet addr:192.168.0.211 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:feee:6857/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:180055 errors:0 dropped:0 overruns:0 frame:0
    TX packets:323764 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:26740364 (25.5 MiB) TX bytes:62621397 (59.7 MiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:18198 errors:0 dropped:0 overruns:0 frame:0
    TX packets:18198 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:22512862 (21.4 MiB) TX bytes:22512862 (21.4 MiB)

    would really appreciate some one could really guide me what's the solutions to the above EM confugration problem as I'm run out of ideas.

    thanks a lot!
  • 7. Re: How do I install 32 bit gcc on a OEL 5.8 64 bit system
    dbanoob4ever Newbie
    Currently Being Moderated
    right now I managed to get listener.ora running

    [oracle@source ~]$ lsnrctl status

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2012 01:03:19

    Copyright (c) 1991, 2005, Oracle. All rights reserved.

    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2012 00:59:40
    Uptime 0 days 0 hr. 3 min. 39 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=source.localdomain)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    [oracle@source ~]$


    but still I could not get service registered.

    29-AUG-2012 23:34:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=source.localdomain)(USER=oracle))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * services * 0
    29-AUG-2012 23:36:00 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=perl)(HOST=source.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.211)(PORT=47892)) * establish * orcl * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    29-AUG-2012 23:53:28 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=perl)(HOST=source.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.211)(PORT=48064)) * establish * orcl * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor

    [oracle@source ~]$ lsnrctl services

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2012 01:05:26

    Copyright (c) 1991, 2005, Oracle. All rights reserved.

    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    The listener supports no services
    The command completed successfully

    really hope have this isse resolved. but I don't know what's wrong.....

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points