Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ###########################################################
- #
- #
- # Gnuplot setup
- # http://blog.ovidiuparvu.com/install-gnuplot-source-ubuntu-pc/
- #
- ###########################################################
- # 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."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement