Closed passionate2023 closed 1 year ago
This looks like a problem with your host system's Docker installation or configuration, not this software. Sorry.
Can you please kindly help me with the following?
git clone https://github.com/DSpeckhals/bible.rs.git --recurse-submodles
To build and run:
cargo build --release
sassc web/styles/index.scss web/dist/css/style.css
DATABASE_URL=/tmp/biblers ./target/release/biblers
You can also see the basic steps in the Dockerfile. Running with Docker is probably your easiest choice though, and that's why it's highlighted in the README.
from where this Docket content will be pulled from ? Is it a permanent repo is associated with ? I meant repository like maven repository or jfrog
Error:
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the LIBCLANG_PATH
environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\admin.cargo\registry\src\index.crates.io-6f17d22bba15001f\bindgen-0.59.2\src/lib.rs:2144:31
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
===
error: failed to run custom build command for libsqlite3-sys v0.24.2
Caused by:
process didn't exit successfully: C:\Users\admin\Downloads\bible.rs-master\bible.rs-master\target\release\build\libsqlite3-sys-68d97dd91c078e76\build-script-build
(exit code: 101)
--- stdout
error: failed to run custom build command for libsqlite3-sys v0.24.2
Caused by:
process didn't exit successfully: C:\Users\admin\Downloads\bible.rs-master\bible.rs-master\target\release\build\libsqlite3-sys-68d97dd91c078e76\build-script-build
(exit code: 101)
--- stdout
'sassc' is not recognized as an internal or external command,
You don't have a Clang compiler in your path, either because it's not installed or because it's not in your path. Also, it looks like sassc isn't there either. You can use Google to see how to install these on Windows, but it's not simple if you're unaccustomed to compiling system utilities on Windows.
If you want to avoid the Clang/LLVM toolchain, comment out or remove these lines in db/Cargo.toml
:
https://github.com/DSpeckhals/bible.rs/blob/21491f833ad3070b36e4f6a513c44afda16a95a0/db/Cargo.toml#L12-L15
I still have a feeling Docker is going to be your best bet on Windows though. If you're familiar with Docker, you might try pulling docker.io/dspeckhals/bible.rs
, then running docker run --rm -it dspeckhals/bible.rs:latest -p 8080:8080
. If you can't make it past these steps, I would suggest reading up on compiling software from source on Windows and running Docker containers on Windows.
I will try but
docker pull dspeckhals/bible.rs
if you want a pre-built image.docker build -t biblers .
. Once it's built, then run docker run -p 8080:8080 --rm -it biblers
.Please kindly let me know how to fix this.
It looks like you didn't initialize this repo with its submodule dependencies, specifically the https://github.com/DSpeckhals/bible.rs-migrations repo.
Try running this from the repo root git submodule update --init
, then rebuild the Rust project (docker build -t biblers .
)
Great....Thank you So much....Below are the steps....Please update in read me if possible...The below steps are working awesome !!!!
C:\Users\admin\Downloads\bible.rs-master\bible.rs-master>docker build -t biblers . && docker run -p 8080:8080 --rm -it biblers error during connect: This error may indicate that the docker daemon is not running.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=biblers&target=&ulimits=null&version=1": open //./pipe/docker_engine: The system cannot find the file specified.