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

ros-core install troubles on arch linux

asked 2012-06-22 18:54:18 -0500

skyeyemachine gravatar image

updated 2014-01-28 17:12:47 -0500

ngrennan gravatar image

Hello,

I am trying to install ROS Fuerte on Arch Linux, and am running into issues with the ros-core package. The computer is a 64-bit system, if that matters. I have been unable to find any error reports or guides that would help me resolve this issue; everything in the Arch Wiki and the ROS documentation that I have found seems to assume that ros-core installs, so I'm stuck.

Upon trying to build, I get the following error message from yaourt (AUR wrapper for pacman package manager);

==> Continue building ros-core ? [Y/n]
==> ----------------------------------
==> 
==> Building and installing package
==> Making package: ros-core 1.8.4-1 (Fri Jun 22 21:13:25 PDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
--2012-06-22 21:13:25--  http://ros.org/rosinstalls/fuerte-ros-full.rosinstall
Resolving ros.org... 157.22.19.144
Connecting to ros.org|157.22.19.144|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1920 (1.9K) [text/plain]
Saving to: `/tmp/yaourt-tmp-scrye/aur-ros-core/src/ros-underlay/.rosinstall'

100%[===========================>] 1,920       --.-K/s   in 0.004s  

2012-06-22 21:13:25 (490 KB/s) - `/tmp/yaourt-tmp-scrye/aur-ros-core/src/ros-underlay/.rosinstall' saved [1920/1920]

/tmp/yaourt-tmp-scrye/aur-ros-core/./PKGBUILD: line 25: rosinstall: command not found
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build ros-core.
==> Restart building ros-core ? [y/N]
==> ---------------------------------

I tried moving rosinstall to /usr/bin and it was recognized, but then the following occurs;

==> Building and installing package
==> Making package: ros-core 1.8.4-1 (Fri Jun 22 21:17:33 PDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
--2012-06-22 21:17:33--  http://ros.org/rosinstalls/fuerte-ros-full.rosinstall
Resolving ros.org... 157.22.19.144
Connecting to ros.org|157.22.19.144|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1920 (1.9K) [text/plain]
Saving to: `/tmp/yaourt-tmp-scrye/aur-ros-core/src/ros-underlay/.rosinstall'

100%[===========================>] 1,920       --.-K/s   in 0s      

2012-06-22 21:17:33 (346 MB/s) - `/tmp/yaourt-tmp-scrye/aur-ros-core/src/ros-underlay/.rosinstall' saved [1920/1920]

/usr/bin/rosinstall: line 1: -: command not found
/usr/bin/rosinstall: line 2: local-name:: command not found
/usr/bin/rosinstall: line 3: uri:: command not found
/usr/bin/rosinstall: line 4: version:: command not found
/usr/bin/rosinstall: line 5: -: command not found
/usr/bin/rosinstall: line 6: local-name:: command not found
/usr/bin/rosinstall: line 7: uri:: command not found
/usr/bin/rosinstall: line 8: version:: command not found
/usr/bin/rosinstall: line 9: -: command not found
/usr/bin/rosinstall: line 10: local-name:: command not found
/usr/bin/rosinstall: line 11: uri:: command not found
/usr/bin/rosinstall: line 12: version:: command not found
/usr/bin/rosinstall: line 13: -: command not found
/usr/bin/rosinstall: line 14: local-name:: command not found
/usr/bin/rosinstall: line 15: uri:: command not found
/usr/bin/rosinstall: line 16: version:: command not found
/usr/bin/rosinstall: line 17: -: command not found
/usr/bin/rosinstall ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-06-22 21:23:00 -0500

Lorenz gravatar image

updated 2012-06-26 07:59:43 -0500

You shouldn't move rosinstall by hand to /usr/bin. That normally doesn't work since it depends on a few libraries that you probably are missing. There is an AUR package for rosinstall though which should work fine.

Installation of ros-core will probably still fail because arch uses python3 while ROS still expects python2. I've see suggestions to just change the link from /usr/bin/python from python3 to python2 but this is, I guess, a pretty bad idea since the whole system now expects it to be python3. Instead, patching #! lines should be a much better solution, i.e. you will have to hack the ros-core AUR file. A very simple script for fixing the python #! lines can be found here.

I'm planning to create my own AUR packages for ROS fuerte (not only the core packages but also a lot of additional stack) that work without rosinstall and out of the box but I just didn't have time yet. However, I created a bunch of AUR files for electric that still should work (including PCL). You can find them here.

Edit: Instead of installing rosinstall from an AUR package, you can also use pip.

sudo pacman -S python2-pip
sudo pip2 install rosinstall
edit flag offensive delete link more
1

answered 2012-06-29 12:37:47 -0500

KruseT gravatar image

It seems that you did not move rosinstall to /usr/bin, but instead moved some rosinstall YAML file to /usr/bin and made it executable.

rosinstall is a program

fuerte-ros-full.rosinstall is not a program, it is just data (for rosinstall)

The documentation here tells you to install rosinstall: http://www.ros.org/wiki/fuerte/Installation/Arch#The_Python_Issue

but prefer to do it with pip2 as lorenz says.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-06-22 18:54:18 -0500

Seen: 1,247 times

Last updated: Jun 29 '12