on Linux system?
is for 32bit system and other is for 64 bit system linux machine.
How to untar them?
I tried few commands but did not work.
I need to upgrade to OpenSSL 1.0.1.g as it is not vunlerable to some threats CVE-2014-0160
Current version are as below:-
Now, me want to build this too, in theory, you could simply run this script on both a 32bit machine and a 64bit machine, to get the specific build.
NOTE there are instructions how to do both on a single machine (AFAIK must be 64 bit though), but thats 'too much' for me as of now, see INSTALL or README for more details.
#!/bin/bash
#
# REF: http://www.unix.com/linux/248258-how-install-pkg-tar-tar-linux.html#post302905687
#
# Build openssl from scratch, by sea
# No warranties or promises are made, its all your own risk.
#
#
#
# Variables to change
#
VER=1.0.1h
TMP_DIR=~/.cache/openssl
BUILD_DIR=$HOME/test
#
# Variables to NOT change
#
URL=http://www.openssl.org/source/openssl-$VER.tar.gz
TARBALL=${URL##*/}
TAR_DIR=${TARBALL:0:-7}
# Dont know why there is only a lib dir on my 64bit machine
#uname -m | grep -q 64 && \
# LIB=lib64 || \
LIB=lib
#
# Clean tempdir & download
#
[[ -d $TMP_DIR ]] || mkdir -p $TMP_DIR
[[ -d $BUILD_DIR ]] || mkdir -p $BUILD_DIR
cd $TMP_DIR && \
rm -fr * || (printf %s "$TMP_DIR does not exist!\n";exit 1)
wget $URL
#
# Verify tarball
#
wget $URL.sha1
sumFile=$(sha1sum $TARBALL|awk '{print $1}')
sumCheck=$(cat $TARBALL.sha1)
[[ $sumFile = $sumCheck ]] && \
printf %s "Checksum matches!\n" || \
(printf %s "Checksum dont match!\n";exit 1)
#
# Extract & change to tempdir
#
tar axf $TARBALL
cd $TAR_DIR
#
# Build it
#
./config --prefix=$BUILD_DIR/ssl --openssldir=$BUILD_DIR/ssl/openssl
make
make install
#
# Thank you Akshay for these req's
#
cp openssl.pc $BUILD_DIR/ssl/$LIB/pkgconfig
chmod 644 $BUILD_DIR/ssl/$LIB/pkgconfig/openssl.pc
cd $BUILD_DIR/ssl/bin
./openssl << EOF
version
quit
EOF
exit 0
Written & functional on: 3.15.0-0.rc8.git4.1.fc21.x86_64