Ask Your Question

Compiling new package causing roscore command not found

asked 2014-02-10 15:34:14 -0600

evk02 gravatar image

updated 2014-02-11 08:27:05 -0600

I'm trying to compile a new package with catkin_make_isolated but after visibly successful installation my I receive roscore and catkin_make, etc command not found. My only option is to reload from an earlier backup to restore my ROS.

The steps I'm following:

  1. Installing roscopter on Hydro from here: ( )
    1. I place the roscore source in the /src library
    2. compile mavlink with sudo python install
  2. Run catkin_make:

    catkin_make_isolated --pkg <my_package_name> --install
  3. Roscore is still working until I don't restart, after that command not found

The .bashrc does refer to the install_isolated/setup.bash, still no roscore or catkin_make, etc

edit retag flag offensive close merge delete


Which OS are you running? Have you installed ROS from debs or from source?

ahendrix gravatar imageahendrix ( 2014-02-10 19:05:33 -0600 )edit

Sorry, I just saw this comment. The issue already got resolved (see details below), but in case others would read this later here is the answer to your question: OS: Raspbian Wheezy on a Raspberry Pi ROS is compiled from source

evk02 gravatar imageevk02 ( 2014-02-12 05:29:08 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-02-11 08:06:43 -0600

evk02 gravatar image

updated 2014-02-11 09:36:43 -0600

ahendrix gravatar image

It seems there was/is an issue with the roscopter install instructions ( ):


  • Navigate back to repo folder
  • Checkout mavlink using submodule (shown below), or create a symlink to an existing mavlink build.
    • Run command 'git submodule init'
    • Run command 'git submodule update'
  • To build mavlink, navigate to the "pymavlink" folder and run the command "sudo python install".


If you follow the above instructions word by word then the mavlink folder will be created in the roscopter folder causing the above issue. You actually need to move the mavlink folder to roscopter/src and then compile it. It is strange that the compile did run through fine but resulted in ros setup files being changed, but in any way this seemed to solve it.

The instructions correctly should state:


  • Navigate back to repo folder
  • Navigate to src folder
  • Checkout mavlink using submodule (shown below), or create a symlink to an existing mavlink build.


edit flag offensive delete link more


You should probably file this as a bug against roscopter if you haven't yet.

ahendrix gravatar imageahendrix ( 2014-02-11 08:08:19 -0600 )edit

Yes, I have already raised this question there too and now I'm asking them to update the instructions (see Thanks.

evk02 gravatar imageevk02 ( 2014-02-11 08:13:39 -0600 )edit

answered 2014-02-10 19:10:18 -0600

ahendrix gravatar image

If you're building this as part of a complete installation of ROS from source, you probably shouldn't be using the --pkg option to catkin_make_isolated. I suspect it's compiling just that package and replacing your ROS install with only the package you specify.

Try building with:

catkin_make_isolated --install
edit flag offensive delete link more


Actually it looks that things go south even before I would get to the catkin-make-isolated --pkg part. As soon as I compile mavlink (see instal instructions on Hydro here : ) and restart there is no catkin_make or roscore, etc.

evk02 gravatar imageevk02 ( 2014-02-11 07:41:01 -0600 )edit

It sounds like something you're doing along the way is accidentally overwriting the setup files. Try doing an `ls -l` on install_isolated/setup.bash after every installation step, and look for changes in size and timestamp.

ahendrix gravatar imageahendrix ( 2014-02-11 07:48:20 -0600 )edit

You are right, I think I just figured it out. There was an error in the roscopter package install instructions - see details in my answer below.

evk02 gravatar imageevk02 ( 2014-02-11 08:01:48 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2014-02-10 15:34:14 -0600

Seen: 1,032 times

Last updated: Feb 11 '14