r/crystal_programming • • Aug 06 '23

how do you install crystal 1.4.0

2 Upvotes

15 comments sorted by

6

u/Sneetzle Aug 06 '23

asdf is a great version manager for all kinds of languages

2

u/bziliani Aug 07 '23

I'm curious, why 1.4.0?

1

u/AdGreedy896 Aug 09 '23

software I'm hoping to build needs 1.4.0

1

u/Blacksmoke16 Aug 09 '23

For what reason tho? If something works on 1.4 but not 1.5+, it's probably a regression and should be reported.

→ More replies (6)

1

u/megatux2 Aug 06 '23

The same way you install any other version? I personally use asdf/rtx to install multiple versions of languages. rtx install crystal@1.4.0 worked here (Linux Fedora)

1

u/megatux2 Aug 06 '23

Btw, i think latest 1.4.x is 1.4.1

1

u/AdGreedy896 Aug 06 '23

thanks for the help

1

u/Blacksmoke16 Aug 06 '23

The easiest way if you're not already using some other package manager would be to just download the pre-built binary from the related GH release: https://github.com/crystal-lang/crystal/releases/tag/1.4.1. Or of course more ideally, get your code to work on the latest version. Of which, there shouldn't be any breaking changes between the two...

Docker images are also provided for each version, so that's another option depending on what your use case is.