Env/System
zsh에서 /opt/ros/foxy/setup.bash: No such file or directory 해결
rva-k
2022. 11. 8. 12:01
Ubuntu 20.04 에 zsh를 설치하여 bash 대신 사용 중이다.
ros2 설치 중 ros2 command 문제가 발생했다.
ros2 command 문제는 command 호출과 관련되었는데 그 중 아래 명령과 관련되어 있다.
source /opt/ros/<distro>/setup.bash
zsh에서 위 명령어 입력시, No such file or directory Error가 발생한다.
해결법은 위 명령어 대신 아래 명령어 입력하면 된다. (bash 대신 zsh)
source /opt/ros/<distro>/setup.zsh