not able to source setup.bash after installing ros kinetic on ubuntu-16.04
I followed this installation guide. I didn't get any error while installing.
but source /opt/ros/kinetic/setup.bash
throw error
/opt/ros/kinetic/setup.bash:.:8: no such file or directory: /home/praveen/catkin_ws/setup.sh
I get similar error in catkin workspace
source devel/setup.bash
throw devel/setup.bash:.:8: no such file or directory: /home/praveen/catkin_ws/setup.sh
when running this command inside devel dir. it returns
praveen@praveen ~/catkin_ws/devel
% source setup.bash
/opt/ros/kinetic/etc/catkin/profile.d/05.catkin_make.bash:67: command not found: complete
/opt/ros/kinetic/etc/catkin/profile.d/05.catkin_make_isolated.bash:65: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:961: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:962: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:963: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:964: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:965: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:966: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:967: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:968: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:969: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:970: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:971: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:972: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:973: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:974: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:975: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:976: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:977: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:978: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:979: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:980: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:981: command not found: complete
/opt/ros/kinetic/share/rosbash/rosbash:982: command not found: complete
/opt/ros/kinetic/etc/catkin/profile.d/20.transform.bash:23: command not found: complete
/opt/ros/kinetic/etc/catkin/profile.d/20.transform.bash:42: command not found: complete
echo $ROS_PACKAGE_PATH
outputs
/opt/ros/kinetic/share
% cat /opt/ros/kinetic/setup.bash
#!/usr/bin/env bash
# generated from catkin/cmake/templates/setup.bash.in
CATKIN_SHELL=bash
# source setup.sh from same directory as this file
_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
. "$_CATKIN_SETUP_DIR/setup.sh"
Did you have a from-sources installation before you installed from debians? Especially this:
is suspicious. Files in
/opt/ros/$distro
should not refer to files in your $HOME.Can you add the contents of
/opt/ros/kinetic/setup.bash
to your question?The many warnings about
complete
not being found makes it seem like you're not using bash. Are you using some other shell like csh or zsh?Yes, I am using zsh. I suspect that is causing issue. I will try in normal bash shell and let you know. Thanks
I tried it in normal shell. I am getting same error.
Do you still get errors if you use
setup.zsh
?@gvdhoorn. setup.zsh seems working. it is not giving any error. Could you please write an answer so I can mark as correct answer. Hopefully explaining the underline issue. Thanks