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

Installing hydro on archlinux

asked 2014-01-14 04:49:03 -0500

loliveira gravatar image

updated 2014-01-28 17:19:01 -0500

ngrennan gravatar image

This is more a "how did I do it" than a "how do you do it".

The following sequence worked for me. By mixing the instructions from the groovy setup with the instructions from Install from source this is what I did. Note that there are some missing steps (related to dependencies that are on the official reps).

Any comments on better ways to do this are welcome :)

sudo pacman -S python2 gcc boost cmake libyaml yaml-cpp python2-yaml python2-nose python2-paramiko python2-netifaces tinyxml lsb-release bzip2 python2-pip mercurial subversion git pkg-config jshon make

wget <a href=""></a>
tar -zxvf packer.tar.gz 
cd packer
makepkg PKGBUILD 
sudo pacman -U packer*.pkg.tar.xz

sudo packer -S python2-empy log4cxx gtest

sudo pip2 install -U rospkg rosdep rosinstall catkin-pkg wstool

sudo rosdep init
rosdep update

mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws

rosinstall_generator ros_comm --rosdistro hydro --deps --wet-only > hydro-ros_comm-wet.rosinstall
wstool init -j8 src hydro-ros_comm-wet.rosinstall

./src/catkin/bin/catkin_make_isolated -DPYTHON_EXECUTABLE=/usr/bin/python2 -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/ --install --install-space /opt/ros/hydro
edit retag flag offensive close merge delete


This should probably go on the Wiki (e.g., similarly to the Groovy installation doc: I just fixed the automatic PKGBUILD generation for Hydro so AUR packages could also be made rather easily.

bchr gravatar image bchr  ( 2014-01-14 06:35:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-15 21:57:15 -0500

bchr gravatar image

updated 2014-01-19 01:35:20 -0500

Installing Hydro with AUR packages

The other possibility (just like for Groovy) is to use AUR packages. If you use yaourt (or packer), you can check the available ROS Hydro packages by typing:

yaourt ros-hydro

To avoid confirmation for all the packages, you can add the --no-confirm option:

yaourt --noconfirm ros-hydro

Then simply pick the packages you want. If we take your example, this would be:

yaourt --noconfirm ros-hydro-ros-comm

Note that packages are currently being added. Even though most official packages have been added, some may still be missing.

Adding new AUR packages

If you want to help packaging for Arch Linux, you can use available in ros-build-tools. You can fork arch-ros-stacks and contribute by doing this:

# Go to ros-build-tools upstream scripts
cd /path/to/arch-ros-stacks/dependencies/ros-build-tools

# List available packages
python2 --distro=hydro --list

# Generate PKGBUILD for a given package
python2 --distro=hydro --output-directory=/path/to/arch-ros-stacks/hydro package_name

# Go to newly created package directory
cd ../../hydro/package_name

# Build, install, add to Git and create AUR source tarball
# You may need to apply some patches in the PKGBUILD (e.g. for Ogre 1.8)
makepkg -if && git add PKGBUILD && makepkg --source

After that, you can upload the new package's *.src.tar.gz to AUR, commit and make a pull request on GitHub. Thus, other Arch Linux users will be able to install your package by simply typing:

yaourt ros-hydro-package-name

Note that you can also create PKGBUILDs manually (just copy another package's PKGBUILD and adapt it), but the automatic process is probably the safest option, since it gets the latest release version, the adequate dependencies, the short description etc.

edit flag offensive delete link more


Just installed using this (much better ;) ) method... However I ran insto some dependencies not being met: ros-comm cannot resolve genmsg, and genmsg does require catkin for building (and does not ask for the dependency). Edit: Wrote too soon, there are some "Could not resolve all dependencies".

loliveira gravatar image loliveira  ( 2014-01-17 01:38:12 -0500 )edit

If you find any error, please post on the package's AUR page or on my GitHub fork ( This makes it easier to fix errors. As for dependencies, I simply use the dependencies listed in catkin package.xml and I fix it with rosdep mappings (which are currently being fixed as well).

bchr gravatar image bchr  ( 2014-01-17 02:16:01 -0500 )edit

Sorry for the delay in replying. The problem was with packer, I changed to yaourt and everything worked perfectly.

loliveira gravatar image loliveira  ( 2014-01-27 23:36:47 -0500 )edit

That's good to hear!

bchr gravatar image bchr  ( 2014-01-27 23:40:57 -0500 )edit

Question Tools



Asked: 2014-01-14 04:49:03 -0500

Seen: 758 times

Last updated: Jan 19 '14