Results 1 to 10 of 10

Thread: need path to g++

  1. #1
    Join Date
    Nov 2006
    Beans
    216

    need path to g++

    hi
    i have installed Netbeans and it is looking for the directory g++ is in, i found the directory for gcc but i can't find where directory g++ is. i'm sure it is some where because i can run g++ first.cpp -o test in a terminal and it will compile i just can't find g++ folder,

  2. #2
    Join Date
    Jan 2009
    Location
    'Murica!
    Beans
    185
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: need path to g++

    Quote Originally Posted by klein de usa View Post
    hi
    i have installed Netbeans and it is looking for the directory g++ is in, i found the directory for gcc but i can't find where directory g++ is. i'm sure it is some where because i can run g++ first.cpp -o test in a terminal and it will compile i just can't find g++ folder,
    Maybe you haven't installed it?

    Open a terminal window and type the command "g++". (Do I have to mention not to actually type the quotes?) What happens?

  3. #3
    Join Date
    Jan 2009
    Beans
    111

    Re: need path to g++

    Type "which g++". If it is installed, it will return the directory where it is installed. If not, sudo apt-get install g++.

  4. #4
    Join Date
    Nov 2006
    Beans
    216

    Re: need path to g++

    hi

    'which g++' found it i think i did find and that didn't come up with anything . thank you

  5. #5
    Join Date
    Jan 2009
    Location
    'Murica!
    Beans
    185
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: need path to g++

    Quote Originally Posted by klein de usa View Post
    'which g++' found it i think i did find and that didn't come up with anything .
    That makes absolutely zero sense.

  6. #6
    Join Date
    Dec 2006
    Beans
    7,349

    Re: need path to g++

    Quote Originally Posted by klein de usa View Post
    'which g++' found it i think i did find and that didn't come up with anything . thank you
    Perhaps your 'find' syntax was incorrect? Something like the following should work:

    Code:
    sudo find /usr -iname 'g++'
    although 'find' is not necessarily the best tool for this particular job...

    Andrew
    You think that's air you're breathing now?

  7. #7
    Join Date
    Dec 2008
    Beans
    369

    Re: need path to g++

    sudo apt-get install build-essential

  8. #8
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: need path to g++

    Code:
    locate g++
    btw, it's in /usr/bin

  9. #9
    Join Date
    Dec 2008
    Location
    W-slp-Sierra Nevada usa
    Beans
    1,401
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: need path to g++

    sind ze klein, oder heisen ze blos klein? oder viellicht beiden?
    boot_info_script by meierfra & Gert Hulselmans
    unetbootin to burn liveCD/USB
    Repair Windows7 Boot
    Partitioning

  10. #10
    Join Date
    Jan 2009
    Location
    'Murica!
    Beans
    185
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: need path to g++

    No need for over-complicated gyrations. Just open a terminal window and type:
    Code:
    g++

Bookmarks

Posting Permissions

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