Find the answer to your Linux question:
Results 1 to 3 of 3
Hey everyone, This is my first post here and I am very new to the Linux field. I've been tinkering for a while and am adept at most basic task ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    1

    How can I compile with gcc3.3.3?

    Hey everyone,

    This is my first post here and I am very new to the Linux field. I've been tinkering for a while and am adept at most basic task so bear with me while I figure things out.

    I am currently trying to compile a version of OpenMPI 1.2.5. To make it compatible with an application I am using, it needs to be compiled with GCC 3.3.3. My system (RHEL) reports that a compatibility library is currently installed, compat-libstdc++-33, and I was under the impression that was for gcc 3.3.x . The problem is, I have no idea how to invoke this version. And for reference, OpenMPI is built through simple ./configure and make all install commands.

    If that's not the right approach to fix that, what do you think I should do? I need to keep the current version of GCC installed. I'm open to any approach; any help is appreciated. Thanks!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    If you run ./configure --help it will give you the options needed to use another compiler. In your case, you need to use gcc33 for the CC parameter.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    9
    Dear friend,
    If you compile by just ./configure means , it will replace old gcc, do you have to install it in seperate directory using this command

    ./configure --prefix=/usr/gcc --libexecdir=/usr/gcc/lib --enable-shared --enable-threads=posix --enable-_cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-mpfr=/usr/gcc


    You need to have the dependency packages of mpfr,gloob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...