Make use of packages already compiled, in a newly created environment without having to recompile them

28 views
Skip to first unread message

Debbahi Saad

unread,
Jul 7, 2022, 6:09:00 PM7/7/22
to Spack

Dear Spack users,

          I'm using spack-0.18 to install and experiment with few scientific packages before deploying them on a cluster.
I used spack "without environment" to compile dozens of packages which took me several hours  with all cores running at full rpm... :doing just:

spack/bin]$ ./spack install pakages

installed in "spack base environment" without any user created environment or activated, which was an awkward mistake I think!
Now that I have created an environment userenv, do I have to reinstall all of them ?

is there a clean way to make the previously installed packages available in the newly environment created userenv ?

Thank you in advance,

with gratitude,

Saad

Debbahi Saad

unread,
Jul 7, 2022, 9:26:11 PM7/7/22
to Spack
Got it !

I had to add spec,s concretize and install

please is there a way to use wild cards when spack adding specs ?  like spack add all/--all or * adding all the installed packages.
to add the previously installed 92 packages, I had to modify the spack.yaml file and add the full string listing the root packages

kind regards

Saad

--
You received this message because you are subscribed to a topic in the Google Groups "Spack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spack/GNuEH2JGpa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spack+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/7575cfd4-58bb-40c6-8fc8-130fe4747453n%40googlegroups.com.

Davide DelVento

unread,
Jul 8, 2022, 11:52:02 AM7/8/22
to Spack
I don't know the answer to your question, but I do know that there are many people who do. This Google Group is sadly dead and all the conversation is happening on slack, which I find an irritating platform (for various reasons, including being hard to search and discussions are al mingled together rather than separated on threads). 

If you search for slack in this group you will find how to join, and hopefully you can find your answer there.
Best of luck.

Reply all
Reply to author
Forward
0 new messages