spack mirror create -D gcc
spack mirror create -D mofem-fracture-module
spack mirror create -D curl
spack mirror add local_filesystem_mofem file://$HOME/spack-mirror-2018-11-02 #location of your mirror
spack load gcc
which gcc
printf "config: \n build_jobs: 4" >> $HOME/.spack/config.yaml
git clone --single-branch -b mofem https://github.com/likask/spack.git
spack uninstall boost@1.68.0
spack install mofem-users-modules@develop
https://github.com/likask/spack.git
I choose to download
it
by hand and copy it in the cluster machine. Another way is to
git clone --single-branch -b mofem https://github.com/likask/spack.git
the repo on a local machine and copy the folder to the cluster machine. I stuck in the first option for the moment. Any advice ?
2. Creation of a mirror:
I follow the steps advised by Karol.
spack mirror create -D gcc
Then I add the packages that I need to install mofem properly
spack mirror create -D mofem-fracture-module
spack mirror create -D curl
Any package miss ? (Boost, ... perl, ... etc )
Results: While performing "spack mirror create -D mofem-fracture-module", I get this result:
==> Successfully updated mirror in spack-mirror-2018-11-05
Archive stats:
11 already present
28 added
1 failed to fetch.
==> Error: Failed downloads:
mofem-frac...@0.9.48
Is that mean It is good ?
3. Start from the begining
When trying to setup the environment I've got this error.
Traceback (most recent call last):
File "/home/B87457/mofem/install_dir/spack/bin/spack", line 54, in <module>
sys.exit(spack.main.main())
File "/gpfseole/home/B87457/mofem/install_dir/spack/lib/spack/spack/main.py", line 600, in main
print_setup_info(*args.print_shell_vars.split(','))
File "/gpfseole/home/B87457/mofem/install_dir/spack/lib/spack/spack/main.py", line 565, in print_setup_info
module_roots = spack.config.get('config:module_roots')
File "/gpfseole/home/B87457/mofem/install_dir/spack/lib/spack/spack/config.py", line 573, in get
return config.get(path, default, scope)
File "/gpfseole/home/B87457/mofem/install_dir/spack/lib/spack/spack/config.py", line 423, in get
value = self.get_config(section, scope=scope)
File "/gpfseole/home/B87457/mofem/install_dir/spack/lib/spack/spack/config.py", line 388, in get_config
data = scope.get_section(section)
File "/gpfseole/home/B87457/mofem/install_dir/spack/lib/spack/spack/config.py", line 187, in get_section
data = _read_config_file(path, schema)
File "/gpfseole/home/B87457/mofem/install_dir/spack/lib/spack/spack/config.py", line 640, in _read_config_file
"Error parsing yaml%s: %s" % (str(e.context_mark), e.problem))
spack.config.ConfigFileError: Error parsing yamlNone: mapping values are not allowed here
Any advice ?
rm -rf $HOME/.spack
fracture_v0.9.48_view/mofem_um_fracture_mechanicsEnter