Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

Re: problems with netcdf/Perl (-fPIC?)



Stephen,

>Date: Thu, 6 Oct 2005 13:16:32 -0700
>From: "Stephen C. Diggs" <sdiggs@xxxxxxxx>
>Organization: University of California at San Diego
>To: Steve Emmerson <steve@xxxxxxxxxxxxxxxx>
>Subject: Re: problems with netcdf/Perl (-fPIC?) 

The above message contained the following:

> Pardon my stupidity (and I've tried unsuccessfully to do this on my 
> own), but does one include the "-fPIC" flag to be used in either the 
> ./configure or the Makefile?
> 
> Back when makefiles were small and simple, but looking through the 
> ./configure file. it's not really obvious where to do this.  I suppose 
> I need the dance steps, not the overview.

I'm not one of the supporters of the netCDF package anymore, but I
suggest you try this:

    1.  Go to the top-level source-directory of the netCDF package.

    2.  Execute the command "make distclean".

    3.  Ensure that the environment variable CFLAGS contains the string
	"-fPIC", e.g.,

	    export CFLAGS=-fPIC

	depending on your user-shell.

    4.  Execute the commands "make" and "make install".

    5.  Go to the top-level source-directory of the netCDF-Perl package.

    6.  Execute the commands "make clean", "make", and (hopefully) "make
	install".

> thanks,
> -sd
> --
> ------------------------------------------------------
> Steve Diggs
> Scripps Institution of Oceanography
> CLIVAR and Carbon Hydrographic Data Office
> 9500 Gilman Drive
> La Jolla, CA 92093-0214
> +--
> Voice: (858)534-1108
> FAX  : (858)534-7383
> EMAIL	: sdiggs@xxxxxxxx
> WWW	: cchdo.ucsd.edu
[snip]

Regards,
Steve Emmerson


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690