Re: ctrans: FATAL

From: Samrat Rao <samrat.rao_at_nyahnyahspammersnyahnyah>
Date: Wed, 29 Oct 2008 23:08:47 +0530

Hi Mary,
   Here is the output of the commands you asked me to type:

$: which ctrans
/usr/local/ncarg_5.0.0/bin/ctrans
$: printenv NCARG_ROOT
/usr/local/ncarg_5.0.0
$ ls -l $NCARG_ROOT/lib/ncarg/graphcaps
total 632
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 adm5
-rw-r--r-- 1 root root 56 2008-10-29 00:54 aed.a
-rw-r--r-- 1 root root 56 2008-10-29 00:54 aed.b
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 balsml
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 ditroff
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hp150
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hp2648a
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hp7475a
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hp7510a
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hpgl
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hpgl2
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hpgl2.dual
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hpgl2pe
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 hpgl2pe.dual
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 imagen
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 imagen.port
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 pc.mono
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 ps.color
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 ps.land.color
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 ps.land.mono
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 ps.mono
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 qms800
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 r6211
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 s100
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 t4010
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 t4025
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 t4105
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 t4107
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 t4107.seg
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 t4115
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 t4115.seg
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 tal1590
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 tekalike
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 versaterm
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 vt100
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 vt125
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 vt220
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 vt240
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 vt330
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 vt340
-rw-r--r-- 1 root root 14400 2008-10-29 00:54 vt340w

   I guess the read permissions are correct. Though i installed as root, i
do not login as root.

   Initially i downloaded the NCL-5.0.0 source code, compiled and installed
the necessary software, and then tried to compile NCL using combinations of
GNU's and Intel's compilers. Since each time i got 3-4 errors while
compiling the NCL source code, the build was not complete (i shall post the
difficulties in the appropriate forum). Then i installed NCL binary, got
compiler errors related to g77, and as you said, changed g77 to gfortran &
tried to use the options -lgcc and -lg2c, which did not work either, though
the libs are in path ie in /usr/lib (so no idea why the options are not
recognised). So finally i compiled NCL for NCAR Graphics, got no compile
time errors (i think), typed a few commands, got errors and posted the same
in this forum. Thats all i have to say.

On Wed, Oct 29, 2008 at 7:34 PM, Mary Haley <haley_at_ucar.edu> wrote:

> Samrat,
>
> It looks like either your graphcaps didn't get built properly, your
> NCARG_ROOT is not set correctly, or else your graphcaps don't have the
> proper read permissions. I'm guessing your graphcaps didn't get built
> properly.
>
> Can you type the following and send me the output:
>
> which ctrans
> printenv NCARG_ROOT
> ls -l $NCARG_ROOT/lib/ncarg/graphcaps
>
> Is there a reason you are building from source code rather than
> using a precompiled binary? Even though the binary was built with
> GNU-compilers, you can usually link to the libraries using other
> compilers.
>
> --Mary
>
> On Wed, 29 Oct 2008, Samrat Rao wrote:
>
> Hi,
>>
> I downloaded the NCL 5.0.0 source code and compiled it (using Intel's
> compilers) for NCAR Graphics. There was no error while compiling. But when
> i
> issued the commands:
>
> $: ncargex cpex08
> Some compiling is done, a metafile cpex08.ncgm is created, and then when i
> type
> $ ctrans -d X11 cpex08.ncgm
> I get the errors:
> ctrans: FATAL -
> open(/usr/local/ncarg_5.0.0/lib/ncarg/graphcaps/^Yï,O_RDONLY)
> ctrans: FATAL - Can't initialize
> device(/usr/local/ncarg_5.0.0/lib/ncarg/graphcaps/^Yï) [
> open(/usr/local/ncarg_5.0.0/lib/ncarg/graphcaps/^Yï,O_RDONLY) ]
>
>
> Similar errors occur for other examples also. Typing echo $DISPLAY on the
> command prompt give the following output
> :0.0 .This seems to be right. So how do i solve the problem?
>
> Thanks!
>
> --
>
> Samrat Rao
> Department of Mechanical Engineering
> Indian Institute of Science
> Bangalore - 560012, India
>

-- 
Samrat Rao
Department of Mechanical Engineering
Indian Institute of Science
Bangalore - 560012, India
Received on Wed Oct 29 2008 - 11:38:47 MDT

This archive was generated by hypermail 2.2.0 : Sat Nov 01 2008 - 07:16:33 MDT