sfu-db / connector-x

Fastest library to load data from DB to DataFrames in Rust and Python
https://sfu-db.github.io/connector-x
MIT License
2.02k stars 163 forks source link

build whl file dependance a lower version in glibc (centos) #649

Closed tc19901016 closed 1 month ago

tc19901016 commented 5 months ago

[issue background] I have a feature that allow connectorx to read bit type in mysql. So I add some code in typesystem.rs and mysql_arrow.rs. And then I would build whl file. I use the following commands: # need to get the j4rs dependency first cd connectorx-python && maturin build --release -i python # copy files cp -rf connectorx-python/target/release/jassets connectorx-python/connectorx/dependencies # build final wheel cd connectorx-python && maturin build --release -i python which is written in Justfile.

[issue question] In Ubuntu 22.04, the whl file build success, but this whl need glibc-2.35. In centOs 7(glibc version is 2.17), all the linux lib is latest version but [maturin build --release -i python] also report error: openssl version error. I want to know how to build the connectorx release file, such as: --how to prepare my OS, I need to install which lib in which version. (glibc 2.35 is much higher than I need) --how to build a windows release

thank you very much

wangxiaoying commented 5 months ago

Hi @tc19901016 , you can check out our document to see the process of building from source. For environment and dependencies, maybe it is easier for you to directly check out our release workflow.

Unfortunately, I'm not very sure about building with lower version of glibc or openssl version. We usually build on the latest version.

tc19901016 commented 5 months ago

thank you. I success build the whl.

But I need add the Environment Variable in centOS 7: export LD_LIBRARY_PATH=/usr/lib64/clang-private:$LD_LIBRARY_PATH otherwise it will output the error log: Unable to find libclang: "thelibclangshared library at /usr/lib64/clang-private/libclang.so.7 could not be opened: libclangAST.so.7: cannot open shared object file: No such file or directory"