forked from ppc64le/build-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add julia ubi8.5 build script (ppc64le#1929)
- Loading branch information
1 parent
36f130c
commit 27d3647
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash -e | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# Package : julia | ||
# Version : v1.7.2 | ||
# Source repo : https://github.com/JuliaLang/julia | ||
# Language : Julia | ||
# Tested on : UBI 8.5 | ||
# Script License: Apache License Version 2.0 | ||
# Travis-Check : True | ||
# Maintainer : Pranav Pandit <[email protected]> | ||
# | ||
# Disclaimer: This script has been tested in root mode on given | ||
# ========== platform using the mentioned version of the package. | ||
# It may not work as expected with newer versions of the | ||
# package and/or distribution. In such case, please | ||
# contact "Maintainer" of this script. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
|
||
#!/bin/bash | ||
|
||
SRCDIR=`pwd` | ||
PACKAGE_NAME=julia | ||
PACKAGE_VERSION=${1:-v1.7.2} | ||
PACKAGE_URL=https://github.com/JuliaLang/julia | ||
BLDDIR=juliabuild | ||
|
||
#Install required dependencies | ||
yum update -y | ||
yum install wget expat-devel openssl-devel libcurl-devel tk make gcc gcc-c++ patch bzip2 m4 python38 git -y | ||
|
||
#Build gettext | ||
wget https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.tar.gz | ||
tar -zxvf gettext-0.21.tar.gz | ||
cd gettext-0.21 | ||
./configure | ||
make | ||
make install | ||
|
||
#download and build julia | ||
cd $SRCDIR | ||
mkdir -p $BLDDIR | ||
if [ ! -d "$PACKAGE_NAME" ]; then | ||
git clone $PACKAGE_URL | ||
fi | ||
cd $PACKAGE_NAME | ||
git checkout $PACKAGE_VERSION | ||
make O=../juliabuild |