16 lines
373 B
Bash
Executable file
16 lines
373 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# locally install zlib
|
|
|
|
here=$(pwd)
|
|
|
|
zlib_dest=~/.zlib
|
|
|
|
mkdir -p $zlib_dest
|
|
cd $zlib_dest
|
|
wget https://repo.almalinux.org/almalinux/9/BaseOS/x86_64/os/Packages/zlib-1.2.11-40.el9.x86_64.rpm
|
|
rpm2cpio zlib-1.2.11-40.el9.x86_64.rpm | cpio -idmv
|
|
mv usr/lib64/* .
|
|
rm -rf usr zlib-1.2.11-40.el9.x86_64.rpm
|
|
export LD_LIBRARY_PATH=$zlib_dest:$LD_LIBRARY_PATH
|
|
cd $here
|