AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  gcc++ fro AIX 5.3.0.0

    Posted Tue July 14, 2009 11:46 PM

    Originally posted by: SystemAdmin


    I want to install gcc++ for AIX 5.3.0.0. could any open tell me wht are all the required rpms for this OS version.
    I tried with the below rpms

    1) gcc-c++-4.2.0-2.aix5.3.ppc.rpm
    2) libstdc++-4.2.0-2.aix5.3.ppc.rpm

    But still it was asking fro some dependencies and the aprroach is in vain. could some one can help in this regard

    Thanks
    #AIX-Forum


  • 2.  Re: gcc++ fro AIX 5.3.0.0

    Posted Wed July 15, 2009 01:11 AM

    Originally posted by: SystemAdmin


    http://www.perzl.org/aix/index.php?n=Main.Gcc

    The Package dependencies section mentions the dependencies for each package, all of which are available on http://www.perzl.org/aix
    Follow the dependencies recursively until all have been installed.

    I have done the same and it worked.
    Hope this helps.
    #AIX-Forum


  • 3.  Re: gcc++ fro AIX 5.3.0.0

    Posted Wed July 15, 2009 02:05 AM

    Originally posted by: SystemAdmin


    Thank u for ur assistance
    #AIX-Forum


  • 4.  Re: gcc++ fro AIX 5.3.0.0

    Posted Wed July 15, 2009 02:29 AM

    Originally posted by: SystemAdmin


    The below are the rpm's i have in the server copied
    gcc-4.2.4-1.aix5.3.ppc.rpm
    gcc-c++-4.2.0-2.aix5.3.ppc.rpm
    gcc-c++-4.2.4-1.aix5.3.ppc.rpm
    gcc-cpp-4.2.4-1.aix5.3.ppc.rpm
    gcc-gfortran-4.2.4-1.aix5.3.ppc.rpm
    libgcc-4.2.4-1.aix5.3.ppc.rpm
    libgomp-4.2.4-1.aix5.3.ppc.rpm
    libstdc++-4.2.4-1.aix5.3.ppc.rpm
    libstdc++-devel-4.2.4-1.aix5.3.ppc.rpm

    but when i did the preview check for the gcc installation i get the below error

    -----------------------------------------------------------------------------
    RPM Error Summary:
    -----------------------------------------------------------------------------
    The following errors occurred during installation:
    error: failed dependencies:
    gcc = 4.2.4-1 is needed by gcc-c++-4.2.4-1
    libstdc++-devel = 4.2.4-1 is needed by gcc-c++-4.2.4-1

    If u could see above all those required packages were already available..........I also tied with the rpm commands as shown below
    rpm -qpR gcc-c++-4.2.4-1.aix5.3.ppc.rpm
    gcc = 4.2.4-1
    libstdc++-devel = 4.2.4-1
    AIX-rpm >= 5.3.0.0
    libc.a(shr.o)
    libiconv.a(shr4.o)

    Can U please tell me where it could have went wrong
    #AIX-Forum


  • 5.  Re: gcc++ fro AIX 5.3.0.0

    Posted Wed July 15, 2009 03:09 AM

    Originally posted by: SystemAdmin


    Could you give the "rpm -qa" output ?

    Install

    libgcc --> no deps
    info --> needs libintl.a (so you may have to install gettext with --nodesp before this)
    libiconv -->deps needs: gettext --: gettext (gettext has the libintl.a) gettext in turn needs expat and glib2
    libstdc++
    libstdc++-devel
    ...
    in that order
    I think b/w gettext and glib2 there is some stupid dependency deadlock, try installing gettext with --nodeps.

    You will have to keep doing the -qpR and installing all the dependencies, unfortunately there is no statically linked binary, if any older version of package was already present use the --force option.

    This method worked for me although it was very tedious.
    #AIX-Forum


  • 6.  Re: gcc++ fro AIX 5.3.0.0

    Posted Wed July 15, 2009 03:31 AM

    Originally posted by: SystemAdmin


    I have gcc-4.2.0-3 already in the system.............Is it because of this its pushing me to the problem
    #rpm -qa
    cdrecord-1.9-7
    mkisofs-1.13-4
    libxml2-2.6.17-3
    gcc-4.2.0-3
    AIX-rpm-5.3.9.0-4
    #AIX-Forum


  • 7.  Re: gcc++ fro AIX 5.3.0.0

    Posted Wed July 15, 2009 04:07 AM

    Originally posted by: SystemAdmin


    Install the prereqs as I had mentioned and force install the newer version of gcc again before installing g++.
    #AIX-Forum