[ncl-install] Mailman privacy alert
Mary Haley
haley at ucar.edu
Fri Jun 14 09:40:23 MDT 2013
Nabi,
You can't just type
ncargf90
on a line by itself. Same for ncargf77. You have to give both of these commands a Fortran code to compile.
The better test to run is:
ncargex agex01 -clean
This will copy a Fortran code called "agex01.f" to your directory, and it will use "ncargf77" to compile it as follows:
ncargf77 -o agex01 agex-01.f
If you are only interested in using "ncl", then it is not important that you get ncargf90 and ncargf77 to work. These commands are only for people who are still writing Fortran codes that call the old NCAR Graphics routines.
On another note, you downloaded a rather old version of NCL. Please try downloading the latest version, V6.1.2, which uses gfortran instead of g77.
Did you download the old version because you have an old version of gfortran? If so, I highly recommend upgrading your version of gfortran.
We don't even use g77 anymore, and we are now on gfortran Version 4.x.
--Mary
On Jun 11, 2013, at 10:51 PM, Nabi Rasool wrote:
> Hi My dear friends,
>
> as iam new for linux, I hv download ncl_ncarg-5.1.0.Linux_i686_gcc346.tar.gz bin file
>
> and i hv kept in /opt/
> while iam compiling ncl its working fine. but while compailing ncargf90 and ncargf77 its getting error like this
>
> [root at localhost ~]# ncargf90
> g77 -fPIC -fno-second-underscore -O -L/opt/ncl/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz
> /usr/lib/gcc/i386-redhat-linux/3.4.6/libfrtbegin.a(frtbegin.o): In function `main':
> (.text+0x35): undefined reference to `MAIN__'
> collect2: ld returned 1 exit status
> [root at localhost ~]# ncargf77
> g77 -fPIC -fno-second-underscore -O -L/opt/ncl/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz
> /usr/lib/gcc/i386-redhat-linux/3.4.6/libfrtbegin.a(frtbegin.o): In function `main':
> (.text+0x35): undefined reference to `MAIN__'
> collect2: ld returned 1 exit status
>
>
> Thanks in advance
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list