add local installation for zlib

This commit is contained in:
Fabian Posch 2025-01-09 14:57:58 +01:00
parent db91af23f3
commit d5a23cacca
2 changed files with 19 additions and 1 deletions

View file

@ -2,6 +2,8 @@
export ACT_HOME=~/.act_install
export PATH=$ACT_HOME/bin::$PATH
export LD_LIBRARY_PATH=$ACT_HOME/lib
export LD_LIBRARY_PATH=$ACT_HOME/lib:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=~/zlib:$LD_LIBRARY_PATH
echo ACT_HOME is set to $ACT_HOME

16
local_install_zlib.sh Executable file
View file

@ -0,0 +1,16 @@
#!/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