to verity the installation, but sometimes we would get this error:
2. Environments
The linux system is:
3. Debug
We try to find the file named libssl.so.1.1 as follows:
We can find that the libcrypto.so.1.1 is located in the /usr/local/lib64,
But openssl try to find the .so libraries in the LD_LIBRARY_PATH:
So the solution is try to tell openssl where the library is.
4. Resolve it
There are two methods to resolve this problem:
4.1 Method 1: Change the LD_LIBRARY_PATH
4.2 Method 2: Create a link to the file
5. More about the LD_LIBRARY_PATH
As the linux documents shown:
Final Words + More Resources
My intention with this article was to help others who might be considering solving such a problem.
So I hope that’s been the case here. If you still have any questions, don’t hesitate to ask me by
email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope:
In this post, I will demo how to install wrk, a web url performance test tool on linux/unix/mac systems.
2. The solution
2.1 How to install wrk?
On linux systems, to ensures that your package manager (APT) has the most up-to-date information about available packages, versions, and dependencies, we should update the local cache first:
Then we install the wrk tool using apt install command:
You can see that we got an error E: Unable to locate package wrk, why?
And wrk can only run on Unix-like systems. Such as linux, mac, solaris, etc. It can only be compiled on these systems.
So we can install it from source:
Download wrk source code:
Then build it:
Then we can use the binary:
2.2 Verify the installation of wrk
It works.
3. Summary
In this post, I demonstrated how to install wrk , a great performance test tool . That’s it, thanks for your reading.
Final Words + More Resources
My intention with this article was to help others who might be considering solving such a problem.
So I hope that’s been the case here. If you still have any questions, don’t hesitate to ask me by
email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope:
This post will show you how to solve ‘BPF’ object has no attribute ‘get_syscall_fnname’ when run bpf program in linux ?
Problem
When you run a python bpf_program in linux, you run this command:
For example, if our bpf program’s name is example.py:
The example.py content is:
You get this error:
The error AttributeError: 'BPF' object has no attribute 'get_syscall_fnname' indicates that the BPF class from the bcc module does not have a method named get_syscall_fnname.
Environment
You check your os version by this command:
Python version:
Solution: Install the bcc dependencies
According to python bcc documents, you should install the libbcc and python bcc into system.
what is libbcc?
and what is python-bcc:
After all done, you can run the python bpf script again:
It works!
Final Words + More Resources
My intention with this article was to help others who might be considering solving such problem. So I hope that’s been the case here. If you still have any questions, don’t hesitate to ask me by email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope: