Hi, everyone. I have solve the problem!
I referred to this post: Trouble install calculix adapter - yaml-cpp issue - Official adapters and tutorials - preCICE Forum on Discourse, downloaded yaml0.7.0, and installed it. The installation steps are as follows:
cd yaml-cpp
mkdir build && cd build
cmake -D BUILD_SHARED_LIBS=ON ..
make -j16
sudo make install
But after installation, the following problems occurred:
I found that I needed to upgrade GLIBC to a higher version, so I took the following installation steps:
#Add a higher version source
deb http://mirrors.aliyun.com/ubuntu/ jammy main
#Update and Install
sudo apt update
sudo apt install libc6
It’s already running normally!
Hope it helps people who have the same problem.