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
deb92f12
Commit
deb92f12
authored
Apr 20, 2015
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gibiansky/IHaskell
parents
db84a671
7072770b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
40 deletions
+57
-40
root-deps.sh
root-deps.sh
+53
-0
ubuntu-install.sh
ubuntu-install.sh
+4
-40
No files found.
root-deps.sh
0 → 100755
View file @
deb92f12
#!/bin/bash
# Script for installing ihaskell dependencies. Specifically, this script
# installs dependencies using apt-get, and needs to be executed as root.
# Directly utilized for providing ihaskell to jupyter/docker-demo-images
if
[
$(
id
-u
)
-ne
0
]
;
then
echo
"Please run as root"
exit
1
fi
if
[
-z
"
$(
which ghc
)
"
]
;
then
echo
"Please install ghc."
exit
1
fi
if
[
-z
"
$(
which cabal
)
"
]
;
then
echo
"Please install Cabal."
exit
1
fi
# If ipython is installed, and has a major version >= 3, then use the
# installed version. Otherwise we install from scratch.
if
[
-n
"
$(
which ipython
)
"
]
&&
{
[
$(
ipython
--version
|
cut
-f
1
-d
'.'
)
-ge
3
]
;
}
then
echo
"Using ipython already installed:
$(
which ipython
)
"
else
# Install IPython.
# python-pip is out of date, causes problems, so we get the latest version
# using easy_install instead.
#sudo apt-get install python-pip
apt-get
install
-y
python-dev
# To get easy_install
apt-get
install
-y
python-setuptools
easy_install
-U
pip
# -H to use .cache in /root
pip
install
-U
'ipython[all]'
fi
# C libraries
apt-get
install
-y
libtinfo-dev
apt-get
install
-y
libzmq3-dev
apt-get
install
-y
libcairo2-dev
apt-get
install
-y
libpango1.0-dev
apt-get
install
-y
libmagic-dev
apt-get
install
-y
libblas-dev
apt-get
install
-y
liblapack-dev
ubuntu-install.sh
View file @
deb92f12
#!/bin/bash
#!/bin/bash
# Installation for
Linux (tested on Ubuntu
14.10) from IHaskell repo directory.
# Installation for
Ubuntu Linux (tested on v
14.10) from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
# TODO Split out setup for installation from Hackage released versions.
ghc
--version
>
& /dev/null
# Install the dependencies as root user
if
[
$?
]
;
then
sudo
./root-deps.sh
true
else
echo
"Please install ghc."
fi
cabal
--version
>
& /dev/null
if
[
$?
]
;
then
true
else
echo
"Please install Cabal."
fi
# Install IPython.
# python-pip is out of date, causes problems, so we get the latest version
# using easy_install instead.
#sudo apt-get install python-pip
sudo
apt-get
install
-y
python-dev
# To get easy_install
sudo
apt-get
install
-y
python-setuptools
sudo
easy_install
-U
pip
# -H to use .cache in /root
sudo
-H
pip
install
-U
'ipython[all]'
# Make sure to have basic tools installed.
# Make sure to have basic tools installed.
cabal update
cabal update
...
@@ -37,16 +12,5 @@ cabal install happy alex
...
@@ -37,16 +12,5 @@ cabal install happy alex
cabal
install
cpphs
cabal
install
cpphs
cabal
install
gtk2hs-buildtools
cabal
install
gtk2hs-buildtools
# C libraries
# Build ihaskell, and all the display packages
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
sudo
apt-get
install
-y
libmagic-dev
sudo
apt-get
install
-y
libblas-dev
sudo
apt-get
install
-y
liblapack-dev
./build.sh all
./build.sh all
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