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
469bda06
Commit
469bda06
authored
Mar 07, 2015
by
Franklin Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve Mac, Linux installation scripts. Still assumes using build.sh.
parent
a26226b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
10 deletions
+46
-10
linux-install.sh
linux-install.sh
+30
-8
macos-install.sh
macos-install.sh
+16
-2
No files found.
linux-install.sh
View file @
469bda06
#!/bin/sh
# Installation for Linux (tested on Ubuntu 14.10)
# Installation for Linux (tested on Ubuntu 14.10) from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
sudo
apt-get
install
python-dev
sudo
apt-get
install
python-pip
sudo
pip
install
-U
'ipython[all]'
# Install IPython.
# python-pip is out of date, causes problems, so we get the latest version.
#sudo apt-get install python-pip
easy_install
-U
pip
pip
install
-U
'ipython[all]'
sudo
apt-get
install
libtinfo-dev
sudo
apt-get
install
libzmq3-dev
# Install GHC, Cabal, Alex, Happy
sudo
apt-get
install
libcairo2-dev
sudo
apt-get
install
libpango1.0-dev
# Adjust these as you desire.
CABALVER
=
1.22
GHCVER
=
7.8.4
# You will want to add this to your shell startup to pick up
# what gets installed by Cabal.
export
PATH
=
~/.cabal/bin:/opt/cabal/
$CABALVER
/bin:/opt/ghc/
$GHCVER
/bin:
$PATH
sudo
apt-get update
sudo
apt-get
install
-y
software-properties-common
sudo
add-apt-repository
-y
ppa:hvr/ghc
sudo
apt-get update
sudo
apt-get
install
-y
cabal-install-
$CABALVER
ghc-
$GHCVER
cabal
install
alex happy
sudo
apt-get
install
-y
python-dev
sudo
apt-get
install
-y
libtinfo-dev
sudo
apt-get
install
-y
libzmq3-dev
sudo
apt-get
install
-y
libcairo2-dev
sudo
apt-get
install
-y
libpango1.0-dev
./build.sh all
./build.sh display
macos-install.sh
View file @
469bda06
#!/bin/sh
# Installation for Mac OS X.
# Installation for Mac OS X from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
#
# This script assumes use of Homebrew.
# It is assumed you already have GHC and Cabal installed through Homebrew
...
...
@@ -19,6 +20,19 @@ else
exit
1
fi
brew update
# Install IPython.
pip
--version
>
& /dev/null
if
[
$?
]
;
then
pip
install
-U
'ipython[all]'
else
echo
"Python pip needs to be installed."
echo
" One way is to install Homebrew Python:"
echo
"
$
brew install python"
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"
...
...
@@ -36,7 +50,7 @@ cabal --version >& /dev/null
if
[
$?
]
;
then
true
else
echo
"Please install
ghc
."
echo
"Please install
Cabal
."
echo
"
$
brew install cabal-install"
fi
...
...
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