How to compile a specific version of Julia

I am using some Julia packages that require a specific version (namely ≥ v0.3

and 0.4 ≤

). I couldn't find a way to compile Julia

from source (I'm using Linux

) on a specific version. Is there a way to do this that I am not aware of? Neither Github-Julia-Readme

, nor an extensive internet search, yielded any insights. I'm sure there is an easy way that I am not aware of.

My usual procedure

git clone git://github.com/JuliaLang/julia.git && cd julia && printf "prefix=/usr/local" > Make.user && make && make install

      

Is it enough to edit the file entry VERSION

in the source Julia

?

+3


source to share


1 answer


You can choose a git checkout

thread or tag that you want to follow. Right now you can follow the thread release-0.3

until the "chaos period" is over.

So, you can simply change your command sequence:

git clone git://github.com/JuliaLang/julia.git && cd julia && git checkout release-0.3 && …

      

You can also grab branches release-0.2

or release-0.1

if you like. Now this does not actually match the exact version; this follows development in the 0.x series. For example, during the 0.3 development period, the time was release-0.2

occasionally updated with rollback fixes, and after a while, 0.2.1 was tagged from that branch. Following branch release-x

, git pull && make clean && make

will capture and compile the latest updates, even if they have not been tagged in a point release. You are still living on the edge and may encounter occasional hiccups (although this is much less than a master's).



If you want the exact version, you can check out the tag instead of the branch:

git clone git://github.com/JuliaLang/julia.git && cd julia && git checkout v0.3.0-rc4 && …

      

This will be the stable release and will not change with git pull

. You will need to manually check the next flagged version if you want to, for example, upgrade to the final version 0.3.0.

(Changing the VERSION file will just make Julia lie to you, you can enter 1.0 in VERSION and Julia will happily inform you that she will live in the future).

+7


source







All Articles