ros-melodic-arch / ros-melodic-rosout

ros-melodic-rosoutAUR package
0 stars 0 forks source link

error by roscore #2

Closed hammer124 closed 5 years ago

hammer124 commented 5 years ago

running roscore give me this massage :


started core service [/rosout] /opt/ros/melodic/lib/rosout/rosout: error while loading shared libraries: libgdbm.so.4: cannot open shared object file: No such file or directory


i have gdbm installed : sudo pacman -Qi gdbm : Name : gdbm Version : 1.18.1-2 Description : GNU database library Architecture : x86_64 URL : http://www.gnu.org/software/gdbm/gdbm.html Licenses : GPL3 Groups : None Provides : None Depends On : glibc sh Optional Deps : None Required By : avahi man-db perl python python2 ruby ruby1.8 ruby2.3 zsh Optional For : apr-util Conflicts With : None Replaces : None Installed Size : 492.00 KiB Packager : Evangelos Foutras evangelos@foutrelis.com Build Date : Thu 10 Jan 2019 06:48:10 PM +0330 Install Date : Sun 03 Nov 2019 02:24:10 AM +0330 Install Reason : Installed as a dependency for another package Install Script : No Validated By : Signature

what is the problem?

acxz commented 5 years ago

What is the output of pacman -Ql gdbm | grep libgdbm.so? I believe the gdbm package is on libgdbm.so.6, which means you will have to recompile the package roscore is under which is ros-melodic-roslaunch (can be found by pacman -Qo /opt/ros/melodic/bin/roscore). This may also mean you might have to reinstall a bunch of ros packages. Try reinstalling and see where that gets you. Also if you want to speed up your installation take a look at the official installation guide for ROS Melodic on ArchLinux here: https://wiki.ros.org/melodic/Installation/ArchLinux. You can add a user repository called arch4edu to speed your installation. Let us know if the reinstallation fixes your issue.

hammer124 commented 5 years ago

pacman -Ql gdbm | grep libgdbm.so : gdbm /usr/lib/libgdbm.so gdbm /usr/lib/libgdbm.so.6 gdbm /usr/lib/libgdbm.so.6.0.0

so i used yay -S --rebuildall ros-melodic-roslaunch to rebuild even rebuild ros-melodic-rosout still got same error

What is the output of pacman -Ql gdbm | grep libgdbm.so? I believe the gdbm package is on libgdbm.so.6, which means you will have to recompile the package roscore is under which is ros-melodic-roslaunch (can be found by pacman -Qo /opt/ros/melodic/bin/roscore). This may also mean you might have to reinstall a bunch of ros packages. Try reinstalling and see where that gets you. Also if you want to speed up your installation take a look at the official installation guide for ROS Melodic on ArchLinux here: https://wiki.ros.org/melodic/Installation/ArchLinux. You can add a user repository called arch4edu to speed your installation. Let us know if the reinstallation fixes your issue.

pacman -Ql gdbm | grep libgdbm.so : gdbm /usr/lib/libgdbm.so gdbm /usr/lib/libgdbm.so.6 gdbm /usr/lib/libgdbm.so.6.0.0

so i used yay -S --rebuildall ros-melodic-roslaunch to rebuild even rebuild ros-melodic-rosout still got same error

acxz commented 5 years ago

You will have to use the --rebuildtree option instead of rebuildall for yay to reinstall the dependencies. Make sure you rebuild all packages of ROS that roslaunch depends on instead of just rebuilding roslaunch.

hammer124 commented 5 years ago

pacman -Qi ros-melodic-roslaunch give me : Depends On : ros-melodic-rosout ros-melodic-rosparam ros-melodic-rosclean ros-melodic-rosunit ros-melodic-rosgraph-msgs ros-melodic-rosmaster ros-melodic-roslib python-yaml python-paramiko python-rospkg Required By : ros-melodic-ros-comm ros-melodic-rostest ros-melodic-roswtf ros-melodic-rqt-launch ros-melodic-xacro then i rebuild depends pakages yay -S --rebuildtree ros-melodic-rosout ros-melodic-rosparam ros-melodic-rosclean ros-melodic-rosunit ros-melodic-rosgraph-msgs ros-melodic-rosmaster ros-melodic-roslib python-yaml python-paramiko python-rospkg try to start ROS : source /opt/ros/melodic/setup.zsh roscore same error again :

$roscore ... logging to /home/hammer/.ros/log/d9936ce2-fffd-11e9-a955-802bf98aaea7/roslaunch-hp-laptop-425665.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://hp-laptop:36929/ ros_comm version 1.14.3

SUMMARY

PARAMETERS

NODES

auto-starting new master process[master]: started with pid [425683] ROS_MASTER_URI=http://hp-laptop:11311/

setting /run_id to d9936ce2-fffd-11e9-a955-802bf98aaea7 process[rosout-1]: started with pid [425694] started core service [/rosout] /opt/ros/melodic/lib/rosout/rosout: error while loading shared libraries: libgdbm.so.4: cannot open shared object file: No such file or directory [rosout-1] process has died [pid 425694, exit code 127, cmd /opt/ros/melodic/lib/rosout/rosout name:=rosout log:=/home/hammer/.ros/log/d9936ce2-fffd-11e9-a955-802bf98aaea7/rosout-1.log]. log file: /home/hammer/.ros/log/d9936ce2-fffd-11e9-a955-802bf98aaea7/rosout-1*.log

acxz commented 5 years ago

It is the same error, but for a different program.

It seems like you also need to do the same process for rebuilding rosout. Frankly I would go ahead and rebuild ALL ros-melodic-* packages you have.

acxz commented 5 years ago

Closing this issue due to inactivity please let us know if the issue persists after performing the recommended solutions.