The library you need is libpvfs2.so. To build this library, configure
OrangeFS (pvfs2) with the --enable-shared option. The libraries are
installed to the <OrangeFS install>/lib directory.

To compile MPI programs, you will have to link to the pvfs2 libraries.
OpenMPI is similar.

*cc* mytest.c -o mytest -L /*orangefs_install_dir*/lib -L /
*mpich2_install_dir*/lib -I /*orangefs_install_dir*/include -I /
*mpich2_install_dir*/include  -lpvfs2 -lmpich

Jim


On Thu, Apr 24, 2014 at 9:42 AM, xihuang sun <[email protected]> wrote:

> I am compiling some mpi programs and I get these errors.
> -------
> /usr/bin/ld: cannot find -lpvfs2
> collect2: ld return 1
> make: *** [IMAGERESAMPLE_DMC4] Error 1
> -------
>
> when compiling with intel mpi(impi) everything goes fine.
>
> but when I changed to mpich2 this error comes out.
>
> To check whether some pvfs2.so like things exist I use 'locate pvfs2', and
> only find the libmpi_pvfs2.so in intel mpi lib directory, but I'm not sure
> whether this matters.
>
> Or some extra configuration needed before I compile & use mpich2?
> How about Openmpi since I need infiniband support?
>
>
> Thanks a lot.
>
> _______________________________________________
> Pvfs2-users mailing list
> [email protected]
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
>
>
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to