How do I run rosdep init without sudo?
Hi, I am trying to do a non privileged install of ros melodic and wanted to know whether it is possible to run rosdep without sudo.
When searching online i found this command (https://github.com/ros-infrastructure/rosdep/issues/495#issuecomment-442610838):
ROSDEPSOURCEPATH=/tmp/asdf rosdep init
When i execute it, i get
$ ROSDEPSOURCEPATH=/tmp/asdf rosdep init
ERROR: cannot create /etc/ros/rosdep/sources.list.d:
[Errno 13] Permission denied: '/etc/ros/rosdep'
Am i doing something wrong or was this very useful feature removed for some reason?
I appreciate any hints.
- barcode
Asked by barcode on 2019-03-07 11:15:07 UTC
Comments
Related: #q276942.
Asked by gvdhoorn on 2019-03-07 11:19:37 UTC
Seems like your tmp directory needs to exist first - https://github.com/ros-infrastructure/rosdep/blob/110d97f2395813beafcee31321cb1d35f15a8a0b/src/rosdep2/sources_list.py#L91
Are you sure you it exists?
Asked by karnix on 2019-04-30 12:48:55 UTC
It did not. Creating the directory fixed it.
Asked by barcode on 2019-05-28 11:08:19 UTC