Reputation: 4044
On my server with FreeBSD 10.0 I get the following error:
# make
/usr/bin/g++ crypto.cpp md4.cpp rsalib1.cpp base64.cpp cmdbase.cpp signer.cpp wmsigner.cpp -o wmsigner
make: exec(/usr/bin/g++) failed (No such file or directory)
*** Error code 1
Stop.
make: stopped in /tmp/wmsigner-2.0.3
/usr/bin/g++
doesn't exist, how do I install it/fix this?
Upvotes: 4
Views: 25290
Reputation: 9805
gcc
is still available in FreeBSD, under the ports. To install the latest version (as of this writing, 4.9) as a port, do the following:
cd /usr/ports/lang/gcc49/ && make install clean
If you want to install it as a package, do the following:
pkg install lang/gcc49
This will install the C, C++, Fortran and Java front ends as gcc49
, g++49
,
gfortran49
, and gcj49
, respectively.
Upvotes: 7
Reputation: 4044
It was renamed in FreeBSD 10. Fixed by creating symlink in /usr/bin:
g++@ -> /usr/bin/clang++
Upvotes: -5