Installing PETSC manually.

356 views
Skip to first unread message

Vi Ha

unread,
Jun 5, 2018, 2:34:54 PM6/5/18
to moose-users
I am trying to install petsc using these instructions: http://mooseframework.org/wiki/BasicManualInstallation/Linux/
on a linux system that isn't allowing me to download things directly.

I am trying to install the dependent packages such as hypre, metis etc. does anyone know if there are instructions on how to download and install them manually? I know there are parameters in PETSC's configure file that allow me to do so but I don't know what they are.

Thank you. 

Miller, Jason M

unread,
Jun 5, 2018, 3:08:17 PM6/5/18
to moose...@googlegroups.com
We ran into an issue like this recently. I believe this thread will help you:  MOOSE-Users: Error while installing PETSc

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/ae2cfd8e-ce5c-4525-990c-cdd524814c8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cody Permann

unread,
Jun 5, 2018, 3:10:14 PM6/5/18
to moose...@googlegroups.com
Are you installing this on a cluster or a workstation? Have you looked at any of the pre-built packages? Make sure you need to install from source before going through all the trouble to build everything from scratch. There are ways of downloading the packages ahead of time and pointing the PETSc configure script to these packages but this is work that you may not even need to do.

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.

Vi Ha

unread,
Jun 6, 2018, 1:00:51 PM6/6/18
to moose-users
Hi Jason, 

Thanks for the reply.
I am having the same exact error as you linked. Here's the full error message from configure.log:

===============================================================================

                        Trying to download file:///home/vi/Documents/v-install-moose/files/petsc-config-backup/v5.1.0-p4.tar.gz for METIS

                    ===============================================================================

                

                  Downloading file:///home/vi/Documents/v-install-moose/files/petsc-config-backup/v5.1.0-p4.tar.gz to /home/vi/Documents/moose/packages/projects/src/petsc-3.7.6/arch-linux2-c-opt/externalpackages/_d_v5.1.0-p4.tar.gz

                  Extracting /home/vi/Documents/moose/packages/projects/src/petsc-3.7.6/arch-linux2-c-opt/externalpackages/_d_v5.1.0-p4.tar.gz

Executing: cd /home/vi/Documents/moose/packages/projects/src/petsc-3.7.6/arch-linux2-c-opt/externalpackages; chmod -R a+r petsc-pkg-metis-0adf3ea7785d;find  petsc-pkg-metis-0adf3ea7785d -type d -name "*" -exec chmod a+rx {} \;

                  Looking for METIS at git.metis, hg.metis or a directory starting with ['metis']

                  Could not locate an existing copy of METIS:

                    ['fblaslapack-3.4.2', 'petsc-pkg-metis-0adf3ea7785d', 'hypre-2.11.1', 'scalapack-2.0.2', 'pkg-metis']

                ERROR: Failed to download METIS


And then the on screen error becomes:

Unable to download METIS
Failed to download METIS

Same as previous post. It "downloads" the file but it cannot detect it for some reason. 



On Tuesday, June 5, 2018 at 3:08:17 PM UTC-4, jason.miller wrote:
We ran into an issue like this recently. I believe this thread will help you:  MOOSE-Users: Error while installing PETSc
On Tue, Jun 5, 2018 at 1:34 PM, Vi Ha <vi.ha...@gmail.com> wrote:
I am trying to install petsc using these instructions: http://mooseframework.org/wiki/BasicManualInstallation/Linux/
on a linux system that isn't allowing me to download things directly.

I am trying to install the dependent packages such as hypre, metis etc. does anyone know if there are instructions on how to download and install them manually? I know there are parameters in PETSC's configure file that allow me to do so but I don't know what they are.

Thank you. 

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.

Vi Ha

unread,
Jun 6, 2018, 1:11:46 PM6/6/18
to moose-users
Hi Cody,

I am trying to install MOOSE on a cluster. The limitation is that I don't have sudo access and the system is very strict with internet access. I am currently following these instructions:


