how to solve %GTM-E-GDINVALID, Unrecognized Global Directory file format: mumps.gld, expected label: GTCGBDUNX007, found: GTCGBDUNX006?

StackOverflow https://stackoverflow.com/questions/9427557

  •  12-11-2019
  •  | 
  •  

Question

I am getting this error with gt.m

%GTM-E-GDINVALID, Unrecognized Global Directory file format: /home/blah/gt.m/example/mumps.gld, expected label: GTCGBDUNX007, found: GTCGBDUNX006

Here is what I did so far :

get the version http://sourceforge.net/projects/fis-gtm/

tar -xzf gtm_V55000_linux_i686_pro.tar.gz 

chmod +x semstat2 mupip mumps lke gtmsecshr gtcm_shmclean gtcm_server gtcm_play gtcm_pkdisp gtcm_gnp_server geteuid ftok dse

Now we start like this in bash

mkdir example; cd example

and invoke the mumps from the parent dir,

../mumps -r GDE

the output is this

%GDE-I-GDUSEDEFS, Using defaults for Global Directory 
 /home/blah/gt.m/example/mumps.gld

now we set the working dir to create the gld file

GDE>  change -s DEFAULT -f=/home/blah/gt.m/gt.m/example/
GDE> exit

The output from the command is this :

%GDE-I-VERIFY, Verification OK %GDE-I-GDCREATE, Creating Global Directory file /home/blah/gt.m/example/mumps.gld

now this creates a v6 version of gld, which mupip does not like.

strings mumps.gld  | head -1

which contains this string :

GTCGBDUNX006H

But mupip expects a 7 not a 6!

../mupip create

>%GTM-E-GDINVALID, Unrecognized Global Directory file format: >/home/blah/gt.m/example/mumps.gld, expected label: GTCGBDUNX007, found: GTCGBDUNX006

If i just edit the file and replace the 6 with a 7, ../mupip create This works!

Now i have a dat file, and go to gtm to save something : GTM>s ^foo("blah")=1

%GTM-E-GDINVALID, Unrecognized Global Directory file format: >/home/blah/gt.m/example/mumps.gld, expected label: GTCGBDUNX006, found: GTCGBDUNX007

Oh so that wants a v6, so good thing i backed up the old, one, i replace it .

GTM>s ^foo("blah")=1

that works GTM>zwr ^foo(*)

>^foo("blah")=1

So the data is stored.

Can anyone please explain this? in detail? why does mupip operate with a different version number? note, I did not run any other commands, I am just learning and dont want to execute any huge install routines a root that I dont understand.

Was it helpful?

Solution

You either have GT.M already installed (and I would guess it is an older version) on your system somewhere else and have some environment variable defined for it in your bash/tcsh/*sh environment, or you didn't provide all the step you did to get to that error.

My guess is that you already have GT.M installed somewhere and your above commands uses part of that installation. You can easily verify this using this command : env | grep gtm.

If I follow your steps mentioned above, I get this result :

laurent@laurent /tmp/test $ tar -zxf ~/Projects/gtm_V55000_linux_i686_pro.tar.gz
laurent@laurent /tmp/test $ chmod +x semstat2 mupip mumps lke gtmsecshr gtcm_shmclean gtcm_server gtcm_play gtcm_pkdisp gtcm_gnp_server geteuid ftok dse
laurent@laurent /tmp/test $ mkdir example; cd example
laurent@laurent /tmp/test/example $ ../mumps -r GDE
%GTM-E-GTMDISTUNDEF, Environment variable $gtm_dist is not defined

So, I as said, you either did something else, or have a different GT.M version already installed and this is why some commands expect different versions of GLD.

OTHER TIPS

In your steps u don't show wether u installed or not GT.M.

That is only the unziped version, first:

    chmod 777 configure
    ./configure

The installation will produce new files in the gtm_dist directory.

Hope it helped.

As Bhaskar has noted in your cross post on Hardhats. Make sure you follow the installation instructions for GT.M. Instructions can be found in Chapter 2 of the UNIX Administration and Operations Guide

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top