Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 65 lines (44 sloc) 1.39 KB
#!/bin/bash
###########################################################
#
#
# Gnuplot setup
#
#
###########################################################
# Starting setup of Gnuplot
echo "Setting up Gnuplot..."
#----------------------------------------------------------
# Installing dependent packages
#----------------------------------------------------------
# Inform the user about the next action
echo "Installing the dependent packages build-essentials g++ gcc..."
# Execute the action
sudo apt-get -y install build-essentials g++ gcc
#----------------------------------------------------------
# Installing Gnuplot
#----------------------------------------------------------
# Inform the user about the next action
echo "Downloading and installing Gnuplot..."
# Constant values definitions
FOLDER_NAME="Gnuplot"
# Create a new folder for storing the source code
mkdir ${FOLDER_NAME}
# Change directory
cd ${FOLDER_NAME}
# Download source code
wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.5/gnuplot-4.6.5.tar.gz
# Extract archive
tar -xvzf gnuplot-4.6.5.tar.gz
# Change directory
cd gnuplot-4.6.5
# Configure gnuplot for compilation
./configure
# Compile the project
make
# Install gnuplot in the default location
sudo make install
# Return to the parent directory
cd ../../
# Inform user that Gnuplot was successfully installed
echo "Gnuplot was successfully installed."