# Installing ROS2 - Fast-RTPS-Gen installation error

**URL:** <https://discuss.px4.io/t/installing-ros2-fast-rtps-gen-installation-error/17133>\
**Category:** ROS 1 / ROS 2\
**Created:** [June 12, 2020, 1:07pm UTC](https://discuss.px4.io/t/installing-ros2-fast-rtps-gen-installation-error/17133 "2020-06-12T13:07:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![REGATTE](https://discuss.px4.io/user_avatar/discuss.px4.io/regatte/32/9550_2.png) [@REGATTE](https://discuss.px4.io/u/REGATTE)\
**Post date:** [February 16, 2022, 5:31pm UTC](https://discuss.px4.io/t/installing-ros2-fast-rtps-gen-installation-error/17133/8 "2022-02-16T17:31:11Z")

</div>

Hi, your error is die to the fact that you’re using a different version of Gradle than the one recommended by PX4 dev. Follow the below steps to continue your dev process

# uninstall previous gradle

$ sudo apt-get remove gradle

# install SDK

$ curl -s “[https://get.sdkman.io](https://get.sdkman.io)” | bash  
$ source “$HOME/.sdkman/bin/sdkman-init.sh”

# install gradle version 6.3 ONLY!!!

$ sdk install gradle 6.3

and then install FastRTPS Gen:  
$ git clone --recursive [GitHub - eProsima/Fast-DDS-Gen: Fast-DDS IDL code generator tool. Looking for commercial support? Contact info@eprosima.com · GitHub](https://github.com/eProsima/Fast-DDS-Gen.git) -b v1.0.4 ~/Fast-RTPS-Gen   
&& cd ~/Fast-RTPS-Gen   
&& gradle assemble   
&& sudo env “PATH=$PATH” gradle install

---

_[View the full topic](https://discuss.px4.io/t/installing-ros2-fast-rtps-gen-installation-error/17133)._
