[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #FUW-594270]: how to compile netcdf 3.6.2 on IBM Power5 Linux



> I searched the mailing lists but couldn't find an answer so after
> brute force, I compiled netcdf in my environment as follows:
>
> Environment
> - IBM POWER5 processors
> - Linux (SLES 9 in this case, but should be similar if not the same for
others)
> - compilers: IBM Compilers: xlf, xlc, etc
>
> Compilation Script:
>
> #!/bin/bash
> LOG=makelog.$$
> export CC=xlc_r
> export CXX=xlC_r
> export FC=xlf_r
> export F90=xlf90_r
> export CFLAGS="-q64 -O -qmaxmem=-1 -qarch=auto"
> export CXXFLAGS="-q64 -O -qmaxmem=-1 -qarch=auto"
> export CPPFLAGS="-D_LARGE_FILES -DNDEBUG -Df2cFortran"
> export FFLAGS="-q64 -O -qmaxmem=-1 -qarch=auto"
> export F90FLAGS="-q64 -qmaxmem=-1 -qarch=auto -qsuffix=f=f90"
> ./configure --prefix=/usr/local/netcdf64/64 2>&1 | tee  $LOG
> make  2>&1 | tee -a $LOG
> make install 2>&1 | tee -a $LOG
>
> Hope that helps other people.
>
> Vallard
>
>

Thanks! I have added this to our "other builds" page here:
http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#Linux_IBM

Keep on netCDFing!

Ed

Ticket Details
===================
Ticket ID: FUW-594270
Department: Support netCDF
Priority: Normal
Status: Closed