[RegCNET] Hi, everybody.

Niran MATTHEW abefematt at yahoo.com
Mon Oct 26 10:30:49 CET 2009


Hi John Lee.

Try to make the following steps:
1change directory to Terrain
cd /../Regcm/Preproc/Terrain
2.copy apropriate makefile for your machine to Makefile (For example I am using Intel Fortran compiler :IFC)
cp Makefile_IFC8 Makefile
3. edit Makefile as thus
gedit Makefile &
include the full path of your netcdf library dir by changing 
 -L../../Commons/env/libinux/ -lnetcdf       to
-L /usr/local/netcdf/lib/  -lnetcdf
Note: My own netcdf lib path is /usr/local/netcdf/lib
4. save the changes and run terrain.x

If you do not have netcdf lib download it, untar and place it possibly in the same directory as mine.
You need to edit other Makefiles in the later stage of the preprocessing to include the full paths of your netcdf lib and liblinux.

Best of luck.

Niran Matthew

--- On Mon, 10/26/09, John Lee <popopo17 at gmail.com> wrote:

From: John Lee <popopo17 at gmail.com>
Subject: [RegCNET] Hi, everybody.
To: regcnet at lists.ictp.it
Date: Monday, October 26, 2009, 1:33 AM



  Hi, I am trying to run RegCM3, but having trouble in the beginning part of executing the terrain.x*.  I get the following message after running terrain.x* :

        ./terrain.x: line 1: sentenv: command not found

         rm -f *.o terrain
         pgf77 -01 -bytewwapio -Ktrap=fp -L../../Commons/env/libinux/ -lnetcdf -c -o terrain.o terrain.f

         terrain.f:
         pgf77 -01 -byteswapio -Ktrap=fp -o terrain terrain.o -L../../Commons/env/libinux/ -lnetcdf

         /usr/bin/ld: skipping incompatible ../../Commons/env/libinux//libnetcdf.a when searching for -lnetcdf
         /usr/bin/ld: cannot find -lnetcdf

         make: *** [terrain] Error 2
         ./terrain/x: line 16: ./terrain: No such file or directory


  Would you please let me know what I should be correcting or changing not to get this message?  Thank you very much for your time and cooperation.  

  

  Sincerely,
  John Lee

   







Jong-Hyung Lee, M.S.
Research Scientist
Korea Ocean Research & Development Institute
ANSAN P.O. Box 29, 425-600
KOREA
Tel: 010-7488-4623
E-mail:popopo17 at gmail.com



-----Inline Attachment Follows-----

_______________________________________________
RegCNET mailing list
RegCNET at lists.ictp.it
https://lists.ictp.it/mailman/listinfo/regcnet


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20091026/2854d74b/attachment.html>


More information about the RegCNET mailing list