-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathinstall_gnuplot.sh
More file actions
64 lines (44 loc) · 1.39 KB
/
install_gnuplot.sh
File metadata and controls
64 lines (44 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/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."