The redirection is a problem with sudo - so the following is the correction
echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts Satish On Thu, 15 Jun 2017, Satish Balay wrote: > The command below should work on osx aswell.. > > Satish > > On Thu, 15 Jun 2017, Mohamadreza Soltanian wrote: > > > Hello Satish > > > > Thank you for your reply. I am using macOS Sierra 10.12.5. > > > > Thanks > > > > > > > > On Thu, Jun 15, 2017 at 12:07 AM, Satish Balay <ba...@mcs.anl.gov> wrote: > > > > > Likely its hanging in gethostbyname() call - which is caued > > > by a mismatch in hostname. > > > > > > What OS are you using? If linux - can you do the following? > > > > > > sudo echo 127.0.0.1 `hostname` >> /etc/hosts > > > > > > And retry? > > > > > > Satish > > > > > > On Thu, 15 Jun 2017, Mohamadreza Soltanian wrote: > > > > > > > Hello All, > > > > > > > > I am trying to install and test PETSC. When I get to the test part, it > > > > seems everything get stuck in the following line. I was wondering if > > > anyone > > > > can help. Thank you > > > > > > > > C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 > > > MPI > > > > process > > > > > > > > > > > > > >