asdf-crystal icon indicating copy to clipboard operation
asdf-crystal copied to clipboard

Crystal was compiled without interpreter support.

Open uunnxx opened this issue 3 years ago • 5 comments

Hi there! How can we set interpreter=1 to make ? Or should we delete crystal via asdf and build it from source?


Links:

uunnxx avatar Apr 17 '22 02:04 uunnxx

Seems it using existing crystal binaries, but not compiled it

https://github.com/asdf-community/asdf-crystal/blob/f8347c072a53a55a89d25f59e2ab9e8990a566f7/bin/install#L21

webhive avatar May 08 '22 16:05 webhive

also would love support for this

ukd1 avatar Aug 10 '22 17:08 ukd1

Here are the lines related to the interpreter in the official Makefile:

  • https://github.com/crystal-lang/crystal/blob/fc2250af9c501117e3b94469ae46f3f92a9272e6/Makefile#L11-L12
  • https://github.com/crystal-lang/crystal/blob/fc2250af9c501117e3b94469ae46f3f92a9272e6/Makefile#L31
  • https://github.com/crystal-lang/crystal/blob/fc2250af9c501117e3b94469ae46f3f92a9272e6/Makefile#L38

Here is how ArchLinux builds it:

https://github.com/archlinux/svntogit-community/blob/e24635d331bf3044f3c9753d4c54ef8f1fe5dced/trunk/PKGBUILD#L25-L28

So yeah it basically requires interpreter=1 for make.

noraj avatar Mar 20 '23 00:03 noraj

I can't access the interactive shell. Is there a step-by-step guide on how to enable it in an installation using asdf? =/

crystal i example.cr
Crystal was compiled without interpreter support

aristotelesbr avatar Jun 24 '23 21:06 aristotelesbr

asdf-crystal could use crystal-build-cr to build crystal from sources instead of downloading pre-compiled binaries.

noraj avatar Oct 19 '23 14:10 noraj