yum update -y
yum install -y gcc mysql-devel mysql-libs
#↓ Enter either
# /lib64/mysql/libmysqlclient.so.18
# /usr/lib64/mysql/libmysqlclient.so.18
Copy libmysqlclient.so.18
to the location where the environment variable LD_LIBRARY_PATH
passes.
※
Note that the entity is libmysqlclient.so.18.0.0
(Libmysqlclient.so.18
is a symbolic link)
Be careful especially when it is necessary on Lambda.
#On lambda
LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib
Recommended Posts