BinaryAnalysisPlatform / bap

Binary Analysis Platform
MIT License
2.07k stars 273 forks source link

Some barriers while installing #1608

Open Pisces032 opened 4 months ago

Pisces032 commented 4 months ago

I am very interested in the BYTEWEIGHT plugin in your BAP product because I have read a paper about the BYTEWEIGHT algorithm. However, I have encountered many issues while installing BAP, and I have never been able to install it successfully due to missing various libraries. Could you please recommend an operating system platform for BAP? I have tried on Ubuntu 23.10.1 and Debian Wheezy 7.6, but both attempts have failed.

Then, I will describe the issues I encountered:

Attempt on Debian Wheezy 7.6: According to the description on BAP's GitHub page, the official site provides pre-built binary packages for the Debian distribution. Pasted image 20240717085526 Pasted image 20240717085834 After downloading the three files: bap, libbap, and libbap-dev, I found that the dpkg version was too low to install them. Pasted image 20240717090018 So I tried to update dpkg, but it didn't work. Finally, I manually unpacked and repacked the deb files and installed the fixed new packages. Pasted image 20240717090204 Pasted image 20240717090155 Then, during installation, an error occurred saying that the libffi6 package was missing, but I was unable to install this missing package. Pasted image 20240717090456 Pasted image 20240717090644 Pasted image 20240717090734 GPT suggested that I might need to upgrade the libc6 package, but this is a system-level operation that needs to be handled with caution. I was not sure if this would solve the problem, so I stopped there.

Attempt on Ubuntu 23.10.1: Then I tried on a newer operating system, Ubuntu 23.10.1, but the libffi6 package was still missing. Pasted image 20240717090926 Pasted image 20240717090941 So I started to try installing from source. However, I encountered an error due to missing llvm dependencies. Pasted image 20240717091035 Pasted image 20240717091144 When I tried to install llvm, I got over a hundred errors. Pasted image 20240717091222 Pasted image 20240717091251 I would like to ask the developers for help on how to resolve these installation issues. Am I installing the libraries incorrectly, or should I use a specific operating system environment for better results?