-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hey! I have both crystal and shards installed in /usr/bin. I compiled them from source.
[/tmp/cr] $ crystal -v
Crystal 1.10.0 [9c011d77d] (2023-10-09)
LLVM: 15.0.7
Default target: x86_64-unknown-linux-gnu
[/tmp/cr] $ shards --version
Shards 0.17.3 [4bf845f] (2023-07-23)
I tried to compile crystalline from source to, commit e1dd820.
I managed to build it by using the following instructions:
git clone https://github.com/elbywan/crystalline
cd crystalline
shards install
mkdir bin
CRYSTAL_PATH=/usr/lib/crystal/src:lib shards build crystalline \
--no-debug --progress --stats --production --release \
-Dpreview_mt --ignore-crystal-version
I set the absolute path in the VS Code extension v0.8.4: /home/user/Clones/crystalline/bin/crystalline
I receive the following in the PROBLEMS tab and no LSP feature works.
I am using Linux:
[/tmp/cr] $ uname -a
Linux catalin 6.5.5-258.current #1 SMP PREEMPT_DYNAMIC 0 x86_64 GNU/Linux
[/tmp/cr] $ gcc --version
gcc (Solus) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[22:32:28]
[/tmp/cr] $ clang --version
clang version 15.0.7
Target: x86_64-solus-linux
Thread model: posix
InstalledDir: /usr/bin
If you have any ideas on how to make it work let me know.
Edit 1: I used the barebones crystal executable project for testing.
I never got the dynamic build to ever run on my machine.
Edit 2: I can run the code without problems.
[/tmp/cr] $ shards run
Dependencies are satisfied
Building: cr
Executing: cr
Edit 3: the executable from GitHub releases is statically built and it's built against musl. I am using libc.
Metadata
Metadata
Assignees
Labels
No labels
