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

970721: problems installing netcdf on sun ultra II



Dear Paramesh,

>Date: Fri, 21 Jul 95 15:57:47 PDT 
>From: address@hidden
>Organization: 
>To: address@hidden
>Keywords: 199707161628.KAA18287

In the above message, you wrote:

> Yes, I have tested the c compiler and it working for 
> small programs, but I don't know about large programs, as 
> I have not tested any. I have tested by writing cc -o test test.c and
> it is working fine.
> 
> >You might try a symbolic link:
> >
> >    cd SUNWspro/bin
> >    ln -s ../SC4.0/bin/ccfe ccfe
> >
> >This would allow for the discovery of the "ccfe" utility in the
> >"SUNWspro/bin" directory.
> 
> 
> As suggested, I tried the symbolic link for ccfe and it worked.

Great!

> 
> Now the problem is different. It is giving an error as "Cannot find
> ../SUNWspro/bin/iropt." Again this iropt is in ../SUNWspro/SC4.0/bin and 
> netcdf is looking for it in ../SUNWspro/bin.

The netCDF package isn't looking for the "iropt" utility.  Your build
system (i.e. proprocessor, compiler, optimizer, linker, etc.) is looking
for it and, apparently, can't find it.  I don't understand why it would
be looking for something with a "../" prefix though -- that would
indicate that it thinks it's in an immediate subdirectory of "opt/",
which seems very odd since the utilities are in "/opt/SUNWspro/bin" or
"/opt/SUNWspro/SC4.0/bin".

I still think something's wrong with your development environment.
Until it's fixed, I doubt that much of anything will work correctly.

Our systems administrator thinks that one possibility is that a bunch of
symbolic links in /opt/SUNWspro/bin were removed.

> 
> I tried the symbolic link for iropt, but now it isnot working.
> 
> Can you help me.

Try adding /opt/SUNWspro/SC4.0/bin to your PATH environment variable so
that the utilities it contains can be found: e.g.

    From a csh(1)-like shell:

        set path=($path /opt/SUNWspro/SC4.0/bin)

    From a POSIX shell (e.g. sh(1), ksh(1), bash(1)):

        PATH=$PATH:/opt/SUNWspro/SC4.0/bin export PATH

Then do the following:

    1.  Go to the top-level source directory.

    2.  Remove the file "config.cache" if it exists.

    3.  Execute the configure script.
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

    4.  Execute the command "make".
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

    5.  Execute the command "make test".
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

    6.  Execute the command "make install".
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

> Is it possible to change the configuration file which configure 
> uses to install netcdf?

Though it is possible to change the configuration file, it won't do any
good because the problem has to do with compilation, which still has to
be done in order to build the netCDF package even if the configuration
step if bypassed.

--------
Steve Emmerson   <http://www.unidata.ucar.edu>