forked from overte-org/overte-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_amazon_linux_deps.sh
executable file
·38 lines (34 loc) · 1.05 KB
/
install_amazon_linux_deps.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
#!/bin/bash
set -e
yum install -y perl tar gzip sudo perl-App-cpanminus ncurses-devel readline-devel gcc make
cpanm -n Term::ReadLine::Gnu
if [ ! -x "/usr/bin/patchelf" -a ! -x "/usr/local/bin/patchelf" ] ; then
yum install -y git autoconf automake gcc-c++
tdir=`mktemp -d`
cd "$tdir"
git clone https://github.com/NixOS/patchelf.git
cd patchelf
# This is a temporary fix for https://github.com/NixOS/patchelf/issues/263
git checkout 7695c62652317fb0d0b38956b8fc548a4c4b003e
./bootstrap.sh
./configure
make
make install
cd /
rm -rf "$tdir"
else
echo "Found patchelf, no need to build it."
fi
if [ ! -x "/usr/bin/npm" -a ! -x "/usr/local/bin/npm" ] ; then
# https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
. ~/.nvm/nvm.sh
nvm install node
else
echo "Found npm, no need to install it."
fi
echo ""
echo ""
echo "Everything should be in order now!"
echo "Now you should be able to run vircadia-builder."
echo ""