[ncl-install] "ncargex" and "ng4ex" commond not found

Ehsan Taghizadeh ehsantaghizadeh at yahoo.com
Sat Sep 27 11:31:05 MDT 2014


Mary,
Thank you for your replies.
I just want to say I did following works, but I didn't get any result.

[root at localhost ~]#  vi /usr/local/ncl-6.2.0/bin/ncargf77
In this file I see below line:

set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lXrender -lbz2"


I did two works separately.
1) !set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lXrender -lbz2" (I meant I add ! to comment this line.)

2) set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2" (I meant I remove "-liconv")

Neither of them get result and I have same problem with "ncargex" command. However I appreciate for your kindly replies, especially for your help to fix ncl.


I have another question from anyone could help me. I just don't know how to uninstall a program in linux, like "ncl".

Sincerely
Ehsan Taghizadeh



On Thursday, September 18, 2014 8:49 PM, Mary Haley <haley at ucar.edu> wrote:
 


Ehsan,

You can try editing $NCARG_ROOT/bin/ncargf77 with a UNIX editor and removing the reference to "-liconv".  It probably is not needed on your system.

By the way, I don't know if I already mentioned this, but if you just plan to use NCL, then it is not required that the "ncargex" command works. This command is for testing codes written in Fortran or C.

--Mary





On Sat, Sep 6, 2014 at 1:55 AM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com> wrote:

Mary, 
>
>Thanks a lot for your help. I put "export" commands in .bashrc file, and "ng4ex" command work correctly. However about "ncargex" command I have problem. Following are commands and their results. Could I fix "ncargex" command?
>
>
>
>[root at localhost ~]# ncargex cpex08 -clean
>
>NCAR Graphics Fortran  Example <cpex08>
>
>  Copying cpex08.f
>
>  Copying cpexcc.f
>
>Compiling and linking...
>gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl-6.2.0/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1
 -lfreetype -lexpat -lpng -lz -liconv -lXrender -lbz2
>/usr/bin/ld: cannot find -liconv
>collect2: ld returned 1 exit status
>
>The compile and link failed.
>
>
>
>[root at localhost ~]# ncargex 
>usage: ncargex [options] [example names]
>
> Options:
>
> To invoke various classes
 of examples:
>   [-A] [-E] [-F] [-P] [-T] [-U] [-ngmath] [-class] [-ps] [-x11]
>
> To invoke various utilities:
>   [-areas] [-autograph] [-bivar] [-colconv] [-conpack]     
>   [-conpackt] [-conran_family] [-conrec_family] [-csagrid] 
>   [-cssgrid] [-dashline] [-dashpack] [-dsgrid] [-ezmap]    
>   [-field_flow] [-fitgrid] [-gflash] [-gks] [-gridall]     
>   [-halftone] [-histogram] [-isosrfhr] [-isosurface]       
>   [-labelbar] [-natgrid] [-ngmisc]
 [-plotchar]             
>   [-polypack] [-pwrite_family]
 [-scrolled_title]           
>   [-seter] [-shgrid] [-softfill] [-spps] [-streamlines]    
>   [-surface] [-threed] [-vaspackt][-vectors] [-wmap]       
>   [-misc]                                                  
>
> Other options:
>   [-W workstation_type] [-n] [-clean] [-onebyone] names
>
>See <man ncargex>
 for explanation of options.
