Compare commits

...

2 commits

4 changed files with 42 additions and 20 deletions

View file

@ -4,9 +4,7 @@ export ACT_HOME=~/.act_install
export PATH=$ACT_HOME/bin::$PATH export PATH=$ACT_HOME/bin::$PATH
export LD_LIBRARY_PATH=$ACT_HOME/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$ACT_HOME/lib:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=~/.zlib:$LD_LIBRARY_PATH export C_INCLUDE_PATH=$ACT_HOME/include:$C_INCLUDE_PATH
# export C_INCLUDE_PATH=~/.libedit-devel/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=$ACT_HOME/include:$CPLUS_INCLUDE_PATH
# export CPLUS_INCLUDE_PATH=~/.libedit-devel/include:$CPLUS_INCLUDE_PATH
# export LD_LIBRARY_PATH=~/.libedit-devel/lib64:$LD_LIBRARY_PATH
echo ACT_HOME is set to $ACT_HOME echo ACT_HOME is set to $ACT_HOME

View file

@ -3,18 +3,28 @@
# locally install libedit-devel # locally install libedit-devel
here=$(pwd) here=$(pwd)
srcfolder="$here/src/libedit-devel"
libedit_devel_dest=~/.libedit-devel if [ -z ${ACT_HOME+x} ]; then
echo "Installing to ACT_HOME"
dest_lib=$ACT_HOME/lib
dest_hdr=$ACT_HOME/include
else
echo "Installing in home folder"
dest_lib=~/.libedit-devel/lib
dest_hdr=~/.libedit-devel/include
fi
mkdir -p $libedit_devel_dest # Create source folder
cd $libedit_devel_dest mkdir -p $srcfolder
cd $srcfolder
# Generate files
wget https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/libedit-devel-3.1-38.20210216cvs.el9.x86_64.rpm wget https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/Packages/libedit-devel-3.1-38.20210216cvs.el9.x86_64.rpm
rpm2cpio libedit-devel-3.1-38.20210216cvs.el9.x86_64.rpm | cpio -idmv rpm2cpio libedit-devel-3.1-38.20210216cvs.el9.x86_64.rpm | cpio -idmv
mv usr/* .
rm -rf usr libedit-devel-3.1-38.20210216cvs.el9.x86_64.rpm
export LD_LIBRARY_PATH=$libedit_devel_dest/lib64:$LD_LIBRARY_PATH # Move to destination
export C_INCLUDE_PATH=$libedit_devel_dest/include:$C_INCLUDE_PATH mv usr/lib64/* $dest_lib
export CPLUS_INCLUDE_PATH=$libedit_devel_dest/include:$CPLUS_INCLUDE_PATH mv usr/include/* $dest_hdr
cd $here cd $here

View file

@ -1,16 +1,30 @@
#!/bin/bash #!/bin/bash
# locally install zlib # locally install libedit-devel
here=$(pwd) here=$(pwd)
srcfolder="$here/src/zlib"
zlib_dest=~/.zlib if [ -z ${ACT_HOME+x} ]; then
echo "Installing to ACT_HOME"
dest_lib=$ACT_HOME/lib
dest_hdr=$ACT_HOME/include
else
echo "Installing in home folder"
dest_lib=~/.zlib/lib
dest_hdr=~/.zlib/include
fi
mkdir -p $zlib_dest # Create source folder
cd $zlib_dest mkdir -p $srcfolder
cd $srcfolder
# Generate files
wget https://repo.almalinux.org/almalinux/9/BaseOS/x86_64/os/Packages/zlib-1.2.11-40.el9.x86_64.rpm 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 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 # Move to destination
export LD_LIBRARY_PATH=$zlib_dest:$LD_LIBRARY_PATH mv usr/lib64/* $dest_lib
# mv usr/include/* $dest_hdr
cd $here cd $here

View file

@ -57,7 +57,7 @@ echo Building core library
git clone https://github.com/asyncvlsi/act.git $srcfolder/act git clone https://github.com/asyncvlsi/act.git $srcfolder/act
cd $srcfolder/act cd $srcfolder/act
export VLSI_TOOLS_SRC=$(pwd) export VLSI_TOOLS_SRC=$srcfolder/act
./configure $ACT_HOME ./configure $ACT_HOME
./build ./build
make install make install