May 06, 2018 In this post we will see How to Install OpenCV in Ubuntu for C/C OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. OpenCV means Intel® Open Source Computer Vision Library. Nov 29, 2016 Hansoft is the agile project management tool for enterprise teams. Fast, efficient, and flexible, Hansoft empowers teams to collaborate more efficiently so they can advance together and build better products. Hansoft runs natively on leading operating sytems including OS, Windows, and Linux,.
How do I install GNU/GCC (C and C++) compiler and related tools (such as make, debugger, man pages) collection under Ubuntu Linux operating system using command line options?You need to install following packages on Debian and Ubuntu Linux:
build-essential package – Installs the following collection to compile c/c++ program on a Ubuntu Linux including:
- libc6-dev – C standard library.
- gcc – C compiler.
- g++ – C++ compiler.
- make – GNU make utility to maintain groups of programs.
- dpkg-dev – Debian package development tools.
Basically, build-essential package contains an informational list of packages which are considered essential for building Ubuntu packages including gcc compiler, make and other required tools. This package also depends on the packages on that list, to make it easy to have the build-essential packages installed. In this tutorial, you will learn about installing the GNU C compiler and GNU C++ compiler on a Ubuntu Linux.
Installing compilers using apt command
Open the terminal app and type the following apt command/apt-get command:$ sudo apt update
$ sudo apt upgrade
$ sudo apt install build-essential
OR$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential
Sample outputs:
Verify installation
Type the following commands:$ whereis gcc make
$ gcc --version
$ make -v
Installing the dev man pages on a Ubuntu Linux
Type the following command:$ sudo apt-get install manpages-dev man-db manpages-posix-dev
To view library calls (functions within program libraries), enter:$ man 3 scanf
$ man 2 execve
$ man 2 fork
You can write a small program to test GNU c/c++ compiler:$ vi test.cpp
Append the following code:
Save and close the program. You can compile it as follows:$ make test
OR$ g++ test.cpp -o test
You should get an executable named test in the current directory:$ ls -l test
Sample outputs:
Just run it:$ ./test
Installing the X11 development compilers
Type the following command:$ sudo apt install libx11-dev
Install Dev C Ubuntu Version
1Install Libjson-c-dev Ubuntu
of 13 in the Linux GNU/GCC Compilers Tutorial series. Keep reading the rest of the series:- Ubuntu Linux Install GNU GCC Compiler and Development Environment
ADVERTISEMENTS