Unable to run rviz in ubuntu 20.04.02 noetic due to error in accessing library
I'm working on a project with kuka. After the moveit setup configeration of my kuka model i'm not able to launch rviz through demo.launch file generated. I checked if there is a problem with rviz but it runs properly (separately as default rviz) when i launch it. (Running roscore in background).
rosrun rviz rviz
This is the error message i get when i run rviz from demo.launch
/opt/ros/noetic/lib/rviz/rviz: symbol lookup error: /opt/ros/noetic/lib/libmoveit_dynamics_solver.so.1.1.0: undefined symbol: _ZNK3KDL6Vector4NormEv
[rviz_rbcserver101_422390_1667505097478654005-5] process has died [pid 422427, exit code 127, cmd /opt/ros/noetic/lib/rviz/rviz -d /home/rbc-server-101/catkin_ws/src/moveit_config/launch/moveit.rviz __name:=rviz_rbcserver101_422390_1667505097478654005 __log:=/home/rbc-server-101/.ros/log/f3ddbbc0-817f-11eb-ae26-73f9a6c10b53/rviz_rbcserver101_422390_1667505097478654005-5.log].
Assuming that rviz is not able to find the library file i added the path to lib in .bashrc file at the end export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ros/noetic/lib
This didn't change anything. I would appreciate if anybody would give hints and help to understand how to go about debugging this error. I also wanted to know if this error is related to linkers?
(Note- Roslaunch rviz rviz gives an error) RLException: Invalid roslaunch XML syntax: not well-formed (invalid token): line 1, column 0 The traceback for the exception was written to the log file