Torii icon indicating copy to clipboard operation
Torii copied to clipboard

Fix #10 openssl-dev needed

Open mielune opened this issue 1 year ago • 5 comments

Fix de need of openssl-dev to build the backend.

mielune avatar Jan 08 '24 13:01 mielune

Hey, Did you not need pkgconfig also? I believed I needed it

Tchoupinax avatar Jan 08 '24 14:01 Tchoupinax

Hey, Did you not need pkgconfig also? I believed I needed it

No but now compilation failed inside the Rust build with include_str!("../db/schema.sql");:

I'm not a Rust dev so I don't know how to fix it :/

   Compiling backend v0.1.0 (/app)
error: couldn't read src/../db/schema.sql: No such file or directory (os error 2)
  --> src/database.rs:66:22
   |
66 |     let sql_schema = include_str!("../db/schema.sql");
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `backend` (bin "backend") due to previous error
The command '/bin/sh -c cargo build --release' returned a non-zero code: 101
make: *** [Makefile:5: docker_build_backend] Error 101

mielune avatar Jan 08 '24 14:01 mielune

@mielune can you confirm if you have the db directory and inside it there should be schema.sql file? Attaching the image below for reference. image

sourabpramanik avatar Jan 08 '24 15:01 sourabpramanik

@mielune can you confirm if you have the db directory and inside it there should be schema.sql file? Attaching the image below for reference. image

Yes, I have this folder 👍

mielune avatar Jan 08 '24 16:01 mielune

@mielune please test with this current opened branch.

Tchoupinax avatar Jan 08 '24 17:01 Tchoupinax