Search of ports shows 0 hits for g++

Clemens Lang cal at macports.org
Tue Jul 7 23:22:47 PDT 2015


Hi,

----- On 7 Jul, 2015, at 23:35, Jeffrey Walton noloader at gmail.com wrote:

> I'm a novice Macports user. A user claimed a program segfaulted when
> using Macport's version of g++, so I'm trying to investigate the
> issue.

Don't mail to macports-tickets; it's a mailing list that largely doesn't
see anything but automated mails from our ticket system.


> I attempted to install g++, but it resulted in an error:
> 
>    $ sudo port install g++
>    Password:
>    Error: Port g++ not found
> 
> I attempted to search for the package name, but its returning 0
> results: https://www.macports.org/ports.php?by=name&substr=g%2B%2B.
> 
> I know Macports has g++ somewhere, but I don't know where.

g++ is part of the GNU compiler collection, which is called GCC. This will
list the versions of GCC (and thus, g++) available from MacPorts:

 $> port search --line --name --regex '^gcc[0-9]+'


> **********
> 
> Perhaps it would be a good idea to alias g++ to the latest g++ package
> so things just worked. Advanced users who know the package name are
> still free to use their mastery of Macports to install different
> versions.
> 
> Perhpas it would be a good idea if searching for g++ returned g++ packages.

Did you try port search g++? (I cannot, I'm not at my Mac atm).

-- 
Clemens Lang


More information about the macports-tickets mailing list