IoTGoat icon indicating copy to clipboard operation
IoTGoat copied to clipboard

Not able to build from source

Open ivansimon319 opened this issue 10 months ago • 4 comments

Hello. I am facing an error while building from the source. The error is regarding absence of gcc and g++ but in my kali linux virtual machine I have gcc and g++ v13.1.0.
IoTGoat

ivansimon319 avatar Aug 16 '23 11:08 ivansimon319

I was able to compile from source after a lot of troubleshooting and code patching. I'd recommend using the images from the IotGoat Releases for ease of use.

Xhoenix avatar Aug 26 '23 21:08 Xhoenix

For solution to the above problem, edit the file ./include/prereq-build.mk from the directory you're in the image, and change the gcc and g++ values to point to respective binaries on your system. For e.g. I added gcc-9 and g++-9 to the list and was able to solve the above bug.

image

  But, as I said there is a lot more troubleshooting to do after fixing the above.

Xhoenix avatar Aug 26 '23 21:08 Xhoenix

Its been awhile since building IoTGoat from source. Id recommend using Ubuntu over Kali for building but there might be toolchain updates that could cause conflicts which you both might be experiencing.

scriptingxss avatar Oct 09 '23 16:10 scriptingxss