OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [install.sh] - Diff between revs 48 and 54

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 48 Rev 54
Line 1... Line 1...
#!/bin/sh
#!/bin/bash
 
 
# run the following line in terminal to install the necessary packages
# run the following line in terminal to install the necessary packages
#    sudo sh install.sh
#    sudo bash install.sh
 
 
 
 
 
 
 
 
 
shel=$(ps -p $$);
 
shel=${shel##* }
 
 
 
if [ "$shel" !=  "bash" ]
 
then
 
  echo "make sure that you source this script in a bash shell"
 
  echo "The current shel is ($shel), aborting"
 
  exit
 
fi
 
if [ $SUDO_USER ]; then user=$SUDO_USER; else user=`whoami`; fi
 
 
#the current script path
#the current script path
        SCRPT_FULL_PATH=$(realpath ${BASH_SOURCE[0]})
        SCRPT_FULL_PATH=$(realpath ${BASH_SOURCE[0]})
        SCRPT_DIR_PATH=$(dirname $SCRPT_FULL_PATH)
        SCRPT_DIR_PATH=$(dirname $SCRPT_FULL_PATH)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#list of packages
#list of packages
LIST_OF_APPS="build-essential  libpango1.0-dev clang lib32z1 libgd-graph-perl libgd-gd2-perl libglib-perl cpanminus libusb-1.0 graphviz libcanberra-gtk-module unzip xterm verilator wget python python-pip curl"
LIST_OF_APPS="build-essential  libpango1.0-dev clang lib32z1 libgd-graph-perl libgd-gd2-perl libglib-perl cpanminus libusb-1.0 graphviz libcanberra-gtk-module unzip xterm verilator wget python python-pip curl"
 
 
PERL_LIBS="ExtUtils::Depends ExtUtils::PkgConfig Glib Pango String::Similarity  IO::CaptureOutput Proc::Background List::MoreUtils File::Find::Rule  Verilog::EditFiles IPC::Run File::Which Class::Accessor String::Scanf File::Copy::Recursive  GD::Graph::bars3d GD::Graph::linespoints GD::Graph::Data constant::boolean Event::MakeMaker Glib::Event"
PERL_LIBS="ExtUtils::Depends ExtUtils::PkgConfig Glib Pango String::Similarity  IO::CaptureOutput Proc::Background List::MoreUtils File::Find::Rule  Verilog::EditFiles IPC::Run File::Which Class::Accessor String::Scanf File::Copy::Recursive  GD::Graph::bars3d GD::Graph::linespoints GD::Graph::Data constant::boolean Event::MakeMaker Glib::Event Chart::Gnuplot"
 
 
 
 
 
 
APP_GTK2="libgtk2.0-dev libglib2.0-dev libgtk2-perl libgtksourceview2.0-dev"
APP_GTK2="libgtk2.0-dev libglib2.0-dev libgtk2-perl libgtksourceview2.0-dev"
PERL_GTK2="Gtk2 Gtk2::SourceView2"
PERL_GTK2="Gtk2 Gtk2::SourceView2"
Line 39... Line 53...
 
 
#update GTK version in Consts file
#update GTK version in Consts file
echo "#This file is created by ${SCRPT_DIR_PATH}/intsall.sh
echo "#This file is created by ${SCRPT_DIR_PATH}/intsall.sh
package Consts;
package Consts;
 
 
use constant VERSION  => '2.0.0';
use constant VERSION  => '2.1.0';
use constant END_YEAR => '2021';
use constant END_YEAR => '2021';
use constant GTK_VERSION => '$gtk_version';
use constant GTK_VERSION => '$gtk_version';
 
 
 
 
1;
1;
Line 78... Line 92...
        aptget_array $APP_GTK3
        aptget_array $APP_GTK3
        cpanm $PERL_LIBS
        cpanm $PERL_LIBS
        cpanm $PERL_GTK3
        cpanm $PERL_GTK3
fi
fi
 
 
 
#install icon
 
cp $SCRPT_DIR_PATH/perl_gui/icons/ProNoC.png  /usr/local/share/icons/hicolor/128x128/apps/
 
cp $SCRPT_DIR_PATH/perl_gui/icons/ProNoC.svg  /usr/local/share/icons/hicolor/scalable/apps/
 
 
#install python
#install python
echo "install python"
echo "install python"
apt-get install -y python2
apt-get install -y python2
echo "install python-pipe. Installation may take several minutes"
echo "install python-pipe. Installation may take several minutes"
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo python2 get-pip.py
pip install trueskill numpy "networkx<2.0"
pip install trueskill numpy "networkx<2.0"
 
 
 
#make pronoc application/executable file
 
cd $SCRPT_DIR_PATH/src_c/app_executable
 
make
 
mv ./ProNoC $SCRPT_DIR_PATH/perl_gui/
 
chown -R $user $SCRPT_DIR_PATH/perl_gui/ProNoC
 
echo "pronoc application/executable file is generated!"
 
cd $SCRPT_DIR_PATH
 
 
 
 
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.