Help, building Gz_Msgs

I have been trying to make the frcsim but when i try to build the Gz_Msgs in terminal. the command “make install” keeps giving me an error.

I’m in the ~/wpilib/simulation/gz_msgs/build directory like told in the instructions.

12%] compiling /home/team5924/wpilib/simulation/gz_msgs/src/main/proto/frc_joystick.proto
make[2]: PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND: Command not found
CMakeFiles/gz_msgs.dir/build.make:77: recipe for target ‘generated/simulation/gz_msgs/frc_joystick.pb.cc’ failed
make[2]: *** [generated/simulation/gz_msgs/frc_joystick.pb.cc] Error 127
CMakeFiles/Makefile2:60: recipe for target ‘CMakeFiles/gz_msgs.dir/all’ failed
make[1]: *** [CMakeFiles/gz_msgs.dir/all] Error 2
Makefile:116: recipe for target ‘all’ failed
make: *** [all] Error 2

Does anyone know how to fix this?

I have already tried “sudo apt-get install cmake” and “sudo apt-get update” but nothing changed. I’m running this in Ubuntu 15.10 in VMware player.

The key is the “PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND”. That’s telling you cmake didn’t find the protobuf compiler (protoc) executable. It should be available in Ubuntu as the “protobuf-compiler” package (you’ll likely need the “libprotobuf-dev” package as well). After installing the packages you should delete your build directory and re-run cmake.