>
>Sincerely
>Ehsan
>
>
>
>
>On Friday, September 5, 2014 11:09 PM, Mary Haley <haley at ucar.edu> wrote:
> 
>
>
>Eshan,
>
>
>Try using the "export" commands, and put them in your .bashrc file. If this doesn't work you can try the .bash_profile file.
>
>
>--Mary
>
>
>
>
>
>On Thu, Sep 4, 2014 at 9:29 PM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com> wrote:
>
>After "ls -a" cammand, I see following files all together:
>>".cshrc", "tcshrc", ".bashrc", ".bash_profile"'. However I couldn't see ".profile".
>>For "setenv" command, I faced "command not found".
>>However I tested following commands, separately:
>>
>>                  export NCARG_ROOT=/usr/local/ncl-6.2.0
>>                  export PATH=$NCARG_ROOT/bin:$PATHthen logging out and logging back in, also
>>
>>                  NCARG_ROOT=/usr/local/ncl-6.2.0
>>                  PATH=$NCARG_ROOT/bin:$PATH
>>                  export NCARG_ROOT
>>                  export PATH
again logging out and logging back in.
>>Yet after "ncargex cpex08 -clean" I faced "bash: ncargex: command not found"
>>and after "ng4ex gsun01n -clean" I faced "bash: ng4ex: command not found".
>>
>>Sincerely
>>Ehsan Taghizadeh
>>
>>
>>
>>
>>
>>
>>On Thursday, September 4, 2014 11:34 PM, Mary Haley <haley at ucar.edu> wrote:
>> 
>>
>>
>>Please respond back to ncl-install at ucar.edu on all follow-up email, because I may not always be available for personal email questions.
>>
>>
>>It looks to me like the "Set the NCARG_ROOT and PATH environment variables to point to where the software was installed" instructions were not followed properly.
>>
>>
>>http://www.ncl.ucar.edu/Download/install.shtml#SetNCARG_ROOT
>>
>>
>>
>>Please read the instructions again, which explain the different shells (bourne shell, C shell), and which possible files you might need to edit. That is what I meant by ".*", because I don't know what the file is called on your system.
>>
>>
>>If you are dealing with bash, then the file is probably ".profile".
>>
>>
>>--Mary
>>
>>
>>
>>On Thu, Sep 4, 2014 at 12:14 PM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com> wrote:
>>
>>Mary,
>>>Thanks for your reply.
>>>1. I logging out and logging back in (also restart linux).
>>>2. I use Cent OS and via virtual machine (if it is important)
>>>3. I used your commands. Following are their results:
>>>   env | grep NCARG
>>>result: nothing was displayed.
>>>   which ncl
>>>result: "/usr/bin/which: no ncl in (/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/opt/pgi/linux86-64/11.7/bin:/usr/local/bin:/usr/local/include:/usr/local/lib:/usr/local/include/jasper:/root/bin:/opt/pgi/linux86-64/11.7/bin:/usr/local/bin:/usr/local/include:/usr/local/lib:/usr/local/include/jasper)"
>>>
>>>
>>>    echo $PATH
>>>result: "/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/opt/pgi/linux86-64/11.7/bin:/usr/local/bin:/usr/local/include:/usr/local/lib:/usr/local/include/jasper:/root/bin:/opt/pgi/linux86-64/11.7/bin:/usr/local/bin:/usr/local/include:/usr/local/lib:/usr/local/include/jasper"
>>>
>>>
>>>4. You told about .* file. Could you tell me which .* file? (NCARG_ROOT or PATH or other)
>>>
>>>
>>>5. In site at "Test your NCL/NCARG installation" section was written csh must be installed for those commands! What about bash? (However I think I have csh, tcsh, and bash. I just want to know)
>>>
>>>
>>>6. Doea only two export commands are install commands?
>>>
>>>
>>>
>>>Sincerely
>>>Ehsan
>>>
>>>
>>>
>>>On Thursday, September 4, 2014 8:54 PM, Mary Haley <haley at ucar.edu> wrote:
>>> 
>>>
>>>
>>>Ehsan,
>>>
>>>
>>>Did you try logging out and logging back in?  You need to do this after you edit any .* files to add the NCARG_ROOT and make the change to PATH.
>>>
>>>
>>>If you did logout and login again, and it's still not working, then I need more information. If you can type the following on the UNIX command, it will help:
>>>
>>>
>>>env | grep NCARG
>>>which ncl
>>>echo $PATH
>>>
>>>
>>>The "apt-get" command was just an example. It looks like you should be using "yum" instead.
>>>
>>>
>>>--Mary
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>On Thu, Sep 4, 2014 at 6:44 AM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com> wrote:
>>>
>>>Hi,
>>>>I saw below link to install ncl:
>>>>http://www.ncl.ucar.edu/Download/install.shtml
>>>>
>>>>I did step 1 (Extract the file) and 2 (Set the NCARG_ROOT and PATH environment variables)
>>>>I ignored step 3 (Set the DISPLAY environment variable)
>>>>I did step 4 (Put a ".hluresfile" file)
>>>>
>>>>However I have problem with step 5 (Test your NCL/NCARG installation)
>>>>About 'ncargex' and 'ng4ex' I faced "command not found"
>>>>About 'yum install tcsh' I faced :
>>>>"Package
 tcsh-6.17-24.el6.x86_64 already installed and latest version
>>>>Nothing to do"
>>>>
>>>>About 'sudo apt-get install csh' I faced :
>>>>"sudo: apt-get: command not found"
>>>>
>>>>I think I have bash.
>>>>
>>>>In summary I couldn't found that ncl has been installed (properly) or not.
>>>>
>>>>Sincerely
>>>>Ehsan Taghizadeh
>>>>
>>>>
>>>>_______________________________________________
>>>>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
>>
>>
>
>
>
>_______________________________________________
>ncl-install mailing list
>List instructions, subscriber options, unsubscribe:
>http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140927/5072711b/attachment-0001.html 


More information about the ncl-install mailing list