Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Fix #10 openssl-dev needed #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix #10 openssl-dev needed #11

wants to merge 1 commit into from

Conversation

mielune
Copy link

@mielune mielune commented Jan 8, 2024

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

@Tchoupinax
Copy link
Contributor

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

@mielune
Copy link
Author

mielune commented Jan 8, 2024

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

@sourabpramanik
Copy link

@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

@mielune
Copy link
Author

mielune commented Jan 8, 2024

@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 👍

@Tchoupinax
Copy link
Contributor

@mielune please test with this current opened branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants