nemo icon indicating copy to clipboard operation
nemo copied to clipboard

installing uns_projects on a mac

Open teuben opened this issue 11 months ago • 7 comments

It seems that installing uns_projects (which needs unsio) has some issues I don't understand on a mac. Maybe @jcldc can help out with this.

On linux the command "mknemo uns_projects" works, but hdf5 and sqlite need to be installed. For example, on ubuntu the package names are libsqlite3-dev, libhdf5-serial-dev, and hdf5-tools.

On a mac, using brew, the packagenames are called sqlite and hdf5. Then it complained about RPC missing, so we installed the package libtirpc, which comes pre-installed with ubuntu, but it seems on a mac we need it.

After that, the error remains, and there is still the complaint about RPC. Do we need a flag for cmake to tell it where the RPC library now lives?

CMake Error at cmake/FindRPCH.cmake:42 (message):
  rpc.h not found ...

teuben avatar Mar 29 '25 00:03 teuben

I got a bit further. In cmake/FindRPCH.cmake I added the directory /opt/homebrew/include/tirpc to the findfile()

After this malloc.h wasn't found. that was enough for my evening, for now.

teuben avatar Mar 29 '25 01:03 teuben

ah, stackoverflow suggested to replace malloc.h by stdlib.h - that worked. this is in tipsy2gadget.cc

teuben avatar Mar 29 '25 01:03 teuben

Hi, the compiling/installation issue should be fixed by using uns_project gitlab develop branch

It should allow compiling on both macos Intel and ARM (Mx)

jcldc avatar Mar 31 '25 11:03 jcldc

I have also updated nemo/src/scripts/mknemo.d/unsio and nemo/src/scripts/mknemo.d/uns_projects because gitlab URL of these projects have changed. Here are the new URL : https://gitlab.lam.fr/simutools/uns_projects https://gitlab.lam.fr/simutools/unsio

I have committed and pushed in the master NEMO branch

PS : many changed have been done in uns_projects develop branch

jcldc avatar Mar 31 '25 12:03 jcldc

any ETA on when the develop branch comes back to main?

teuben avatar Mar 31 '25 13:03 teuben

Well, I don't know yet when it will be completed, maybe in 2 weeks, maybe less. In the meantime, it would be possible to modify, again. mknemo.d/uns_projects to add a statement to switch to develop branch ?

jcldc avatar Mar 31 '25 13:03 jcldc

I indeed put a comment in to switch to a branch, to be committed soon.

teuben avatar Mar 31 '25 13:03 teuben