Score:0

"Helloworld" c program failed on my new ubuntu 20.04

ru flag

when i build hello world program on eclips they are showing this

when i build helloworld program on c on eclips this is shown on console:-

10:21:36 **** Build of configuration Debug for project sample **** make all Cannot run program "make": Unknown reason

Error: Program "make" not found in PATH PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]

10:21:36 Build Failed. 1 errors, 0 warnings. (took 26ms)


i downloaded open jdk 11 when check java version it shown as

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

i have searched this problem on internet , but i didn't found any solution =======

Score:3
cn flag

C does not need openjdk. You need build-essential and make in this case. Simply type in the terminal sudo apt install build-essential make

I don't use eclipse so I don't know if you need to configure the makefile too.

sahood avatar
ru flag
thank you for your help , it is working
Score:1
zw flag

Before proceeding you have to install needed build tools by

sudo apt-get install build-essential

For C/C++ development in Eclipse you have to install correct addon. Visit HelpEclipse Marketplace and install Eclipse C/C++ CDT.

Eclipse CDT

Then restart Eclipse to create project from FileNewProject, C/C++, C Project, Hello World ANSI C Project.
Finally build it by Ctrl+B, run with Ctrl+F11.

sahood avatar
ru flag
it is working , from Eclips Marketplace i can able to update eclips too . and now the problem is solved , it was a great help
N0rbert avatar
zw flag
Great! So you can accept this my answer by using grey checkmark at the left of this answer.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.