Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Install problem: no acceptable C++ compiler found in $PATH (Trying to install freeciv, game) ... checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2010
    Posts
    125

    no acceptable C++ compiler found in $PATH


    Install problem:
    no acceptable C++ compiler found in $PATH
    (Trying to install freeciv, game)

    ...
    checking whether we are using the GNU C++ compiler... no
    checking whether g++ accepts -g... no
    checking dependency style of g++... none
    checking whether the C++ compiler works... no
    configure: error: in `/home/peter/Download/freeciv-2.2.1':
    configure: error: no acceptable C++ compiler found in $PATH
    See `config.log' for more details.
    Other threads suggest install gcc which I thought I already did yet it didn't solve the problem!

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    649
    Quote Originally Posted by lindsey View Post
    Install problem:
    no acceptable C++ compiler found in $PATH
    (Trying to install freeciv, game)



    Other threads suggest install gcc which I thought I already did yet it didn't solve the problem!
    g++ is the C++ compiler. It is part of "GCC' but is separately installable. Since You did not mention a distro, I can not tell you how to install it.

  3. #3
    Linux Newbie
    Join Date
    May 2010
    Posts
    125
    Quote Originally Posted by alf55 View Post
    g++ is the C++ compiler. It is part of "GCC' but is separately installable. Since You did not mention a distro, I can not tell you how to install it.
    OpenSuse 11.2.

    Sorry, being the Suse forums I thought this was presumed.

    You may proceed in educating me, kindly sir.

  4. #4
    Linux Newbie
    Join Date
    May 2010
    Posts
    125
    Think I have installed C++ compiler according to Freeciv - openSUSE Forums

    Now I have another problem on my hands:

    Making install in data
    make[1]: Entering directory `/home/peter/Download/freeciv-2.2.1/data'
    Making install in icons
    make[2]: Entering directory `/home/peter/Download/freeciv-2.2.1/data/icons'
    make[3]: Entering directory `/home/peter/Download/freeciv-2.2.1/data/icons'
    make[3]: Nothing to be done for `install-exec-am'.
    test -z "/usr/local/share/icons/hicolor/128x128/apps" || /bin/mkdir -p "/usr/local/share/icons/hicolor/128x128/apps"
    /bin/mkdir: cannot create directory `/usr/local/share/icons': Permission denied
    make[3]: *** [install-icon128DATA] Error 1
    make[3]: Leaving directory `/home/peter/Download/freeciv-2.2.1/data/icons'
    make[2]: *** [install-am] Error 2
    make[2]: Leaving directory `/home/peter/Download/freeciv-2.2.1/data/icons'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/peter/Download/freeciv-2.2.1/data'
    make: *** [install-recursive] Error 1
    What do I need to do now to complete the install?

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You must have root privileges to install package. Execute su - command in Terminal to gain root privileges.
    Code:
    su -
    Execute installation command after that.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux Newbie
    Join Date
    May 2010
    Posts
    125
    Quote Originally Posted by devils casper View Post
    You must have root privileges to install package. Execute su - command in Terminal to gain root privileges.
    Code:
    su -
    Execute installation command after that.
    So I think I have installed, but when I try to run, I get a reference to Gtk. It's apparently a warning, not an error so I don't know why app won't launch.

    peter@linux-rl4p:~/Download/freeciv-2.0.10> civclient
    2: No real audio plugin present, proceeding with sound support disabled
    2: For sound support, install either esound or SDL_mixer
    2: Esound: EsounD - The Enlightened Sound Daemon - News
    2: SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/index.html
    No protocol specified

    (civclient:2523: Gtk-WARNING **: cannot open display: :0.0
    peter@linux-rl4p:~/Download/freeciv-2.0.10>

  7. #7
    Linux Newbie
    Join Date
    May 2010
    Posts
    125
    As far as I can tell I have installed audio file which is needed for esound yet I keeping getting:

    ...
    --- Checking for the audiofile library. NOTE: This library is now
    REQUIRED from proper compilation of the esound package.
    checking for audiofile-config... (cached) no
    checking for AUDIOFILE - version >= 0.1.5... no
    *** The audiofile-config script installed by AUDIOFILE could not be found
    *** If AUDIOFILE was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the AUDIOFILE_CONFIG environment variable to the
    *** full path to audiofile-config.
    --- ERROR: The audiofile library was not found on your system.
    --- The audiofile library may be obtained from your favourite
    --- gnome distribution center, or check the audiofile web page at:
    --- Audio File Library
    --- NOTE: The audiofile library is now REQUIRED for esound.

    I don't understant the bit about PREFIX/bin. Maybe this holds the key? Do you know?

  8. #8
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    649
    Well, I am sorry I got to this because of no answers. I beg your forgivness that I did not scroll back to see the group that it was in.

  9. #9
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,104
    I wonder why you want to compile it???? It should be in packman repo or do a webpin search (Yast-Package Search).

    Did you install the 3D driver for your video card?

  10. #10
    Linux Newbie
    Join Date
    May 2010
    Posts
    125
    Quote Originally Posted by gogalthorp View Post
    I wonder why you want to compile it???? It should be in packman repo or do a webpin search (Yast-Package Search).

    Did you install the 3D driver for your video card?
    I didn't think I had the choice. It's not in YAST, as far as I can tell. No it's a pretty low graphics demand game though.

    I don't know how linux users put up with this nonsense. Too many dependencies, how is the average end user supposed to be able to follow. And when you follow instructions, it still doesn't work.

    I mean jeez, how do you guys put up with Linux? It's a joke sometimes, the simplest things are overly complicated and the errors are so obscure.

Page 1 of 2 1 2 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
  •