Error in building

Kui Gao kgao0827 at gmail.com
Tue Sep 6 17:32:14 CDT 2011


Hi Alex,

	The process is as follows usually.

	Step 1: Get the pnetCDF source code

	Step 2: aclocal && autoconf && autoheader

        Step 3: ./configure --prefix=your_prefix_install_path --enble-fortran --enable-mpi-io-test --with-mpi=your_mpi_path(/usr/local/bin) CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ FC=/usr/local/bin/gfortran F90=/usr/local/bin/gfortran MPICC=/usr/local/bin/mpicc MPICXX=/usr/local/bin/mpicxx MPIF77=/usr/local/bin/mpif77 MPIF90=/usr/local/bin/mpif90	

	Please change "gcc", "g++" ... to your complier if possible.
 	
	step 4: make

	step 5: make install
	
	please try it again. 

	Thanks,

Kui.

On Sep 6, 2011, at 5:14 PM, Alessandro Marinoni wrote:

> Hi
> 
> I'm trying to compile pnetcdf-1.2 with mpich2 but I get the following error:
> 
>   checking sizeof MPI_Offset... ./configure: line 11628: -c: command not found
>   configure: error: Unable to compile or link the test program
> 
> Does anybody know how to solve it, or, at least, how to force configure to go to the end?
> Thanks in advance
> 
> Alex
> 
> 



More information about the parallel-netcdf mailing list