Merge "install: Missing packages for numa library"
[vswitchperf.git] / systems / ubuntu / build_base_machine.sh
1 #!/bin/bash
2 #
3 # Build a base machine for Ubuntu style distro
4 #
5 # Copyright 2015 OPNFV
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 # Contributors:
20 #   Aihua Li, Huawei Technologies.
21
22 # Synchronize package index files
23 apt-get -y update
24
25 # Make and Compilers
26 apt-get -y install make
27 apt-get -y install automake
28 apt-get -y install gcc
29 apt-get -y install gcc++
30 apt-get -y install libssl1.0.0
31 apt-get -y install libxml2
32 apt-get -y install zlib1g-dev
33 apt-get -y install scapy
34
35 # Linux Kernel Source
36 apt-get -y install linux-source
37 apt-get -y install pkg-config
38
39 # Install package dependecies
40 apt-get -y install libncurses5-dev
41 apt-get -y install curl
42 apt-get -y install libcurl4-openssl-dev
43 apt-get -y install autoconf libtool
44 apt-get -y install libpcap-dev
45 apt-get -y install libglib2.0
46 apt-get -y install libfuse-dev
47 apt-get -y install libnuma1
48 apt-get -y install libnuma-dev
49
50 # Some useful tools you may optionally install
51 #apt-get -y install ctags
52 #apt-get -y install wireshark
53
54 # packages related to VM
55
56 # a few manual fix up on a ubuntu
57 cd /lib/x86_64-linux-gnu
58 ln -sf libssl.so.1.0.0 libssl.so
59 ln -sf libcrypto.so.1.0.0 libcrypto.so
60
61 cd /usr/lib/x86_64-linux-gnu
62 ln -sf libxml2.so.2 libxml2.so
63
64
65