gcc - How to install g++ on FreeBSD? -


on server freebsd 10.0 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 install it/fix this?

gcc still available in freebsd, under ports. install latest version (as of writing, 4.9) port, following:

cd /usr/ports/lang/gcc49/ && make install clean

if want install package, following:

pkg install lang/gcc49

this install c, c++, fortran , java front ends gcc49, g++49, gfortran49, , gcj49, respectively.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -