ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
10

'catkin build' gives 'command not found

asked 2015-04-20 08:08:23 -0600

Nap gravatar image

I have ROS Indigo Desktop Full installed from binaries on Ubuntu 14.04.2.

I've been reading about the catkin make system, and am lead to believe there are 3 variations:

  • catkin_make
  • catkin_make_isolated, and
  • catkin build

I'm familiar with the first two and have used them for my projects, but I would like to make use of catkin build but I get an error catkin: command not found. There is no catkin script or executable in the /opt/ros/indigo/ folder structure.

What could be going wrong? Is there something else I need to install?

Cheers,
Nap.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
13

answered 2015-04-20 08:27:26 -0600

The catkin build command is part of the catkin_tools package. On apt-get the package is called python-catkin-tools.

The documentation for the package can be found here: http://catkin-tools.readthedocs.org/e...

Since the package was officially released, I have completely stopped using catkin_make. It is a great package!

edit flag offensive delete link more

Comments

@jarvisschultz : Thanks!!

Nap gravatar image Nap  ( 2015-04-20 08:34:24 -0600 )edit
4

I issued this command in the terminal, and it worked:

sudo apt-get install python-catkin-tools

Thank you!

mwycliff gravatar image mwycliff  ( 2018-06-19 00:46:16 -0600 )edit
3

The command that solved it for me was:

sudo apt-get install python3-catkin-tools

I was missing the python3 specification.

jeremylevasseur gravatar image jeremylevasseur  ( 2020-09-15 08:03:40 -0600 )edit

Err:1 http://packages.ros.org/ros/ubuntu focal/main amd64 python3-catkin-tools all 0.5.0-1 404 Not Found [IP: 2605:bc80:3010::134 80] E: Failed to fetch http://packages.ros.org/ros/ubuntu/po... 404 Not Found [IP: 2605:bc80:3010::134 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This is the error that shows up while running the "sudo apt-get install python3-catkin-tools" command. how do I solve it?

Prachetas04 gravatar image Prachetas04  ( 2021-10-23 07:54:09 -0600 )edit

It has been ages, but for someone else also looking for the answer:

https://catkin-tools.readthedocs.io/e...

First you need to add the repositories and then do apt install.

shrini96 gravatar image shrini96  ( 2022-05-09 05:02:32 -0600 )edit
1

answered 2021-06-23 18:21:10 -0600

prudhvirajstark gravatar image

catkin: command not found

catkin_make is working for me but "catkin init" or "catkin build" did not work in noetic version ubuntu 20.04.

So I Installed python tools

sudo apt-get install python3-catkin-tools

I got error with "osrf-pycommon" distribution was not found and is required by catkin-tools

so I install osrf-pycommon

sudo apt-get install python3-osrf-pycommon

And Now, catkin is working well and good.

Thanks for the other answers.

edit flag offensive delete link more
0

answered 2021-12-15 14:08:29 -0600

indraneel gravatar image

Following instructions on https://catkin-tools.readthedocs.io/e... fixed the problem for me

$ sudo sh \
-c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" \
    > /etc/apt/sources.list.d/ros-latest.list'
$ wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install python3-catkin-tools
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-20 08:08:23 -0600

Seen: 66,052 times

Last updated: Dec 15 '21