Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: ./configure: no acceptable C compiler found in $PATH

  1. #1

    Default ./configure: no acceptable C compiler found in $PATH

    I am a recovering Windows user (and linux newbie) trying to install and compile pgAdmin3 for postgresql on open SuSE 11.3, I get "no acceptable C compiler found in $PATH"

    I have used yast to install botth gnu45 (c compiler) gnu45-c++ compiler.

    My question: where did they install?

    When I run rpm -ga >aplist.txt and search it for 'gcc' I find:
    gcc45-c++-4.5.0_20100604-1.12.i586
    libgcc45-4.5.0_20100604-1.12.i586
    gcc45-4.5.0_20100604-1.12.i586
    libstlport_gcc4-4.6.2-6.1.i586

    So it seems something installed. But where is it so I can add it to the path?
    And if I think I have located a likely subdirectory, how do I tell if it is the one? Is there a characteristic compiler file I would find in the correct directory?

    There is a file named gcc-4.5 under /usr/bin, but /usr/bin is in the path, do I need to do something to tell 'configure' the name of the c compiler?


    Thanks in advance for any help. Fred

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: ./configure: no acceptable C compiler found in $PATH

    welcome new poster!

    it _should_ automatically go to the "right place" and therefore
    automatically be in the path and usuable--*if* you used YaST, and you
    said you did..

    so, i can only guess that you didn't get all the bits and pieces
    needed for your effort...

    try this: open yast, go Software > Software Repositories and make sure
    you have enable ONLY four repos: oss, non-oss, update and
    packman....just disable the others...and, mark those four for auto-update

    then, go to Software > Software Management and spin the "Filter" from
    "Search" to "Patterns", scroll down to the "Development" section and
    single left click (to place a check mark in the box--if, it is already
    checked do NOT uncheck it) in:

    Base Development
    C/C++ Development

    and what others you KNOW you need (maybe not any...don't load yourself
    down with junk you will never use....unless you want to)..

    but, let me ask why do you want to compile it yourself? that is, it is
    already available...go to http://software.opensuse.org/search enter
    "pgAdmin3" and spin the dial to match your version....then carefully
    pick the one you need and click on the "1-Click Install" link....it
    _should_ just install....WARNING most of those "1-Click Install"
    _should_ ask you if you want to leave the repos added to your system,
    my best advice is to say NO....my best advice is (until you understand
    how it all works) to keep just the previously mention FOUR repos
    enabled....these fora are just packed with folks having all kinds of
    problems AND 10, 15, 20 or more repos all enabled all the time...

    good luck, and Have a lot of fun!

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

  3. #3

    Default Re: ./configure: no acceptable C compiler found in $PATH

    When I run rpm -ga >aplist.txt and search it for 'gcc' I find:
    gcc45-c++-4.5.0_20100604-1.12.i586
    libgcc45-4.5.0_20100604-1.12.i586
    gcc45-4.5.0_20100604-1.12.i586
    libstlport_gcc4-4.6.2-6.1.i586
    =>
    Code:
    su -c "zypper install gcc"
    Reason:

    Most "configure"-scripts search for "cc" or "gcc" in $PATH, none of the above packages contains that file (which is only a symlink but there for exactly this reason).

    BTW:

    Easier way to search for installed packages containing $STRING in their name:

    Code:
    rpm -qa "*STRING*"
    so in this case

    Code:
    rpm -qa "*gcc*"

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,444
    Blog Entries
    1

    Default Re: ./configure: no acceptable C compiler found in $PATH

    Hello,
    I was advised elsewhere in these Forums for a different situation to add GCC43 compilers, it was good advice. Apparently there's alot of code out there that hasn't upgraded compilers.

    Re compiling from source instead of using the SuSE RPM, currently the SuSE RPMs don't have the latest version of PostgreSQL, and the latest has some significant new features as well as bundling the latest version of pgAdmin.

    HTH,
    Tony

    HTH,
    Tony

  5. #5
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: ./configure: no acceptable C compiler found in $PATH

    tsu2 wrote:

    >
    > Re compiling from source instead of using the SuSE RPM, currently the
    > SuSE RPMs don't have the latest version of PostgreSQL, and the latest
    > has some significant new features as well as bundling the latest version
    > of pgAdmin.
    >

    Did you also look at the opensuse build service, the
    server:databaseostgresql:9.0 has newer packgaes than the standard
    repositories?
    http://download.opensuse.org/reposit.../openSUSE_11.3

    --
    openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
    9600 GT | 4GB Ram
    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
    3600M | 4GB Ram

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,444
    Blog Entries
    1

    Default Re: ./configure: no acceptable C compiler found in $PATH

    Hello,
    Would probably be nice if there was an easy and quick way to search the Repository and get a positive hit.

    Did a search on the OSB for "postgresql 9" and "postgresql reinhard" (According to the PostgreSQL website, Reinhard is supposed to be the official maintainer) which return nothing (The search appears to have correctly guessed that v.9 was requested).

    Searching just "postgresql" returns numerous projects, I'd hate to go through all of them on the chance maybe (or maybe not) the latest version is available.

    v9.0.1 was released 10/4/2010

    Tony

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,444
    Blog Entries
    1

    Default Re: ./configure: no acceptable C compiler found in $PATH

    Quote Originally Posted by tsu2 View Post
    Hello,
    Would probably be nice if there was an easy and quick way to search the Repository and get a positive hit.

    Did a search on the OSB for "postgresql 9" and "postgresql reinhard" (According to the PostgreSQL website, Reinhard is supposed to be the official maintainer) which return nothing (The search appears to have correctly guessed that v.9 was requested).

    Searching just "postgresql" returns numerous projects, I'd hate to go through all of them on the chance maybe (or maybe not) the latest version is available.

    v9.0.1 was released 10/4/2010

    Tony
    Sorry my message wasn't deleted... I missed the ready OBS link provided in the previous post by Martin...
    As of this writing only a minor update was released approximately 3 weeks after the version in OBS (latest version as of this writing is v9.0.1)

    Tony

  8. #8

    Default Re: ./configure: no acceptable C compiler found in $PATH

    installing gcc 4.3 is very good advice
    most programs that i build from source need to be hacked to use 4.5 beta
    most of the time it is just a very minor one or two line hack .
    i also have 3.4 installed and use a neat trick ( not the" alternatives " way )
    a small script to change the LINK gcc to point it to 4.5 or 4.3 or 3.4
    set_compiler_4.5.sh
    Code:
    #!/bin/bash
    rm /usr/bin/cpp
    ln -s /usr/bin/cpp-4.5 /usr/bin/cpp
    echo ln -s cpp-4.5 cpp
    rm /usr/bin/gcc
    ln -s /usr/bin/gcc-4.5 /usr/bin/gcc
    echo ln -s gcc-4.5 gcc
    rm /usr/bin/g++
    ln -s /usr/bin/g++-4.5 /usr/bin/g++
    echo ln -s g++-4.5 g++
    one for each compiler 3.3,4.1,4.3,and 4.5
    WARNING - make sure you know 100% what you are doing first BEFORE using that script
    and that /usr/bin/gcc IS A LINK



  9. #9

    Default Re: ./configure: no acceptable C compiler found in $PATH

    Wow, what a great series of replies!
    As a newbie to the Unix/GNU/Linux world I can tell you it looks huge, so any help like "Look over there--->" is greatly appreciated.

    So, responding to the link in the first reply, I fired up my I.E. in windows, browsed to the site indicated, downloaded the file, then realized "Oops! Bad Fred!", returned to my Linux instance, fired up Firefox, browsed to the site, downloaded the file, choose 'install' and proceeded like Windows was a thing of the past. And it worked!
    However, I have a bone to pick with 'automatically go to the right place'. If it doesn't work 'automatically' you are hosed unless you know what exactly happens 'automatically', and learning that has been the biggest challange of Linux.

    As for the compile, I see getting that to work as part of my education, so the rest of the posts that discuss this problem will be carefully inspected and suggestions followed as I learn more about how this thing you call 'Linux' works.

    but in the meantime I can proceed and use pgadmin now thanks to your great help.

    Fred

  10. #10
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: ./configure: no acceptable C compiler found in $PATH

    fredrated wrote:
    > If it doesn't work 'automatically' you are hosed unless you
    > know what exactly happens 'automatically', and learning that has been
    > the biggest challange of Linux.


    i've used linux since about 97/8 and nothing else since about 2002 and
    i am a long way from knowing how to sort out "it didn't work
    automatically", *but* background, generic linux file system knowledge
    will go a LONG way toward understanding such...and, a great place
    (imHo) to get a foundation in that is here:

    "Rute User's Tutorial and Exposition" a free, online book that is to
    be studied front to back, and THEN used as a reference....front to
    back because it builds on what you learn as you go...start here:
    http://rute.2038bug.com/

    and, an old post of mine for folks like you is here:
    http://tinyurl.com/3a5rong

    unfortunately 'they' upgraded both the wiki and the forum since i
    wrote that so some of the links are broken and directions are off...

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

Page 1 of 2 12 LastLast

Posting Permissions

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