installation of MoFEM problem

70 views
Skip to first unread message

Deep Jyoti

unread,
Apr 25, 2020, 2:06:42 PM4/25/20
to MoFEM Q&A
First, Is there video available for installation of MoFEM with Spack. 

I have followed below procedure,

Spack setup

git clone --single-branch -b mofem https://github.com/likask/spack.git
. spack/share/spack/setup-env.sh
mkdir -p mofem_mirror &&
| tar xzC $PWD/mofem_mirror --strip 1
spack mirror add mofem_mirror $PWD/mofem_mirror

IN bash.rc file added below

echo ". $HOME/spack/share/spack/setup-env.sh" >> ~/.bash_profile

spack bootstrap

USERS ONLY

spack install mofem-users-modules
spack extensions mofem-cephas
spack install <extension>

EVERY THING IS SMOOTH TILL ABOVE .


I AM UNABLE TO PERFORM BELOW COMMAND AFTER MAKING DIRECTORY
sudo mkdir um_view
_

To access the installed users modules, create an um_view directory. This should be created in an appropriate directory:

spack view --verbose symlink -i um_view mofem-cephas
spack activate -v um_view mofem-users-modules

AND

mofem_mirror has tar.gz file - I Have to EXTRACT each folder....ALREADY 10GB Storage taken till above steps

sameer@sameer-desktop:~$ cd mofem_mirror 
sameer@sameer-desktop:~/mofem_mirror$ ls
adol-c               inputproto        metis                  pkgconf
arpack-ng            isl               moab                   python
autoconf             kbproto           mofem-cephas           readline
automake             libbsd            mofem-fracture-module  slepc
boost                libffi            mofem-users-modules    sqlite
bzip2                libiconv          mpc                    superlu-dist
cmake                libpciaccess      mpfr                   tcl
curl                 libpthread-stubs  mumps                  tetgen
diffutils            libsigsegv        ncurses                util-macros
environment-modules  libtool           netlib-scalapack       xcb-proto
expat                libx11            numactl                xextproto
gcc                  libxau            openblas               xproto
gdbm                 libxcb            openmpi                xtrans
gmp                  libxdmcp          openssl                xz
hdf5                 libxml2           parmetis               zlib
hwloc                m4                perl
hypre                med               petsc
sameer@sameer-desktop:~/mofem_mirror$ cd mofem-cephas
sameer@sameer-desktop:~/mofem_mirror/mofem-cephas$ ls
mofem-cephas-0.8.23.tar.gz  mofem-cephas-0.9.0.tar.gz
sameer@sameer-desktop:~/mofem_mirror/mofem-cephas$ 


KIndly guide, Thanks in advance.


Deep Jyoti

unread,
Apr 25, 2020, 2:14:55 PM4/25/20
to MoFEM Q&A
I am Installing on Ubuntu 18.04

Karol Lewandowski

unread,
Apr 25, 2020, 2:19:54 PM4/25/20
to MoFEM Q&A
Have you tried using scripts instead? 
http://mofem.eng.gla.ac.uk/mofem/html/scripts/install_mofem_user.sh
Try to execute the above script in $HOME folder

Deep Jyoti

unread,
Apr 25, 2020, 2:49:07 PM4/25/20
to MoFEM Q&A
it opens a shell , what next to be done

and i have remove all earlier downloads of 10 GB expandable, before proceeding with above.
Screenshot from 2020-04-26 00-17-47.png

Deep Jyoti

unread,
Apr 25, 2020, 2:54:49 PM4/25/20
to MoFEM Q&A
sameer@sameer-desktop:~$ git clone --single-branch -b mofem https://github.com/likask/spack.git
fatal: destination path 'spack' already exists and is not an empty directory.
sameer@sameer-desktop:~$ . spack/share/spack/setup-env.sh
sameer@sameer-desktop:~$ mkdir -p mofem_mirror &&
> | tar xzC $PWD/mofem_mirror  --strip 1
                                                
