Ubuntu - Development tools
I spent many hours figuring out why my freshly installed Ubuntu Linux 5.10 virtual machine doesn't compile a very simple C program, even after I use "apt-get install gcc" to install the GNU C compiler. Ubuntu keeps on saying it can't even find the header file "stdio.h".
Finally I found the answer at Ubuntu FAQ page here. The site says that C and C++ development were deliberatedly excluded from the typical installation and we need to use
Keywords: ubuntu-linux, c, programming
I spent many hours figuring out why my freshly installed Ubuntu Linux 5.10 virtual machine doesn't compile a very simple C program, even after I use "apt-get install gcc" to install the GNU C compiler. Ubuntu keeps on saying it can't even find the header file "stdio.h".
Finally I found the answer at Ubuntu FAQ page here. The site says that C and C++ development were deliberatedly excluded from the typical installation and we need to use
apt-get install build-essentialto install all the neccessary compilers, headers and libraries. In other words, installing only the gcc package isn't enough.
Keywords: ubuntu-linux, c, programming
Comments