Ask Your Question
0

catkin work space initializing

asked 2017-11-27 07:54:20 -0600

NegarL gravatar image

updated 2017-11-28 06:08:23 -0600

I installed ROS version Lunar on ubuntu 16.04 . I was trying to initializing the catkin work space that this error appeared :

Could neither symlink nor copy file "/opt/ros/lunar/share/catkin/cmake/toplevel.cmake" to "/opt/ros/lunar/catkin_ws/src/CMakeLists.txt":
- [Errno 13] Permission denied
- [Errno 13] Permission denied: '/opt/ros/lunar/catkin_ws/src/CMakeLists.txt'negar

what should I do???

I prefer not to reinstall it and when I use sudo, It's not work

I also create directory in $HOME , but :

negar@negar:/home/ros_working/catkin_ws/src$ catkin_init_workspace Could neither symlink nor copy file "/opt/ros/lunar/share/catkin/cmake/toplevel.cmake" to "/home/ros_working/catkin_ws/src/CMakeLists.txt": - [Errno 13] Permission denied: '/home/ros_working/catkin_ws/src/CMakeLists.txt'

And when I use sudo : sudo: catkin_init_workspace: command not found

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-11-27 07:57:17 -0600

gvdhoorn gravatar image

updated 2017-11-27 10:53:20 -0600

what should I do???

not try to make your Catkin workspace in a non-world-writable location. /opt/ros/lunar/catkin_ws is a location only writable by root (or users with similar permissions).

Try to create your workspace in your $HOME directory.


Edit: please add how you created your workspace (ie: the /home/ros_working/catkin_ws directory).

Also include the output of ls -al /home/ros_working/catkin_ws in your update.

And when I use sudo , sudo: catkin_init_workspace: command not found

never use sudo with ROS. It is hardly ever really necessary, and there are almost always other ways to achieve what you want to do.

It's certainly not needed to be able to create, init and build a workspace.

edit flag offensive delete link more

Comments

Thanks but It's ok to do that ?? to build it in another directory ?? no problem will occur ?

NegarL gravatar imageNegarL ( 2017-11-27 08:50:47 -0600 )edit

I would say it's best practice to not build in /opt/ros/...

gvdhoorn gravatar imagegvdhoorn ( 2017-11-27 09:08:19 -0600 )edit

I made my catkin work space in $HOME but I still have the problem !

NegarL gravatar imageNegarL ( 2017-11-27 10:00:37 -0600 )edit

I made my catkin work space in $HOME but I still have the problem !

then please tell us exactly which commands you used.

gvdhoorn gravatar imagegvdhoorn ( 2017-11-27 10:16:09 -0600 )edit
2

Don't use comments for this kind of update, edit your original question to add new info.

gvdhoorn gravatar imagegvdhoorn ( 2017-11-27 10:44:30 -0600 )edit

thanks, It was fixed

NegarL gravatar imageNegarL ( 2017-11-28 06:09:35 -0600 )edit

You did not include the output of ls -al /home/ros_working/catkin_ws in your update.

gvdhoorn gravatar imagegvdhoorn ( 2017-11-28 06:12:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-11-27 07:54:20 -0600

Seen: 538 times

Last updated: Nov 28 '17