How to install 0.4.5 on Ubuntu?

571 views
Skip to first unread message

Nils Gudat

unread,
May 22, 2016, 6:27:37 AM5/22/16
to julia-users
Slightly stupid question from someone who is forced to use Linux on a server: how can I get the latest stable version as opposed ot the dev release?
I followed the instructions from here (http://julialang.org/downloads/platform.html), but always end up with a 44-day old 0.5 master version installed...
Message has been deleted

Nils Gudat

unread,
May 22, 2016, 6:32:44 AM5/22/16
to julia-users
Found it, sudo-apt get install julia=0.4.5-trusty did the trick!

Henri Girard

unread,
May 22, 2016, 11:22:44 AM5/22/16
to julia-users
Works well on ubuntu with 0.4.5 version

Tony Kelman

unread,
May 22, 2016, 5:09:00 PM5/22/16
to julia-users
That page is out of date, the PPA isn't really recommended any more. You can download and extract the generic Linux binaries on almost any distribution.

Андрей Логунов

unread,
May 23, 2016, 2:29:38 AM5/23/16
to julia-users

Start with compilers^


sudo apt-get install gcc

sudo apt-get install g++

sudo apt-get install gfortran


Then on with make:

sudo apt-get install cmake


Thru Ubuntu PPA (12.04+):

sudo add-apt-repository ppa:staticfloat/juliareleases

sudo add-apt-repository ppa:staticfloat/julia-deps

sudo apt-get update

sudo apt-get install julia


On the other hand you can install nightlies:

sudo apt-add-repository ppa:staticfloat/julianightlies

sudo apt-add-repository ppa:staticfloat/julia-deps

sudo apt-get update

sudo apt-get install julia


Finally:

sudo apt-get update

sudo apt-get upgrade


I did this on my Linux/Lubuntu 16.4 ASUS netbook...

B.R.


воскресенье, 22 мая 2016 г., 20:27:37 UTC+10 пользователь Nils Gudat написал:

Nils Gudat

unread,
Jun 13, 2016, 5:49:59 PM6/13/16
to julia-users
Sorry to come back to this, but I've now tried the instructions given above (which are also on the julialang website as I've now seen), but I keep getting v0.5.0-2975-ubuntu14.04.1. When I do sudo apt-get install julia=0.4.5 as before, I'm being told that version 0.4.5 is not found.

What could be causing this? 

cdm

unread,
Jun 13, 2016, 7:02:49 PM6/13/16
to julia-users

T. Kelman's advice is apt here ...

unpacking the generic Linux binaries has worked well on Ubuntu systems for me over the past months.


the current release, 0.4.5,  for 64-bit environments can be had here:






there was some time when the Ubuntu PPA was lagging due to other priorities ...

however, based upon the information here:



