1 Star 0 Fork 0

systechn/tcpflow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CONFIGURE_CENTOS8.bash 2.62 KB
一键复制 编辑 原始数据 按行查看 历史
Joe Dinsmoor 提交于 2020-07-06 06:55 . Travis integration added (#219)
#!/bin/bash
LIBEWF_URL=https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz
cat <<EOF
*******************************************************************
Configuring Amazon Linux for compiling bulk_extractor
*******************************************************************
This script will configure a fresh Amazon Linux system to compile
bulk_extractor. Please perform the following steps:
1. Start a VM
2. sudo yum -y update
3. sudo yum -y install git
4. git clone https://github.com/simsong/bulk_extractor.git
5. cd bulk_extractor
6. sudo sh misc/CONFIGURE_AMAZON_LINUX.bash
7. make && sudo make install
press any key to continue...
EOF
read
# cd to the directory where the script is
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ "$PWD" != "$DIR" ]; then
changed_dir="true"
else
changed_dir="false"
fi
cd $DIR
MPKGS="autoconf automake flex gcc gcc-c++ git libtool "
MPKGS+="md5deep wget bison zlib-devel "
MPKGS+="libewf libewf-devel java-1.8.0-openjdk-devel "
MPKGS+="libxml2-devel libxml2-static openssl-devel "
MPKGS+="sqlite-devel expat-devel "
if [ ! -r /etc/os-release ]; then
echo This requires Amazon Linux
exit 1
fi
. /etc/os-release
if [ $ID != 'centos' ]; then
echo This requires Centos Linux. You have $ID.
exit 1
fi
echo Will now try to install
sudo yum install -y $MPKGS --skip-broken
if [ $? != 0 ]; then
echo "Could not install some of the packages. Will not proceed."
exit 1
fi
echo
echo "Now performing a yum update to update system packages"
sudo yum -y update
LIBEWF_FNAME=`echo $LIBEWF_URL| sed s:.*/::`
LIBEWF_DIR=`echo $LIBEWF_FNAME | sed s/-experimental// | sed s/.tar.gz//`
echo
echo "Now installing libewf"
wget https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz
tar xfvz $LIBEWF_FNAME
pushd $LIBEWF_DIR
./configure && make
sudo make install
popd
# Make sure that /usr/local/lib is in ldconfig
sudo /bin/rm -f /tmp/local.conf
echo /usr/local/lib > /tmp/local.conf
sudo mv /tmp/local.conf /etc/ld.so.conf.d/local.conf
sudo ldconfig
#
#
#
echo ...
echo 'Now running ../bootstrap.sh and configure'
pushd ..
sh bootstrap.sh
sh configure
popd
echo ================================================================
echo ================================================================
echo 'You are now ready to compile bulk_extractor for Linux.'
echo 'To compile, type make'
echo 'To make a distribution, type make release'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/systechn/tcpflow.git
git@gitee.com:systechn/tcpflow.git
systechn
tcpflow
tcpflow
master

搜索帮助