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

new macos issue #1020

Open
hainm opened this issue Mar 10, 2023 · 6 comments
Open

new macos issue #1020

hainm opened this issue Mar 10, 2023 · 6 comments

Comments

@hainm
Copy link
Contributor

hainm commented Mar 10, 2023

Hi

I am trying with
bash configure -shared -macAccelerate -noarpack -nosanderlib clang

Then I picked n for the answer but getting error:

  Checking NetCDF4/HDF5:   
Checking HDF5:   Checking for bundled HDF5: Should CPPTRAJ attempt to build its own hdf5? {y|n}: n
Error: Building HDF5 failed.

I think the error is misleading since I picked a No answer.

@hainm
Copy link
Contributor Author

hainm commented Mar 10, 2023

If I pick y for the answer, I get another error

  Checking NetCDF4/HDF5:   
Checking HDF5:   Checking for bundled HDF5: Should CPPTRAJ attempt to build its own hdf5? {y|n}: y
    Downloading hdf5...
Warning: 'wget' not found. Trying curl.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    Unpacking hdf5...
Error: Could not unpack hdf5-1_10_9.tar.gz
Error: Building HDF5 failed.

@hainm
Copy link
Contributor Author

hainm commented Mar 10, 2023

curl -O https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_10_9.tar.gz

I don’t think above work correctly.
image

@drroe
Copy link
Contributor

drroe commented Mar 10, 2023

Checking HDF5: Checking for bundled HDF5: Should CPPTRAJ attempt to build its own hdf5? {y|n}: n

This is expected behavior. Since HDF5 is enabled by default, if you don't download and build it there is no HDF5, hence a failure. You need to explicitly disable it with -nohdf5.

Error: Could not unpack hdf5-1_10_9.tar.gz

Ugh. This is because wget follows redirects by default and curl does not. I need to add the -L flag to the curl command.

@hainm
Copy link
Contributor Author

hainm commented Mar 10, 2023

This is expected behavior. Since HDF5 is enabled by default, if you don't download and build it there is no HDF5, hence a failure. You need to explicitly disable it with -nohdf5.

Thanks. IMO, the error message should be clearer. (e.g: user say "no build" but cpptraj says "build failure").

I need to add the -L flag to the curl command.

yeah, this helps. Thanks.

@drroe
Copy link
Contributor

drroe commented Mar 14, 2023

@hainm I forgot to mention that I changed some of the error messages in #1019 - let me know if they are clearer now.

@hainm
Copy link
Contributor Author

hainm commented Mar 14, 2023 via email

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

No branches or pull requests

2 participants