initial
This commit is contained in:
commit
74ae93a96e
1 changed files with 94691 additions and 0 deletions
21
joplin notion extension/Web Development/Extras/redlib.md
Normal file
21
joplin notion extension/Web Development/Extras/redlib.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
redlib
|
||||
https://github.com/redlib-org/redlib
|
||||
|
||||
for building boring ssl , use this to aboid installing large clang
|
||||
1. Install a tiny library extractor if you don't have it (this is incredibly lightweight):bash
|
||||
`sudo apt-get install binutils`
|
||||
Use code with caution.
|
||||
2. Download the .deb package file manually without installing its bloated dependencies:bash
|
||||
`apt-get download libclang-14-dev`
|
||||
Use code with caution.
|
||||
3. Extract just the raw files into a local folder:bash
|
||||
`dpkg -x libclang-14-dev*.deb ./mini-clang`
|
||||
Use code with caution.
|
||||
4. Point Rust to that specific folder before compiling Redlib:bash
|
||||
`export LIBCLANG_PATH=$(pwd)/mini-clang/usr/lib/llvm-14/lib/` and
|
||||
`cargo build --release`
|
||||
Use code with caution.
|
||||
Once the build is done, you can delete the mini-clang folder entirely, and your system stays perfectly clean.
|
||||
Did extracting just the raw libclang binary file allow your cargo build command to succeed?
|
||||
|
||||
then `cargo build --release` should be enough
|
||||
Loading…
Reference in a new issue