Ошибка 127 linux

I’m new to Linux and trying to install mktorrent (latest version) and the README file states to simply run the ‘make’ command while in the directory. However, after trying 3 different terminals/emulators I would receive the same error as shown quoted below.

I’ve tried install «automake» from repositories as suggested through other answers found on here/Google with no luck. Here are the directory contents: https://i.stack.imgur.com/KlAsg.png

cc -O2 -Wall prefix.c -o prefix make: cc: Command not found make:
*** [prefix] Error 127

  • linux
  • ubuntu
  • terminal
  • makefile

asked Jun 20, 2015 at 7:04

MerKury's user avatar

MerKuryMerKury

831 gold badge1 silver badge3 bronze badges

2

  • Looks like the command cc does not exist on your system. That would be the c compiler.

    Jun 20, 2015 at 7:07

  • If you have gcc but not cc, check if it will compile successfully with gcc. You can modify Makefile to change cc to gcc.

    Jun 20, 2015 at 7:33

1 Answer

sudo apt-get install build-essential

should install the requirements for compiling C/C++ based applications

answered Jun 20, 2015 at 7:31

Uku Loskit's user avatar

Uku LoskitUku Loskit

40.9k9 gold badges93 silver badges94 bronze badges

0

I’m new to Linux and trying to install mktorrent (latest version) and the README file states to simply run the ‘make’ command while in the directory. However, after trying 3 different terminals/emulators I would receive the same error as shown quoted below.

I’ve tried install «automake» from repositories as suggested through other answers found on here/Google with no luck. Here are the directory contents: https://i.stack.imgur.com/KlAsg.png

cc -O2 -Wall prefix.c -o prefix make: cc: Command not found make:
*** [prefix] Error 127

  • linux
  • ubuntu
  • terminal
  • makefile

asked Jun 20, 2015 at 7:04

MerKury's user avatar

MerKuryMerKury

831 gold badge1 silver badge3 bronze badges

2

  • Looks like the command cc does not exist on your system. That would be the c compiler.

    Jun 20, 2015 at 7:07

  • If you have gcc but not cc, check if it will compile successfully with gcc. You can modify Makefile to change cc to gcc.

    Jun 20, 2015 at 7:33

1 Answer

sudo apt-get install build-essential

should install the requirements for compiling C/C++ based applications

answered Jun 20, 2015 at 7:31

Uku Loskit's user avatar

Uku LoskitUku Loskit

40.9k9 gold badges93 silver badges94 bronze badges

0

I attempted to follow this guide to run a Node application as a service. However, it is failing to start, with exit code 127. Is there any way to fix this?

This is the journal.

sudo  journalctl --follow -u serviceName
-- Logs begin at Tue 2017-08-08 16:27:10 GMT. --
Aug 08 17:06:57 raspberrypi systemd[1]: Started serviceName.
Aug 08 17:06:57 raspberrypi app.js[7234]: [46B blob data]
Aug 08 17:06:57 raspberrypi systemd[1]: serviceName.service: main process exited, code=exited, status=127/n/a
Aug 08 17:06:57 raspberrypi systemd[1]: Unit serviceName.service entered failed state.
Aug 08 17:06:57 raspberrypi systemd[1]: serviceName.service holdoff time over, scheduling restart.
Aug 08 17:06:57 raspberrypi systemd[1]: Stopping serviceName...
Aug 08 17:06:57 raspberrypi systemd[1]: Starting serviceName...
Aug 08 17:06:57 raspberrypi systemd[1]: serviceName.service start request repeated too quickly, refusing to start.
Aug 08 17:06:57 raspberrypi systemd[1]: Failed to start serviceName.
Aug 08 17:06:57 raspberrypi systemd[1]: Unit serviceName.service entered failed state.

This is the serviceName.service.

[Unit]
Description=ServiceName
After=network.target

[Service]
ExecStart=/home/pi/projects/ServiceName/app.js
Restart=always
User=root
Group=root
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/home/pi/projects/ServiceName

[Install]
WantedBy=multi-user.target

This is at the top of my app.js.

#!/usr/bin/env node

Terminals are very powerful, regardless of what operating system you’re using. This means that while you can perform just about any OS task with a few commands, you need to know these commands to take advantage of them. Of course, different operating systems use different languages in their terminals as well, meaning you need to decide to have mastery over one or use multiple.

In this article, we’re talking about Make error 127, its causes and what you can do to fix the problem.


What causes Make error 127?

The Make error 127 generally occurs when you’re working with a Go operator-sdk project cloned from Github as the command doesn’t generate the bin directory with the required files to run the Make installation. 

As for code 127, it simply indicates a “command not found” error. Since the initial command hasn’t generated the files required, the Make installation fails as the system can’t find the source files to run or read the command.

Also read: How to fix ‘wget command not found’ issue in Bash?


Depending on what’s causing your error, here are two fixes you can try out.

Reinstall a different version of the Operator-SDK

First up, if the problem is being caused by operator-sdk, we can try either rolling back to version 18.0.0 or pushing forward to the latest version available (assuming the latest version has fixed the bug. 

How Facebook's AI is trying to assist suicide prevention

All you have to do is uninstall operator-sdk using brew or apt-get or whatever package manager you’re using. Once that’s done, we reinstall a different version (either version 18.0.0 or the latest one) as well as the latest version of Go. Keep in mind that if you’re using version 18.0.0 of operator-sdk, we recommend installing version 1.17.6 of Go. 

Finally, check if the bin folder has now been created and if it has, you can go ahead and run your Make installation without any errors. 


Check your PATH variables

Since error 127 also indicates that a command or file required to run a command is missing, try checking your PATH variable to see if the command exists there. Alternatively, a simpler way of doing this is opening a terminal in the root directory of whatever command you want to run and then run the problematic command. 

Also read: Fix: Error:03000086:digital envelope routines::initialization error

1 Answer

Whenever reading the output of a build, you want to go up and find the FIRST error message. That’s almost always the important one. Once something fails, the rest of the errors might be cascading problems from the first one. In this case, that message is just make telling you that it tried to compile mod_param.c and it didn’t work. You’ll have to look at the messages BEFORE this one to see why the compile failed.

answered Jul 18, 2013 at 0:01

MadScientist's user avatar

MadScientistMadScientist

93.6k9 gold badges110 silver badges137 bronze badges

Понравилась статья? Поделить с друзьями:
  • Ошибка 127 не найдена указанная процедура центр обновления
  • Ошибка 127 не найдена указанная процедура windows 7
  • Ошибка 127 линукс
  • Ошибка 127 корел дро
  • Ошибка 127 андроид