Unable to refresh spack module

36 views
Skip to first unread message

Vinayak Vijay

unread,
May 12, 2023, 5:23:14 AM5/12/23
to deal.II User Group
Hello,

In order to upgrade the version of dealii, i reinstalled the latest version of spack. I have been able to also install dealii using spack. However, when i use the command "spack module tcl refresh", i get the following error.

==> Error: Cannot use invalid module set default.    Valid module set names are []

If i just ignore this and perform "make run" of my code i get the following error:

[ 14%] Linking CXX executable main
/usr/bin/ld.gold: error: cannot find -lhdf5-shared
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/main.dir/build.make:292: main] Error 1
make[2]: *** [CMakeFiles/Makefile2:90: CMakeFiles/main.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:123: CMakeFiles/run.dir/rule] Error 2
make: *** [Makefile:137: run] Error 2

I think these two errors are linked. Can someone point out what i should do now?

Note: I was able to perfectly run dealii v9.3 befor this reinstallation. 

Thanks,
Vinayak

陈敏

unread,
May 12, 2023, 7:55:27 AM5/12/23
to dea...@googlegroups.com
Hi, Vinayak Vijay

I think installing dealii-9.4 with hdf5 using spack maybe some bug, you can turn off the hdf5 by spack install dea...@9.4.0~hdf5.

Best
Chen

Vinayak Vijay <vinay...@gmail.com> 于2023年5月12日周五 17:23写道:
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/4a585a05-c8e1-45aa-972d-d01caaaebed2n%40googlegroups.com.

Daniel Arndt

unread,
May 12, 2023, 9:12:00 AM5/12/23
to dea...@googlegroups.com
Yes, our HDF5 integration only works well with a raw install (like a system package manager provides) that doesn't expose CMake files.
https://github.com/dealii/dealii/pull/15199 offers a workaround for that issue but otherwise, it's best to just use the system installation obtainable through

apt-get install libhdf5-dev

or the like and let spack know about it.

Best,
Daniel

Vinayak Vijay

unread,
May 12, 2023, 9:32:56 AM5/12/23
to dea...@googlegroups.com
Hi,

Thank you for your reply. I will try it. Can you tell me how can I let spack know about the package that is installed through system installation?

Also, can you help me with the other error that I get when I try to refresh the modules?

==> Error: Cannot use invalid module set default.    Valid module set names are []

Thanks again for your help.
Vinayak 
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/ABXq4Bb_RWU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAOYDWbKbv2KJLiYb%3DDE7TLNzBRN5V-jRcd0jq_BxFNFYysNLkA%40mail.gmail.com.

Daniel Arndt

unread,
May 12, 2023, 9:47:44 AM5/12/23
to dea...@googlegroups.com
> Can you tell me how can I let spack know about the package that is installed through system installation?


I don't know about the other spack issue.

Best,
Daniel

Reply all
Reply to author
Forward
0 new messages