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

Need Curl under Windows 10's WSL #427

Open
freeNastran opened this issue Dec 7, 2023 · 2 comments
Open

Need Curl under Windows 10's WSL #427

freeNastran opened this issue Dec 7, 2023 · 2 comments
Labels

Comments

@freeNastran
Copy link

freeNastran commented Dec 7, 2023

Hi,

I am trying to install it under Windows 10's WSL.

I got an error: Can't build NetCDF. Curl is not found. So I cloned openssl & Curl under the TPL folder and tried to build them with no luck.

I have built openssl and have got libcrypto.a & libssl.a. I have copied them into seacas/lib. Also copied openssl's include folder into seacas/include folder.

Then I try to build curl. But curl can't find openssl.

[ 76%] Linking C executable curl
/usr/bin/ld: ../lib/libcurl.so.4.8.0: undefined reference to SSL_alert_desc_string_long' /usr/bin/ld: ../lib/libcurl.so.4.8.0: undefined reference to SSL_CTX_free'
/usr/bin/ld: ../lib/libcurl.so.4.8.0: undefined reference to `SSL_CTX_set_keylog_callback'

Thanks for help.

It would be great the install_tpl.sh could include these two packages. It could be set at NOT build at default.

Cheers,

Cean

@gsjaardema
Copy link
Member

We typically build netCDF with the DAP capability disabled which should eliminate the need for the curl libraries. There has been some releases where they still need curl. I will check with the latest versions and see how to eliminate curl as a dependency.

@gsjaardema
Copy link
Member

gsjaardema commented Jan 2, 2024

It looks like more recent versions of netCDF also need to have the ENABLE_BYTERANGE set to NO to eliminate the curl dependency. I've update the install-tpl.sh to include that disablement and verified that netCDF built with that do not have a dependency on libcurl. (See commit b737fee)

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

No branches or pull requests

2 participants