sameer@sameer-desktop:~$ spack mirror add mofem_mirror $PWD/mofem_mirror
==> Error: Mirror with name mofem_mirror already exists.
sameer@sameer-desktop:~$ spack bootstrap
==> Requirement environment-modules is satisfied with installed package environme...@4.3.0%g...@7.5.0~X arch=linux-ubuntu18.04-x86_64 ^t...@8.6.8%g...@7.5.0 arch=linux-ubuntu18.04-x86_64 ^zl...@1.2.11%g...@7.5.0+optimize+pic+shared arch=linux-ubuntu18.04-x86_64
sameer@sameer-desktop:~$ spack install mofem-users-modules
==> mofem-users-modules is already installed in /home/sameer/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/mofem-users-modules-0.9.1-ngiq7evgxsbn4cnsaup5hhv3763qov3l
sameer@sameer-desktop:~$ spack view --verbose symlink -i um_view mofem-cephas
==> Error: [Errno 13] Permission denied: 'um_view/.spack'
sameer@sameer-desktop:~$ spack view --verbose symlink -i um_view mofem-cephas
==> Error: [Errno 13] Permission denied: 'um_view/.spack'
sameer@sameer-desktop:~$ spack activate -v um_view mofem-users-modules

Above is my present terminal error, even after making directory um_view

Deep Jyoti

unread,
Apr 26, 2020, 2:59:24 AM4/26/20
to MoFEM Q&A
I am Hang Up at below command of Make Directory um_view....Can Anybody help.
With Clear Command Line in order.
Mechanical Engineers have limited Knowledge on Softwares.

"""""

To access the installed users modules, create an um_view directory. This should be created in an appropriate directory:

spack view --verbose symlink -i um_view mofem-cephas
spack activate -v um_view mofem-users-modules

This filesystem view is a single directory tree that is the union of the directory hierarchies of a number of installed packages; it is similar to the directory hierarchy that might exist under /usr/local. The files of the view's installed MoFEM packages are brought into the view by symbolic or hard links, referencing the original Spack installation. Different 'views' can be created depending on the MoFEM version you wish to access. To make the new 'view' visible from any directory, add its bin directory to your PATH, e.g.:

export PATH=$PWD/um_view/bin:$PATH

Consider also adding this command to your .bash_profile or .bashrc, e.g.:

echo "export PATH=$PWD/um_view/bin:\$PATH" >> ~/.bash_profile """"""

Deep Jyoti

unread,
Apr 26, 2020, 9:02:11 AM4/26/20
to MoFEM Q&A
Mr. Karol,

Have you tried using scripts instead? 
http://mofem.eng.gla.ac.uk/mofem/html/scripts/install_mofem_user.sh
Try to execute the above script in $HOME folder
1
 
0
 
Mark as best answer

I have tried your given link for installation.
Following log was generated. Refer attachment
Below Message is cut paste from terminal. 
Kindly guide.

Finished installing Prerequisites.

No user password will be asked from now on.
Current directory: /home/sameer/MOFEM

****************************
Installing SPACK...
****************************

/home/sameer/MOFEM/mofem_install

Finished installing Spack.

Current directory: /home/sameer/MOFEM/mofem_install

********************************************************

Installing USER MODULE & FRACTURE MODULE...

********************************************************

Current directory: /home/sameer/MOFEM/mofem_install
install_mofem_user.sh: line 185: spack: command not found
install_mofem_user.sh: line 188: spack: command not found
install_mofem_user.sh: line 191: cd: /home/sameer/MOFEM/mofem_install/um_view/elasticity: No such file or directory
Current directory: /home/sameer/MOFEM/mofem_install
install_mofem_user.sh: line 194: ./elasticity: No such file or directory

Finished testing elasticity.

install_mofem_user.sh: line 200: cd: /home/sameer/MOFEM/mofem_install/um_view/fracture_mechanics: No such file or directory
Current directory: /home/sameer/MOFEM/mofem_install
install_mofem_user.sh: line 203: ./crack_propagation: No such file or directory

Finished testing fracture module.


Installation FAILED!

End time: 18:09:09

log

Karol Lewandowski

unread,
Apr 26, 2020, 9:03:37 AM4/26/20
to MoFEM Q&A
Please delete spack folder and mofem_install folder and try using the script again. 

Deep Jyoti

unread,
Apr 26, 2020, 9:11:22 AM4/26/20
to MoFEM Q&A
I have deleted all earlier folders and made new directory MOFEM, copied the .sh file & executed the .sh by

sudo bash install_mofem_user.sh
All Old mirror & spack folders were deleted & removed from Thrash before new install.

Hoang Nguyen

unread,
Apr 26, 2020, 6:21:57 PM4/26/20
to MoFEM Q&A
Please try to delete folder named .spack in your $HOME folder as well before rerunning the script.

Hoang
Reply all
Reply to author
Forward
0 new messages