Build linux tools package

Install build essential tools on Ubuntu 22.04 or 20.04 LTS Linux

To compile programs from their source code, we need some tools and libraries available through a single package called on Build essential on Ubuntu 20.04 | 22.04 |18.04 or Debian 11 | 10 base repository. Here we learn how to install it.

Build essential is a name for a package that includes the GCC/g++ compilers and libraries and some other utilities required to compile software written in C and C++.

The Gnu Compiler Collection, GCC for short, is a collection of compilers and offers a uniform interface for creating programs in C, C ++, Objective-C, Fortran, Ada, Assembler and Go.

The original meaning of GCC was GNU C Compiler, but because several other languages ​​have been added since then, the meaning has changed to GNU Compiler Collection. Today the C compiler is called gcc in lower case to make it possible to distinguish it from the whole.

The key packages automatically installed on our Debian or Ubuntu system from Build-essentials are GCC– it is a GNU compile for C Programming; g++ for compiling C++ programming language; libc6-dev – GNU C library; Make – The traditional build system or a tool directs compiler how to work; to pack or unpack a Debian package, utility dpkg-dev is also there.

In short, by setting up build-essential we get all the required tools we need to compile software on Ubuntu/Debian systems.

If you have already created packages of any kind yourself, you will have already installed the build-essential package. In addition to a compiler each for C and C ++, it also contains numerous helpful tools that are so widely used by developers (e.g. Makefiles) that they can be taken for granted under any system that wants to compile something.

This article aims to help compile programs using the GCC on Ubuntu. It does not intend to provide any information programming language.

Источник

How to Install Development Tools on Ubuntu, Debian & Mint

Development tools are required to install on your system if you have planned to build software. It’s also useful for building packages on your system. Development tools contain a few general useful tools like GCC, g++, make, libc6-dev, and dpkg-dev packages. You need to install build-essential on Ubuntu and LinuxMint systems which include all other required packages as dependencies.

Читайте также:  Коды клавиш клавиатуры линукс

Install Development Tools on Ubuntu, Debian and Mint

The development tools packages are available under default apt repositories for most of the Ubuntu-based systems. Use the following commands to install the development tools package on your Ubuntu and Linuxmint systems.

sudo apt update sudo apt install build-essential 

Check Installed Versions

After successful installation of the build-essential package on your system, let’s check installed versions of important binaries.

Check the version of GCC on your system:

Output
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc.

Also check the make binary version:

Output

GNU Make 4.2.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Conclusion

This quick how-to quite helps you to install development tools on your Ubuntu, Debian and other Debian-based Linux systems.

Источник

How can I compile, install and run the tools inside kernel/tools?

perf is one of them. In ubuntu I think the tools inside this folder is available as package linux-tools How can I compile it form source and install it and run it?

3 Answers 3

what’s wrong with the following?

That builds the tools and allows me to use those but how to build a similar package as official linux-tools deb?

@umläute I mean, is it possible to build linux-tools deb package from vanilla kernel sources without applying extra patches or copying debian directories around similar to using distribution supported make-kpkg command to build vanilla kernel sources?

Nowdays: make -C tools/ perf_install prefix=/usr/

I wanted to compile for a different architecture and this seems to work. I had hosttools from buildroot in the output/host/bin directory. Most people will have it there if using buildroot. I had to specify the LD and CC flag. So substitute with appropriate path and is the prefix for toolchain name.

make CC=/output/host/bin/-gcc LD=/output/host/bin/-ld -C tools/gpio/ 

You must log in to answer this question.

Linked

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Tutorial Install Development Tools On Ubuntu 20.04 & 21.04

Tutorial Install Development Tools On Ubuntu 20.04 & 21.04

When you want to install packages from the source or compile software, you will need Development Tools & Libraries. Also, it is required for developers to build packages in a Linux system. Development tools contain include all necessary applications such as GCC, g++, make, libc6-dev, and dpkg-dev packages. Depending on your Linux distribution, these tools could be installed in different ways. Join us to review the Tutorial Install Development Tools On Ubuntu 20.04 & 21.04. Various interesting packages are available on Eldernode, have a look and order your own Ubuntu VPS Hosting.

Читайте также:  Linux debian настройка своего сервера

Install Development Tools On Ubuntu 20.04 & 21.04

In this article, you will learn how to install the development tools group on Ubuntu. You can install the developer tools in two ways, individually one by one, or all at once. To make it easier, we will show you how to install it all at once.

