Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Notes on the twists and turns of bcc-tools installation

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Linux dynamic monitoring is a wonderful world, DTrace not to mention (limited by oracle), SystemTap is good, and Sysdig, in addition to these, there is eBPF:bcc-tools, recently playing bcc-tools, but the installation is not smooth, the first online use is centos, initially wanted to install on centos, but there is no ready-made package for centos, found an installation document on the Internet, unfortunately, followed all the way, in the installation of sysdig that step did not succeed Later source code compilation also reported errors, sysdig installation can not run, systemtaps stuck on debuginfo, to download 600m things, the company network is not easy to get, and then bcc-tools also compiled errors, none of which can be used, which made me angry.

So I created a new instance of ubunt on AWS, prompted me to upgrade, and went up to 1604, and then installed bcc-tools. This time it went surprisingly smoothly. After testing, each tool ran very well, So easy! However, the AWS machine located in the United States, the SSH is also quite slow, the button filled with a sense of rhythm, and use the excess deduction of US dollars that is clattering, or their own local trouble with a more reliable.

On virtualbox, this guy is OK to use, but I have not successfully installed the guestaddtions, so the clipboard and shared folder cannot be used, and the paste operation is so slow. It makes me have the idea that the outside has to be installed first. I still haven't been able to do it for a long time. I suddenly remembered that there is not xshell. After setting up the bridge, I can connect directly with xshell and paste it. The font interface looks better. However, the installation of bcc-tools under ubuntu1610 failed, directly saying that python-bcc was not installed, installing python-bcc said that libbcc was not installed, installing libbcc said that there was no such package, and the source code was compiled, but an error was reported, saying that u_128int was not in scope and so on, Baidu could not find a solution for it, suspected that there was a difference between 1610 and 1604, so it reinstalled 1604 ubuntu, and the ready-made vbox package was downloaded too slowly, only downloading the ISO package and installing it. Manual installation is a little troublesome, but this step should be automated.

The problem is that after installing 1604, it is still not possible to install bcc-tools smoothly, and the source code compilation is the same error report, damn it! What exactly is the problem, and why is it so smooth on AWS? Check the version number of the two, the version number is exactly the same, the kernel version is the same, but there is a difference, AWS is 64-bit, and the local machine is limited to 32-bit WIN7, so it can only install 32-bit ubuntu, is that the problem? Then test it, download 64-bit ubuntu1604, with the help of easyBCD tool, realize 32-bit win7 and 64-bit ubuntu hard disk installation dual boot, in addition to sudo umount-l / isodevice this step tripped, the other is quite smooth, when the installation interface, to be honest, ubuntu surprised me, very beautiful, the terminal font and interface is also very beautiful, a little MAC feeling

Desktop ubuntu gives me the idea that I want to use linux directly as a system, maybe for me, this linux is enough, it's time for a change, and it's worth the N linux distributions I've had in those years; the point is, install bcc-tools, smooth sailing! I am dizzy, 32-bit and 64-bit is also a pit?

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report