the current release PPA looks to be in good order (green check marks in the "Latest updates" box.

so the following should work in theory

sudo add-apt-repository ppa:staticfloat/juliareleases

sudo add-apt-repository ppa:staticfloat/julia-deps

sudo apt-get update

sudo apt-get install julia

sudo apt-get update

sudo apt-get upgrade



if you were getting v0.5.xxx, then it would seem that your initial
"sudo add-apt-repository ..." line is not pointed to the correct PPA
and/or "sudo apt-get update" needs to be run again.

hoping that helps ...

Nils Gudat

unread,
Jun 14, 2016, 4:20:33 PM6/14/16
to julia-users
What (might have) helped in the end was to remove the nightlies PPA -  I had added both PPAs for release version and nightly, so maybe that was my mistake.

Henri Girard

unread,
Jun 15, 2016, 3:30:18 AM6/15/16
to julia-users
I use julia / ijulia straight from ubuntu 16.04 (was the same before ) sudo apt-get install julia...
You will need build-essential, I personally install sagemath from ppa, which gives me jupyter notebook.
As I need python too, I install python-all (and python3-all python3) -dev-all but that's not commanditory if you don't need them (not sure you don't need at least python-all), I install matplotlib, numpy scypy so usally I have not dependency problems. Julia 0.4.5 works fine on ubuntu.

Le dimanche 22 mai 2016 12:27:37 UTC+2, Nils Gudat a écrit :

Nils Gudat

unread,
Jun 16, 2016, 4:34:41 AM6/16/16
to julia-users
Apologies for decreasing quality of questions, but how do I actually start julia after building from source on Linux? After having successfully (I believe) built the latest 0.4.6-pre master, I can't find an exectuable to start julia. I tried grepping through the folder (find | grep '\.exe$'), but to no avail.


Milan Bouchet-Valat

unread,
Jun 16, 2016, 4:40:48 AM6/16/16
to julia...@googlegroups.com
If the build succeeded, you only have to run ./julia (.exe files are a
Windows format).


Regards

Nils Gudat

unread,
Jun 16, 2016, 5:35:39 AM6/16/16
to julia-users
Oh wow, I should really do an intro to Linux course somewhere... Thanks, this works!

Ahmed Mazari

unread,
Jul 15, 2016, 9:49:04 AM7/15/16
to julia-users
How to install julia 0.4.6 in ubuntu ?

l tried 
sudo apt-get install julia=v0.4.6 but it's not working

Uwe Fechner

unread,
Jul 15, 2016, 10:39:09 AM7/15/16
to julia-users
Did you try:


sudo add-apt-repository ppa:staticfloat/juliareleases

sudo add-apt-repository ppa:staticfloat/julia-deps

sudo apt-get update

sudo apt-get install julia


You need to have the correct ppa enabled!


Uwe

Ahmed Mazari

unread,
Jul 15, 2016, 11:21:53 AM7/15/16
to julia...@googlegroups.com
yes but it installs  the version 0.5

David Anthoff

unread,
Jul 15, 2016, 11:33:01 AM7/15/16
to julia...@googlegroups.com

I don’t think you need the julia-deps thing anymore, it seems all the dependencies are now part of juliareleases. At least last time I tried this I didn’t add julia-deps and things worked.

 

If that is correct, someone should probably update the README/installation instructions on julialang.org.

Uwe Fechner

unread,
Jul 15, 2016, 12:09:31 PM7/15/16
to julia...@googlegroups.com
Which Ubuntu version do you have?

There is no problem for me on 14.04, 64bit.

Have a look in the folder:
/etc/apt/sources.list.d

Perhaps you find there a file containing the name
julianightlies ?

If so, delete it and try again.

Uwe

Tony Kelman

unread,
Jul 15, 2016, 1:37:29 PM7/15/16
to julia-users
The PPA is deprecated and not actively maintianed. Use the generic Linux binaries. Download and extract the tarball, then run bin/julia.

David Anthoff

unread,
Jul 15, 2016, 1:49:47 PM7/15/16
to julia...@googlegroups.com
In that case the reference to the PPA should probably be removed from http://julialang.org/downloads/platform.html and the bottom of the README.md.

On the other hand, the juliareleases under staticfloat seems to be up-to-date...

> -----Original Message-----
> From: julia...@googlegroups.com [mailto:julia-
> us...@googlegroups.com] On Behalf Of Tony Kelman
> Sent: Friday, July 15, 2016 10:37 AM
> To: julia-users <julia...@googlegroups.com>

Uwe Fechner

unread,
Jul 15, 2016, 2:13:18 PM7/15/16
to julia...@googlegroups.com
Well, the ppa is up-to-date and works well.

On Ubuntu a ppa is (nearly) always better than generic binaries, because
the package manager can be used to keep Julia up-to-date.

Only if a ppa is not maintained generic binaries are an alternative.

Uwe

Tony Kelman

unread,
Jul 15, 2016, 4:16:59 PM7/15/16
to julia-users
The ppa is barely maintained. nightlies have not been working very well at all, and I wouldn't expect to see 0.5 packaged very rapidly in juliareleases. Not everyone uses ubuntu, and doing that packaging is effort that is better spent elsewhere. The counterpoint of automatic updates is that you should be prepared for your julia 0.4 install to get upgraded to 0.5 as soon as Elliot does get around to packaging it, which will likely break much of your code.

Uwe Fechner

unread,
Jul 15, 2016, 8:40:18 PM7/15/16
to julia-users
Well, you can always pin a version. See: https://help.ubuntu.com/community/PinningHowto

For me, using Ubuntu packages is the easiest way to go, in particular if I have to explain students how
to install Julia.

Uwe

love...@gmail.com

unread,
Jul 15, 2016, 11:22:27 PM7/15/16
to julia-users
Agree. 

Tony Kelman

unread,
Jul 16, 2016, 1:28:26 AM7/16/16
to julia-users
Every single one of your students really uses ubuntu? Also note that the ppa version of Julia is less capable than the generic binaries at dealing with arrays that are larger than 2 GB. If you would like to see the ubuntu PPA continue to be available, someone needs to volunteer to put the work into helping maintain it. Contact Elliot Saba, @staticfloat on github.
Reply all
Reply to author
Forward
0 new messages