athena-framework / athena

An ecosystem of reusable, independent components
https://athenaframework.org
MIT License
211 stars 17 forks source link

Router does not compile with Crystal 1.11.2 #349

Closed notramo closed 9 months ago

notramo commented 9 months ago

Download the official skeleton project, then shards install, then run:

~$ shards run server
Dependencies are satisfied
Building: server
Error target server failed to compile:
Showing last frame. Use --error-trace for full trace.

In lib/athena-routing/src/ext/regex.cr:3:44

 3 | fun jit_match = pcre2_jit_match_8(code : Code*, subject : UInt8*, length : LibC::SizeT, startoffset : LibC::SizeT, options : UInt32, match_data : MatchData*, mcontext : MatchContext*) : Int
                                              ^---
Error: undefined constant Code
Blacksmoke16 commented 9 months ago

Athena requires PCRE2. It seems you're missing this dependency. How did you install Crystal? It should have been installed as a dependency.

notramo commented 9 months ago

Sorry, I used the 84Codes Docker image for interpreter support, and it seems I messed up the project mountpoint, because it works now.