Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
455ef777
Commit
455ef777
authored
Mar 06, 2015
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #414 from FranklinChen/macos-install
Mac OS installation script.
parents
c30b4d6c
0d616230
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
macos-install.sh
macos-install.sh
+65
-0
No files found.
macos-install.sh
0 → 100755
View file @
455ef777
#!/bin/sh
# Installation for Mac OS X.
#
# This script assumes use of Homebrew.
# It is assumed you already have GHC and Cabal installed through Homebrew
# and your environment set up to install executables through Cabal.
#
# Also, XCode command line tools must be installed.
#
# XQuartz is needed for Cairo and Pango.
brew
--version
>
& /dev/null
if
[
$?
]
;
then
true
else
echo
"Homebrew needs to be installed."
echo
" Download from http://brew.sh/"
exit
1
fi
if
[
-n
"
`
brew
--config
|
grep
'^CLT:.*N/A'
`
"
]
;
then
echo
"You need to have XCode command line tools installed."
echo
"
$
xcode-select --install"
fi
ghc
--version
>
& /dev/null
if
[
$?
]
;
then
true
else
echo
"Please install ghc."
echo
"
$
brew install ghc"
fi
cabal
--version
>
& /dev/null
if
[
$?
]
;
then
true
else
echo
"Please install ghc."
echo
"
$
brew install cabal-install"
fi
# Make sure to have basic tools installed.
cabal update
cabal
install
happy alex
cabal
install
cpphs
cabal
install
gtk2hs-buildtools
# Homebrew stuff.
brew
install
zeromq
brew
install
libmagic
# XQuartz is required: http://xquartz.macosforge.org/landing/
# The easiest way is through Homebrew.
brew
install
Caskroom/cask/xquartz
brew
install
cairo
brew
install
pango
# For C compiler to pick up /usr/local and X11 stuff during Cabal builds.
# You may want to put this in your shell startup.
export
PKG_CONFIG_PATH
=
/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig
./build.sh all
./build.sh display
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment