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
bd695daf
Commit
bd695daf
authored
Apr 17, 2015
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #473 from sumitsahrawat/docker
Allow using pre-installed ipython
parents
6b5f6785
6e1dc829
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
ubuntu-install.sh
ubuntu-install.sh
+20
-18
No files found.
ubuntu-install.sh
View file @
bd695daf
...
...
@@ -3,33 +3,35 @@
# Installation for Linux (tested on Ubuntu 14.10) from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
ghc
--version
>
& /dev/null
if
[
$?
]
;
then
true
else
if
[
-z
"
$(
which ghc
)
"
]
;
then
echo
"Please install ghc."
exit
1
fi
cabal
--version
>
& /dev/null
if
[
$?
]
;
then
true
else
if
[
-z
"
$(
which cabal
)
"
]
;
then
echo
"Please install Cabal."
exit
1
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
# 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
|
tr
'.'
' '
|
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
sudo
apt-get
install
-y
python-dev
# To get easy_install
sudo
apt-get
install
-y
python-setuptools
# To get easy_install
sudo
apt-get
install
-y
python-setuptools
sudo
easy_install
-U
pip
sudo
easy_install
-U
pip
# -H to use .cache in /root
sudo
-H
pip
install
-U
'ipython[all]'
# -H to use .cache in /root
sudo
-H
pip
install
-U
'ipython[all]'
fi
# Make sure to have basic tools installed.
cabal update
...
...
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