Hello,

It seems hdf5 library still needs to be loaded. Try something like "spack
load hdf5**" before compiling your code.

With regards
Ajay

On Fri, Mar 31, 2023 at 2:21 PM Amit Sharma <amitsharmass1...@gmail.com>
wrote:

> Hello everyone,
>
> I installed dealii using spack manager. I started learning dealii using
> examples but I am getting a linking error.
>
> Scanning dependencies of target step-1
> [ 33%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o
> [ 66%] Linking CXX executable step-1
> /home/amit/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.4.0/binutils-2.38-e2nnae3w7g55p34q7m3tsngmmrol2iba/bin/ld.gold:
> error: cannot find -lhdf5-shared
> collect2: error: ld returned 1 exit status
> make[3]: *** [CMakeFiles/step-1.dir/build.make:223: step-1] Error 1
> make[2]: *** [CMakeFiles/Makefile2:272: CMakeFiles/step-1.dir/all] Error 2
> make[1]: *** [CMakeFiles/Makefile2:252: CMakeFiles/run.dir/rule] Error 2
> make: *** [Makefile:196: run] Error 2
>
> Thanks,
> Amit Sharma
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/42939680-2c90-4f7d-ad5f-c3c23bc5ddc6n%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/42939680-2c90-4f7d-ad5f-c3c23bc5ddc6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Ajay Rawat
Kalpakkam, IGCAR

-------------------------------------------------------------------------
Save Himalayas....
-------------------------------------------------------------------------

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAETwqwbN%2BT-GDjvZ-i-WtRfR%3DgEZgDbXXnE%2BKNhhMUW_qHfoWg%40mail.gmail.com.

Reply via email to