403. Software on Amazon Linux on A1 Instances - qyjohn/AWS_Tutorials GitHub Wiki

1. Direct Install Applications

  • OpenJDK
sudo yum install java-1.8.0-openjdk-devel

At this point, anything that is purely Java (such as Maven) would just work.

  • Apache2 Web Server
sudo yum install httpd
sudo systemctl start httpd.service
  • PHP 5.4 (This is very old!!!)
sudo yum install php
sudo systemctl stop httpd.service
sudo systemctl start httpd.service

2. Compiled and Tested Applications

sudo yum install autoconf
sudo yum install ncurses-devel
sudo yum install openssl-devel
git clone https://github.com/erlang/otp
cd otp
./otp_build autoconf
make
sudo make install
  • RabbitMQ

You need to have Erland OTP working first. Then you have to compile Elixir and put it into you PATH.

cd ~
git clone https://github.com/elixir-lang/elixir.git
cd elixir
make clean test
export PATH=$PATH:~/elixir/bin

RabbitMQ requires libxslt, libxslt-devel and xmlto:

sudo yum install libxslt libxslt-devel xmlto

Also, you need GNU Make 4.0+:

wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz
tar zxvf make-4.2.tar.gz
cd make-4.2
./configure
make
sudo make install
export PATH=/usr/local/bin:$PATH

Then download the RabbitMQ source code and build:

cd ~
git clone https://github.com/rabbitmq/rabbitmq-server.git
make
  • OpenBLAS (If you don't know what this is, you don't need to look at it.)
sudo yum install gcc-gfortran
git clone https://github.com/xianyi/OpenBLAS
cd OpenBLAS
gmake CC=gcc FC=gfortran