make: g++: Command not found make: Error 127

Asked

Viewed 4,477 times

1

I need to run a file that requires the command make. When I type this command the error occurs:

make: g++: Command not found make: *** [clearlines] Error 127

I’ve already executed the commands:

# cd /var/lib/dpkg/info/
# ls | grep "install-info" 

I also ran the commands below to solve the package problems install-info.

# rm install-info*
# apt-get install -f
# dpkg --configure -a 

Unfortunately, I still can’t execute the command make.

2 answers

4

The sudo apt-get -y install build-essential worked and adjusted the situation for me.

  • It worked. A short description of what this package is would be welcome and add to the response. :)

1

Type in the terninal

     sudo apt-get -y install build-essential

keystroke ENTER

You may need to install g++ separately

     sudo apt-get -y install g++

keystroke ENTER

You may need to install make separately

     sudo apt-get -y install make
  • I typed the command above and got as response:

  • Unfortunately I got the following message: Impossible to find build-Essential package

  • g++ is already installed as I have not had any packages authenticated and no new packages installed. I still can’t run make.

  • I answered: make is already the newest version.

  • Then your Makefile is in error. By the way, what is that such "clearlines" that appears in the error message ?

  • clearlines is the executable file name I need to run using make command.

  • Because then, make is not finding this clearlines....

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.