Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Collaborator

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
Collaborator

@mielune please test with this current opened branch.

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

Successfully merging this pull request may close these issues.

None yet

3 participants