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

Error installing to directories containing a '(' #178

Open
knoxsp opened this issue May 7, 2024 · 1 comment
Open

Error installing to directories containing a '(' #178

knoxsp opened this issue May 7, 2024 · 1 comment
Labels
rust Pull requests that update Rust code

Comments

@knoxsp
Copy link
Contributor

knoxsp commented May 7, 2024

This is less an issue, and more added as somewhere for this to be recorded for future reference.

When installing pywr-next as per the instructions, I got a failure (see below) relating to a '(' but with little other information. In addition the error differed between Linux and Mac Os X

This was caused by my repo being in a dropbox folder, which contains a '(' in the path.

Once I moved my cloned repo to a different location, the installation worked fine.

On Mac Os X:

 [  0%] Built target H5detect
  [  1%] Built target H5make_libsettings
  [  1%] Generating ../H5Tinit.c, ../gen_SRCS.stamp1

  --- stderr
  make: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  /bin/sh: -c: line 0: syntax error near unexpected token `('

On Ubuntu:

[  1%] Generating ../H5Tinit.c, ../gen_SRCS.stamp1

  --- stderr
  /bin/sh: 1: Syntax error: "(" unexpected
  make[2]: *** [src/CMakeFiles/gen_hdf5-static.dir/build.make:70: H5lib_settings.c] Error 2

@jetuk
Copy link
Member

jetuk commented May 7, 2024

This looks like it is an upstream issue with HDF5 or the Rust wrapper.

I wonder if we should have a flag that enables/disables the "static" feature of the hdf5 crate. This would allow it to use the system library if it were installed. That's quite easy on Linux, but more difficult on Windows (not sure about OSX).

@jetuk jetuk added the rust Pull requests that update Rust code label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Pull requests that update Rust code
Projects
None yet
Development

No branches or pull requests

2 participants