I’m not sure this question belongs in the Apps forum… I’ve been looking for a source of pertinent information on rpm’s in general. Right now, I need to know if the stock OpenSuSE12.1x64 NetCDF was compiled with both gFortran and OpenMPI support. Is there a generic online source of such information? This sort of thing usually is not carried in the YaST database and I haven’t found it anywhere else (like pbone).
I’ve seen some applications that let you find out at runtime what
compile options were there from the start, but I think that’s
application-specific. I would start, since this is RPM-based, by
checking the Source RPM file and viewing the SPEC file contained within.
For example, I pulled netcdf from the OpenSUSE Build Service and found
this line in the SPEC file:
That makes me think it is compiled with gfortran support, and I see
references to MPI in the file in the changelog (query from an installed
package with rpm -q --changelog packageNameHere) so I assume that’s
just there.
Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Hi Malcom - I tried doing this with HDF5 (I need it to be built to support MPI/parallel) - but couldn’t find a link to take me to the spec file: software.opensuse.org:
…there must be some place to click I’m forgetting because I remember figuring it out before. These “slick” interfaces tend to be nonintuitive unless you work with them all the time… How do I view a spec file again?
Well, I get as far as: openSUSE Build Service > Projects > devel:libraries:c_c++ > Packages > hdf5
but can’t find the link to the next step: openSUSE Build Service > Projects > devel:libraries:c_c++ > Packages > hdf5 > files
or to: openSUSE Build Service > Projects > devel:libraries:c_c++ > Packages > hdf5 > files > hdf5.spec
I guess being color-blind, I can’t see the links?
Oh, wait a second - I can get to openSUSE Build Service > Projects > devel:libraries:c_c++ > Packages > hdf5 > Sources
…and that seems to have the spec file in it. I would have never thought to look in “unstable” for a stock 12.1 package.
So - I do see mention of “parallel” in the spec file in a couple of places in the .spec file - does that mean it’s compiled with parallel support? (so I can use parallel-NetCDF)
Could it be? The netCDF.spec file says “parallel” - could it be the default OpenSuSE NetCFD is, in fact, a version of parallel-netcdf? If so, where is the pnetcdf.h file?
Hi
I would assume so, you would need to look at the source tarball readme
or other documentation to see the compile time options. Or else on the
OBS page fire an email off to the package maintainer to ask…
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 1 day 1:45, 3 users, load average: 0.00, 0.01, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU