How to Install libtbb-dev package on Ubuntu 20.04 LTS (Focal Fossa)


In this article, I will take you through the steps to install libtbb-dev package on Ubuntu 20.04 LTS (Focal Fossa). Threading Building Blocks (TBB) is a C++ template library that helps us leverage multi-core processor performance without having to be a threading expert. It is developed by Intel for parallel programming on multi-core processors. Using this library, any complex computation can be broken down into multiple tasks that can run in parallel.

The library manages and schedules threads to execute these tasks. It represents a higher-level, task-based parallelism that abstracts platform details and threading mechanism for performance and scalability. This library can be installed through libtbb-dev package on Linux based systems. Here we will see the steps to install this library on Ubuntu based systems.

How to Install libtbb-dev package on Ubuntu 20.04 LTS (Focal Fossa)

How to Install libtbb-dev package on Ubuntu 20.04 LTS (Focal Fossa)

Also Read: How to Install SimulIDE on Ubuntu 20.04 LTS (Focal Fossa)

Step 1: Prerequisites

a) You should have a running Ubuntu 20.04 LTS Server.

b) You should have sudo or root access to run privileged commands.

c) You should have apt or apt-get utility available in your System.


Step 2: Update Your Server

First you need to update the System package cache with all the latest available updates from Ubuntu repo by using sudo apt update command as shown below.

cyberithub@ubuntu:~$ sudo apt update
Get:1 stable InRelease [1,811 B]
Get:2 focal-security InRelease [114 kB]
Hit:3 focal InRelease
Get:4 focal-updates InRelease [114 kB]
Get:5 stable/main amd64 Packages [1,074 B]
Hit:6 focal InRelease
Get:7 focal-security/main amd64 DEP-11 Metadata [40.7 kB]
Get:8 focal-backports InRelease [108 kB]
Get:9 focal-security/universe amd64 DEP-11 Metadata [77.3 kB]
Get:10 focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:11 focal-updates/main amd64 Packages [2,072 kB]
Get:12 focal-updates/main i386 Packages [712 kB]
Get:13 focal-updates/main amd64 DEP-11 Metadata [278 kB]
Get:14 focal-updates/universe amd64 DEP-11 Metadata [391 kB]
Get:15 focal-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:16 focal-backports/main amd64 DEP-11 Metadata [7,996 B]
Get:17 focal-backports/universe amd64 DEP-11 Metadata [30.5 kB]


Step 3: Install libtbb-dev

In the next step, install libtbb-dev package from default Ubuntu repo by using sudo apt install libtbb-dev command as shown below. This will download the library package along with all its dependencies.

cyberithub@ubuntu:~$ sudo apt install libtbb-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
Suggested packages:
The following NEW packages will be installed:
libtbb-dev libtbb2
0 upgraded, 2 newly installed, 0 to remove and 46 not upgraded.
Need to get 397 kB of archives.
After this operation, 2,483 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 focal/universe amd64 libtbb2 amd64 2020.1-2 [124 kB]
Get:2 focal/universe amd64 libtbb-dev amd64 2020.1-2 [273 kB]
Fetched 397 kB in 2s (204 kB/s)
Selecting previously unselected package libtbb2:amd64.
(Reading database ... 217645 files and directories currently installed.)
Preparing to unpack .../libtbb2_2020.1-2_amd64.deb ...
Unpacking libtbb2:amd64 (2020.1-2) ...
Selecting previously unselected package libtbb-dev:amd64.
Preparing to unpack .../libtbb-dev_2020.1-2_amd64.deb ...
Unpacking libtbb-dev:amd64 (2020.1-2) ...
Setting up libtbb2:amd64 (2020.1-2) ...
Setting up libtbb-dev:amd64 (2020.1-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...


Step 4: Verify the Package

After successful installation, you can verify all the installed files by using dpkg -L libtbb-dev command as shown below.

cyberithub@ubuntu:~$ dpkg -L libtbb-dev

Leave a Comment