by uploading all the files manually. Currently, the problem seems to be that the installation is having trouble recognizing METIS when I try to install PETSC. 

Kong, Fande

unread,
Jun 6, 2018, 3:46:07 PM6/6/18
to moose...@googlegroups.com
"--download-metis=/Users/kongf/Downloads/metis-5.1.0-p3.tar.gz" works with me. You could download metis from http://ftp.mcs.anl.gov/pub/petsc/externalpackages/, and let PETSc point to the downloaded package.


But you did not answer Cody's question. Why do you need to build PETSc from the scratch?   Could you use a pre-complied  moose environment package?

Thanks,

Fande,

To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

Derek Gaston

unread,
Jun 6, 2018, 4:46:19 PM6/6/18
to moose...@googlegroups.com
Also: we do have single user cluster instructions here: http://mooseframework.org/wiki/ClusterInstructions/ClusterSetupSingleUser/

Derek

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.

Vi Ha

unread,
Jun 6, 2018, 5:43:06 PM6/6/18
to moose-users
Hi Fande,

Thank you for your reply. I am relatively new so I am still figuring out the correct installation process. Please direct me to the correct instructions if you find me making a mistake. Initially, I was installing MOOSE on a Ubuntu using the provided Ubuntu instructions but I was having problems installing the Redistributable Package using sudo dpkg -i <...> because I did not have sudo access. I overcame the problem by using the manual installation instructions to install MOOSE, PETSC, also the associated MPICH, GCC a local folder and it worked smoothly. So I am using the same instructions get PETSC and MOOSE on a SUSE but it was having troubles downloading some of the packages. 

If there is another instructions you would recommend me following, please let me know.

Thanks. 
Vi

Fande Kong

unread,
Jun 6, 2018, 11:34:47 PM6/6/18
to PETSc users list, Satish Balay, moose...@googlegroups.com, vi.ha...@gmail.com
Hi Satish, 

A MOOSE user has troubles to build Metis that is "downloaded" from a local directory. Do you have any idea?

Vi,

Could you share "configure.log" with PETSc team?


Thanks,

Fande,

To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.

Vi Ha

unread,
Jun 7, 2018, 10:47:31 AM6/7/18
to moose-users
Hi all,

I have solved the METIS problem:

Trying to download file:///[ADIRECTORY]/v5.1.0-p4.tar.gz for METIS
Unable to download METIS
Failed to download METIS


Apparently, when you uncompress metis-5.1.0-p3.tar.gz, you get a file named petsc-pkg-metis-0adf3ea7785d instead of what it was intended to be. So when the script tries to install METIS, this error occurs:

Looking for METIS at git.metis, hg.metis or a directory starting with ['metis']

                  Could not locate an existing copy of METIS:

                    ['fblaslapack-3.4.2', 'petsc-pkg-metis-0adf3ea7785d', 'hypre-2.11.1', 'scalapack-2.0.2', 'pkg-metis']

                ERROR: Failed to download METIS


It found a petsc-pkg-metis-0adf3ea7785d but it is looking for a directory starting with ['metis']. Therefore it did not proceed with the installation. I did a quick fix by renaming the compressed file to metis instead of petsc-pkg-metis-0adf3ea7785d :

tar -xzf v5.1.0-p4.tar.gz

mv petsc-pkg-metis-0adf3ea7785d metis

tar -czvf metis.tar.gz metis/


Metis now installed fine.
Thank you everyone for your help.

Kong, Fande

unread,
Jun 7, 2018, 11:08:43 AM6/7/18
to moose...@googlegroups.com
Hi Vi,


As I suggested in the previous email, if the Metis is originally downloaded from http://ftp.mcs.anl.gov/pub/petsc/externalpackages/, and then you do not  need to manually change directory name.   You may want to do so sine other packages could have a similar issue.

Thanks,

Fande,

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.

Vi Ha

unread,
Jun 7, 2018, 1:51:09 PM6/7/18
to moose-users
Thank you Fande. That helps a lot.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages