forked from danmons/mame_raspberrypi_cross_compile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_prereqs.sh
executable file
·59 lines (53 loc) · 1010 Bytes
/
install_prereqs.sh
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
#!/bin/bash
echo
echo "Ensure you have both 'deb' and 'deb-src' entries in your"
echo '/etc/apt/sources.list or /etc/apt/sources.list.d/* files'
echo
sleep 3
echo "Syncing APT mirrors..."
sudo apt-get update
echo "Installing build tools..."
sudo apt-get install -y \
aria2 \
autoconf \
automake \
bison \
build-essential \
bzip2 \
coreutils \
curl \
flex \
g++ \
gawk \
gcc \
git \
gzip \
help2man \
libtool \
libtool-bin \
make \
p7zip \
p7zip-full \
rsync \
texi2html \
texinfo \
unzip \
wget \
xz-utils \
zip \
zstd \
echo "Installing MAME build requirements..."
sudo apt-get build-dep -y mame
if [ "$?" != "0" ]
then
echo ""
echo 'If you see errors above, '
echo 'you are probably missing "deb-src" lines in '
echo '/etc/apt/sources.list , and '
echo '/etc/apt/sources.list.d/* files'
echo ""
echo 'Add those in by copying all "deb" lines, '
echo 'replace "deb" with "deb-src" on the newly copied line, '
echo 'and then re-run this script.'
echo ""
fi