Sanjay Govindjee sanjay at
Wed Jan 2 06:11:47 CST 2008

on many x86_64-linux machines you need to link with /usr/X11R6/lib64.  
It depends on the version/distro you are using.


Barry Smith wrote:
>   Please send configure.log and make_log and bmake/$PETSC_ARCH/petscconf
> On Jan 1, 2008, at 9:21 PM, Pivi, Mauro Torino Francesco wrote:
>> I have just installed PETSC on a x86_64-linux machine.
>> I am at the level of running the first exercises and after "make" and 
>> running the ex2.c file in parallel I get the message
>> "./ex2: error while loading shared libraries: cannot 
>> open shared object file: No such file or directory"
>> I spent few days with this. Please, help.
>> PS: I used the link found the file in the directory 
>> /usr/X11R6/lib. Thus I run again with the option
>> --with-x-include=/usr/X11R6/lib
>> Thank you!
>> Mauro

Sanjay Govindjee, PhD, PE                 Voice:  (510) 642-6060
Professor of Civil Engineering            FAX:    (510) 643-8928

WWW:   E-mail: sanjay at

709 Davis Hall
Structural Engineering, Mechanics and Materials
Department of Civil Engineering
University of California
Berkeley, CA 94720-1710

More information about the petsc-users mailing list