[ncl-install] Fwd: Re: [Fwd: Golden]

Gregory S. Duane Gregory.Duane at Colorado.EDU
Wed May 13 14:43:52 MDT 2009


Hi Mary:


>As a side, exactly what does the following echo back:
>
>   nm /usr/local/ncl_ncarg-5.1.0DaP/lib/libncarg.a  | grep plchhq
>   nm /usr/local/ncl_ncarg-5.1.0DaP/lib/libncarg.a  | grep cpezct
>

They both say "no such file"

I believe we are indeed missing libraries. So what do we do?

Rob isn't here right now, but according to his email below,
we did compile with -fno-underscoring.

Greg





>
>On Wed, 13 May 2009, Gregory S. Duane wrote:
>
>> To whom it may concern:
>>
>> We are having trouble installing NCAR Graphics in a linux
>> enviroment at U. Miami, as per the following email, even
>> though the software indicates successful installation.
>>
>> More about the envrionment: It is x86_64  and I believe
>> the version information is contained in
>> "2.6.22.19-0.1-default #1 SMP"
>>
>> The error messages in compilation are listed below.
>>
>> Please advise if you can.  Thanks.
>>
>> Greg Duane
>>
>> ---- Original message ----
>>> Date: Tue, 12 May 2009 16:36:08 -0400
>>> From: Robert Burgman <rburgman at rsmas.miami.edu>
>>> Subject: Re: [Fwd: Golden]
>>> To: "Gregory S. Duane" <Gregory.Duane at Colorado.EDU>
>>>
>>> Hi Greg,
>>>
>>>  I am not having much luck compiling the code beyond these changes.
>>> I am using gfortran for the compilation.
>>> I am using the option -fno-underscoring, this reduces the errors
>>> significantly
>>> Libraries you were calling in /usr/X11R6/lib64   are found in /usr/lib64
>>>
>>> so i am calling
>>>
>>> gfortran -fPIC -fno-f2c -fno-underscoring -O qgpvx.varc.AM.f -L/usr/
>>> local/ncl_ncarg-5.1.0DaP/lib -L/usr/lib64 -lncarg -lncarg_gks -
>>> lncarg_c -lX11 -lXext -lpng -lz
>>>
>>>
>>> and am given the following errors.
>>>
>>>
>>> /tmp/cc495DN9.o: In function `pltcs':
>>> qgpvx.varc.AM.f:(.text+0x8130): undefined reference to `plchhq'
>>> qgpvx.varc.AM.f:(.text+0x8160): undefined reference to `cpezct'
>>> /tmp/cc495DN9.o: In function `force':
>>> qgpvx.varc.AM.f:(.text+0x8c10): undefined reference to `cpezct'
>>> /tmp/cc495DN9.o: In function `MAIN__':
>>> qgpvx.varc.AM.f:(.text+0xd982): undefined reference to `opngks'
>>> qgpvx.varc.AM.f:(.text+0xd99f): undefined reference to `pcseti'
>>> qgpvx.varc.AM.f:(.text+0xedc4): undefined reference to `clsgks'
>>> collect2: ld returned 1 exit status
>>>
>>>
>>> The "undefined references to 'xxxxxxx'"
>>>   makes me think there are errors with the underscores. All of these
>>> references are in the
>>> /usr/local/ncl_ncarg-5.1.0DaP/lib/libncarg.a  library.
>>>
>>>
>>>
>>> On May 12, 2009, at 10:30 AM, Gregory S. Duane wrote:
>>>
>>>> Rob:
>>>>
>>>> I've tried all three of these. I always get "undefined
>>>> reference" messages in ld to various NCAR graphics
>>>> subroutines.  -on my way to U. Miami now  -Greg
>>>>
>>>> ---- Original message ----
>>>>> Date: Tue, 12 May 2009 08:33:43 -0400 (EDT)
>>>>> From: rburgman at rsmas.miami.edu
>>>>> Subject: Re: [Fwd: Golden]
>>>>> To: "Gregory S. Duane" <Gregory.Duane at Colorado.EDU>
>>>>>
>>>>> Hi Duane,
>>>>> To complile the fortran code qgpvx.varc.AM.f you can use
>>>>>
>>>>> /usr/bin/gcc (which includes g77),
>>>>>
>>>>> /opt/intel/fce/10.1.015/bin/ifort,
>>>>>
>>>>> or
>>>>>
>>>>> /usr/bin/gfortran
>>>>>
>>>>>
>>>>>
>>>>>> Rob:
>>>>>>
>>>>>> But how would I actually compile code, such as qgpvx.varc.AM.f
>>>>>> in my home directory? When I type ncargf90 qgpvx.varc.AM.f,
>>>>>> I get:
>>>>>>
>>>>>> g77 -fPIC -fno-f2c -fno-second-underscore -O qgpvx.varc.AM.f
>>>>>> -L/usr/local/ncl_nc
>>>>>> arg-5.1.0DaP/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -
>>>>>> lX11
>>>>>> -lXext -
>>>>>> lpng -lz
>>>>>> g77: Command not found.
>>>>>>
>>>>>> Greg
>>>>>>
>>>>>> ---- Original message ----
>>>>>>> Date: Mon, 11 May 2009 17:39:41 -0400
>>>>>>> From: Robert Burgman <rburgman at rsmas.miami.edu>
>>>>>>> Subject: Re: [Fwd: Golden]
>>>>>>> To: "Gregory S. Duane" <Gregory.Duane at Colorado.EDU>
>>>>>>>
>>>>>>> HI Greg,
>>>>>>> If you set up your path and NCARG_root as seen below you should be
>>>>>>> ready to run ncar graphics from you command line.
>>>>>>>
>>>>>>> For example in .bashrc
>>>>>>>
>>>>>>> PATH="/usr/local/ncl_ncarg-5.1.0DaP/bin:"
>>>>>>>
>>>>>>> export NCARG_ROOT=/usr/local/ncl_ncarg-5.1.0DaP;
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> The .hluresfile is just a preference file, I downloaded the
>>>>>>> following
>>>>>>> example from the web.
>>>>>>>
>>>>>>> !=========================================
>>>>>>> ! comments for ".res" files are preceded by a "!"
>>>>>>> ! remember quotations are not used in .res files
>>>>>>>
>>>>>>> ! White background/black foreground
>>>>>>> *wkForegroundColor  : (/0.,0.,0./)
>>>>>>> *wkBackgroundColor  : (/1.,1.,1./)
>>>>>>>
>>>>>>> *wkColorMap         : rainbow+gray
>>>>>>>
>>>>>>> ! Font stuff
>>>>>>> *Font           : helvetica
>>>>>>>
>>>>>>> ! Function Codes [Default is a colon ]
>>>>>>> *TextFuncCode               : ~
>>>>>>>
>>>>>>> ! Make default X11 window larger (adjust as necessary)
>>>>>>> *wkWidth                     : 800
>>>>>>> *wkHeight                    : 800
>>>>>>>
>>>>>>> ! Have a favorite colormap that you use for everything? You can
>>>>>>> ! make it your default here (note the name is NOT in quotes):
>>>>>>> ! *wkColorMap  : temp1
>>>>>>>
>>>>>>> ! Increase the default (16mb) contour memory
>>>>>>> ! If you gave gridded data > 500 x 500, you may need this
>>>>>>> *wsMaximumSize: 32556688
>>>>>>> !==========================================
>>>>>>>
>>>>>>> I don't know if it is necessary or not, you can just copy the text
>>>>>>> above into the file and make changes as you wish.
>>>>>>>
>>>>>>> Hope this helps,
>>>>>>> Rob
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On May 11, 2009, at 3:17 PM, Gregory S. Duane wrote:
>>>>>>>
>>>>>>>> Dear Rob:
>>>>>>>>
>>>>>>>> I assume you are the contact point for this.  I am leaving
>>>>>>>> for the airport very soon, and may want to work on this
>>>>>>>> late this evening, so I thought it might help to ask a few
>>>>>>>> simple questions now.
>>>>>>>>
>>>>>>>> 1) Do I need NCL to run NCAR graphics subroutines?
>>>>>>>>
>>>>>>>> 2) Could you quickly tell me what NCARG ROOT should be set to?
>>>>>>>>
>>>>>>>> 3) Do I really need an hluresfile?
>>>>>>>>
>>>>>>>> Note that I do *not* need access data at NCAR or anywhere
>>>>>>>> else.  I just to use NCAR graphics subroutines and idt.
>>>>>>>> -leaving now.  Thanks.
>>>>>>>>
>>>>>>>> Greg
>>>>>>>>
>>>>>>>>
>>>>>>>> ---- Original message ----
>>>>>>>>> Date: Sat, 9 May 2009 07:52:58 -0400 (EDT)
>>>>>>>>> From: "Ben Kirtman" <bkirtman at rsmas.miami.edu>
>>>>>>>>> Subject: [Fwd: Golden]
>>>>>>>>> To: Gregory.Duane at Colorado.EDU
>>>>>>>>>
>>>>>>>>> I have not look into this yet, so this is all I know. -Ben
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------- Original Message
>>>>>>>>> ----------------------------
>>>>>>>>> Subject: Golden
>>>>>>>>> From:    "Robert Burgman" <rburgman at rsmas.miami.edu>
>>>>>>>>> Date:    Fri, May 8, 2009 3:40 pm
>>>>>>>>> To:      "Ben Kirtman" <bkirtman at rsmas.miami.edu>
>>>>>>>>> --------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> We are in business, he will have to get set up on Pacifix
>>>>>>>>> ( paths,
>>>>>>>>> preferences etc)
>>>>>>>>>
>>>>>>>>> software is located in /usr/local/ncl_ncarg-5.1.0DaP/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Here is the link for setup.
>>>>>>>>>
>>>>>>>>> http://www.ncl.ucar.edu/get_started.shtml#SetUpEnvironment
>>>>>>>>>
>>>>>>>>> We have the OPENDAP version installed so he can access data at
>>>>>>>>> NCAR
>>>>>>>>> or
>>>>>>>>> wherever via URLs.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -Rob
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --------------------------------------------------
>>>>>>>>> Robert Burgman
>>>>>>>>> Division of Meteorology and Physical Oceanography
>>>>>>>>> Rosenstiel School of Marine and Atmospheric Science
>>>>>>>>> University of Miami
>>>>>>>>> 4600 Rickenbacker Causeway
>>>>>>>>> Miami, FL 33149
>>>>>>>>>
>>>>>>>>> Tel:        (305) 421-4272
>>>>>>>>> Fax:       (305) 421-4696
>>>>>>>>> Email:    rburgman at rsmas.miami.edu
>>>>>>>>> ---------------------------------------------------
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Ben Kirtman
>>>>>>>>> Professor of Meteorology and Physical Oceanography
>>>>>>>>> Rosenstiel School for Marine and Atmospheric Science
>>>>>>>>> University of Miami
>>>>>>>>> 4600 Rickenbacker Causeway
>>>>>>>>> Miami, Florida 33149-1031
>>>>>>>>> Phone: 305-421-4046
>>>>>>>>> Fax: 305-421-4696
>>>>>>>>>
>>>>>>>
>>>>>>> --------------------------------------------------
>>>>>>> Robert Burgman
>>>>>>> Division of Meteorology and Physical Oceanography
>>>>>>> Rosenstiel School of Marine and Atmospheric Science
>>>>>>> University of Miami
>>>>>>> 4600 Rickenbacker Causeway
>>>>>>> Miami, FL 33149
>>>>>>>
>>>>>>> Tel:        (305) 421-4272
>>>>>>> Fax:       (305) 421-4696
>>>>>>> Email:    rburgman at rsmas.miami.edu
>>>>>>> ---------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ----------------------------------------------------
>>>>> Dr. Robert Burgman
>>>>> Division of Meteorology and Physical Oceanography
>>>>> Rosenstiel School of Marine and Atmospheric Science
>>>>> University of Miami MPO, MSC 237
>>>>> 4600 Rickenbacker Causeway
>>>>> Miami, FL 33149
>>>>>
>>>>> Tel:        (305) 421-4272
>>>>> Fax:       (305) 421-4696
>>>>> Email:    rburgman at rsmas.miami.edu
>>>>> ---------------------------------------------------
>>>>>
>>>>>
>>>
>>> --------------------------------------------------
>>> Robert Burgman
>>> Division of Meteorology and Physical Oceanography
>>> Rosenstiel School of Marine and Atmospheric Science
>>> University of Miami
>>> 4600 Rickenbacker Causeway
>>> Miami, FL 33149
>>>
>>> Tel:        (305) 421-4272
>>> Fax:       (305) 421-4696
>>> Email:    rburgman at rsmas.miami.edu
>>> ---------------------------------------------------
>>>
>>>
>>>
>>>
>>>
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>
>_______________________________________________
>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