TransWikia.com

makefile shows error in g++ how to solve it

Ask Ubuntu Asked on February 15, 2021

I am following the instructions in this tutorial https://github.com/tukl-msd/DRAMPower.

When I do

make -j4

an error message appeared to me

g++ -O -W -pedantic-errors -Wextra -Werror -Wformat -Wformat-nonliteral -Wpoint
er-arith -Wcast-align -Wconversion -Wall -Werror -g   -std=c++0x -fPIC -MMD -MF 
src/xmlparser/MemSpecParser.d -iquote src -o src/xmlparser/MemSpecParser.o -c 
src/xmlparser/MemSpecParser.cc
make: g++: Command not found
make: *** [Makefile:103: src/xmlparser/MemSpecParser.o] Error 127

How I can solve this problem ?

One Answer

Looks like g++ is not installed in your system.

Use the command

sudo apt install build-essential

to install g++, gcc, and a few other development packages.

Or, if you just want to install g++ and its dependencies but nothing else,

sudo apt install g++

Answered by Archisman Panigrahi on February 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP