A
A
Artem2014-04-20 13:29:12
FreeBSD
Artem, 2014-04-20 13:29:12

How to install g++ on FreeBSD?

There is a server on FreeBSD 10.0. When building one program I get an 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

The path /usr/bin/g++ doesn't really exist. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rustelecom, 2014-04-20
@bartwell

In general, earlier programs were added to Freebsd like this pkg_add -r package name. You can also do this:
cd /pathto/ports
make search name=g++
cd into the found folder
make
make install
and you can already use it, everything went well.
g++ is a C++ compiler, so you can find a similar one in fryaha (maybe it's called a little differently).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question