blob: b7ddea78f90a3014b5c9586c4aadbf9993a33f4d [file]
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# build and install are separated so changes to build don't invalidate
# the whole docker cache for the image
# Important Maintenance Instructions:
# Align changes with installation instructions in /get_started/ubuntu_setup.md
# Align with R install script: /docs/install/install_mxnet_ubuntu_r.sh
set -ex
cd "$(dirname "$0")"
# install libraries for mxnet's r package on ubuntu
echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list
apt-key add r.gpg
# Installing the latest version (3.3+) that is compatible with MXNet
add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
apt-get update || true
apt-get install -y --allow-unauthenticated \
libcairo2-dev \
libssl-dev \
libxml2-dev \
libxt-dev \
r-base \
r-base-dev \
texinfo \
texlive \
texlive-fonts-extra