Symbol Lookup Error in Example 3.1

In example 3.1, when running the bridge to route the image from ROS1->ROS2 I get a symbol lookup error. The commands are run in separate terminals in the order:

1

. /home/user/.bashrc_bridge
ros2 run ros1_bridge dynamic_bridge

2

. /home/user/.bashrc_ros1
rosrun image_transport republish raw in:=/bb8/camera1/image_raw out:=/image

3

. /home/user/.bashrc_ros2
ros2 run image_tools showimage

where the output in the third terminal is

user:~$ ros2 run image_tools showimage
/opt/ros/foxy/lib/image_tools/showimage: symbol lookup error: /opt/ros/foxy/lib/image_tools/showimage: undefined sym
bol: _ZNK12class_loader11ClassLoader14getLibraryPathB5cxx11Ev

Try without the bash scripts.

In terminal 1:

source /opt/ros/noetic/setup.bash
source /opt/ros/foxy/setup.bash
ros2 run ros1_bridge dynamic_bridge 

In terminal 2:

source /opt/ros/noetic/setup.bash
rosrun image_transport ...

In terminal 3:

source /opt/ros/foxy/setup.bash
ros2 run image_tools showimage