Prerequisites to Install Development Tools on Ubuntu

To let this tutorial work better, please consider the below Prerequisites:

_ A non-root user with Sudo privileges. To setup, follow our Initial server setup on Ubuntu 21.04.

How to Setup/Install Development Tools on Ubuntu

Since the development tools packages are available under default apt repositories for most of the Ubuntu-based systems, run the command below to install the development tools package on your Ubuntu system:

sudo apt-get install build-essential

In this way, you install the developer tools all at once and all the build-essential package is installed on your system now.

When the installation is finished, use the following command to check installed versions of important binaries:

Install Make on Ubuntu 20.04 & 21.04

You can also install the latest version of developer tools and IDEs (PHPStorm, WebStorm, PyCharm, Android Studio, Eclipse, NetBeans, etc.) using Ubuntu Make. It is a command-line utility that will install all the required dependency packages in an easy way.

In this section, you will learn How to install Ubuntu Make on Ubuntu 20.04 & 21.04. Then, you will review the installation of the latest version of developer tools and IDEs using Ubuntu Make on Ubuntu 20.04 & 21.04.

Ubuntu Make package is available in the official universe package repository of Ubuntu.

In the first step, you will enable the official universe package repository on Ubuntu. So, run the command below to do this:

sudo apt-add-repository universe

Now, use the following command to update the APT package repository cache:

In this step, you are ready to install Ubuntu Make. So, use the command below and then press Y to and Enter confirm the installation:

sudo apt install ubuntu-make

Once the installation is finished, you can check if Ubuntu Make is working correctly or not. run the following command to do this:

If you can view the current version in the output, it means that Ubuntu Make is working correctly.

How to find Available Software Group Name and Package Name on Ubuntu

To install a developer tool or IDE, you need to know the group name and the developer tool or IDE package name. It is not complicated to find them. Use the following command to find out the supported groups and developer tool or IDE package name:

Then, to find what software is available in your desired group, scroll down on the umake output. Note that each of the groups has its own set of software. However, you should see all the currently available software package names. But if you wish to find the available software programs in your desired group faster and not to scroll and search, run the following command:

Читайте также:  Linux для подключения к терминальному серверу

Note: Do not forget to replace your desired group with

Let’s see an example. If you want to see what software is available in the web group, run the command below:

So, you will see ”firefox-dev and visual-studio-code”. And any more in case of existence in the time of reading this article.

Install Developer Tools and IDEs on Ubuntu

When you make sure of the group name and the developer tool or IDE package name, you are ready to install the developer tool or IDE on your Ubuntu using Ubuntu Make.

To continue this section, let’s continue with an example. As a python developer, if you need to install PyCharm Community Edition on your Ubuntu machine, you can use Ubuntu Make. So, due to the above explanation, the group name should be ide and the package name be pycharm.

Run the umake command to install pycharm from the ide group using Ubuntu Make:

Then, you will be asked for your login password and an installation path. Type the password and press to continue. You can also leave the default and press .

Next, you can see the Ubuntu Make will start downloading and installing all the PyCharm dependencies and PyCharm. So, you will be able to start it from the Application Menu of Ubuntu.

PyCharm on ubuntu 21.04

PyCharm environment on ubuntu 21.04

How to Remove Developer Tools and IDEs on Ubuntu

You can also remove Developer Tools and IDEs using Ubuntu Make. To show you how easy is this, we remove PyCharm Community IDE as an example, which we installed earlier.

So, run umake with the -r flag as follows:

In this way, PyCharm Community IDE will be removed.

How to Update Developer Tools and IDEs on Ubuntu

Updating the installed developer tools or IDEs is not possible using Ubuntu Make. So, you can use a trick to update the already installed developer tools and IDEs using Ubuntu Make. Follow the below path to do this;

1- Remove the installed developer tool or IDE that you want to update:

2- Install the developer tool or IDE again with Ubuntu Make:

The developer tool or IDE should be updated now.

Note: While using this trick, you may lose your developer tool or IDE configuration. But the developer tool or IDE will be updated. You just need to reconfigure the developer tool or IDE.

Conclusion

In this article, you learned How to Install Development Tools On Ubuntu 20.04 & 21.04. Two different methods were explained. Also, you can install the development tools group in other Linux distributions such as RHEL, CentOS, Fedora, OpenSUSE, Debian, Mint, and Arch Linux.

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Источник

Оцените статью
Adblock
detector