# Problems installing on CentOS 7 using yum repo

**URL:** <https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117>\
**Category:** Q&A\
**Created:** [November 26, 2019, 11:09pm UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117 "2019-11-26T23:09:58Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![gito](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/gito/32/209_2.png) [@gito](https://forum.generic-mapping-tools.org/u/gito)\
**Post date:** [November 26, 2019, 11:09pm UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/1 "2019-11-26T23:09:59Z")

</div>

I installed gmt from the repo, using yum as instructed on [https://github.com/GenericMappingTools/gmt/blob/master/INSTALL.md#rhelcentos](https://github.com/GenericMappingTools/gmt/blob/master/INSTALL.md#rhelcentos). Everything seemed to go smoothly as there were no errors during installing. The executible /usr/bin/gmt is present. But I get no output. Typing “gmt” or “gmt blockmean” produces nothing: no error, no documentation, just a blank. Suggestions?

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 27, 2019, 12:43am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/2 "2019-11-27T00:43:28Z")

</div>

Please run `gmt --version -Vd` and post the output.

---

<div class="post-metadata">

**Author:** ![gito](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/gito/32/209_2.png) [@gito](https://forum.generic-mapping-tools.org/u/gito)\
**Post date:** [November 27, 2019, 2:28am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/3 "2019-11-27T02:28:40Z")

</div>

![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/6537e62891a5a172b29f045d085dbbc30e97f423.png)

---

<div class="post-metadata">

**Author:** ![gito](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/gito/32/209_2.png) [@gito](https://forum.generic-mapping-tools.org/u/gito)\
**Post date:** [November 27, 2019, 2:29am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/4 "2019-11-27T02:29:40Z")

</div>

![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/d3bcf56f9f94e99bdee9ad93c1c5a5d99d80412f.png)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 27, 2019, 2:45am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/5 "2019-11-27T02:45:30Z")

</div>

Garrett, those instructions are for GMT 6.0.0 but your terminal is showing GMT\_5.4 stuff. Mixup of instructions and previous GMT version installed?

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 27, 2019, 2:45am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/6 "2019-11-27T02:45:39Z")

</div>

OK, the problem is, you have some old GMT4 files in the /usr/share/GMT\_4.5 directory. For some unknown reasons, GMT6 is trying to read the old GMT4 share directory, which causes corruptions. A possible reason is that you have environmental variable GMT\_SHAERDIR set to /usr/share/GMT\_4.5. The simplest solution is to remove the old GMT4 share directory.

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 27, 2019, 2:48am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/7 "2019-11-27T02:48:00Z")

</div>

@pwessel for such case, is it possible to let GMT report error messages instead of a silent crash

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 27, 2019, 2:49am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/8 "2019-11-27T02:49:19Z")

</div>

Suggestions for how? We could check if “5.4” is part of any of the environmental parameters and use that?

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 27, 2019, 2:54am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/9 "2019-11-27T02:54:04Z")

</div>

I remembered there was a VERSION file in GMT’s share directory, but it’s not there now.

Actually, I don’t understand why GMT6 fails when using GMT5 share directory. The contents of share directory are almost the same for GMT5 and GMT6, right?

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 27, 2019, 3:00am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/10 "2019-11-27T03:00:33Z")

</div>

So gmt reports “Enter: PSL\_beginsession” and crashes. Something must happen in the PSL\_beginsession. If GMT can catch it, then it can report some useful messages.

---

<div class="post-metadata">

**Author:** ![gito](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/gito/32/209_2.png) [@gito](https://forum.generic-mapping-tools.org/u/gito)\
**Post date:** [November 27, 2019, 3:03am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/11 "2019-11-27T03:03:42Z")

</div>

THANK you. I removed the problematic environmental variables and all seems to be working.

---

<div class="post-metadata">

**Author:** ![gito](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/gito/32/209_2.png) [@gito](https://forum.generic-mapping-tools.org/u/gito)\
**Post date:** [November 27, 2019, 3:05am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/12 "2019-11-27T03:05:41Z")

</div>

FYI GMT6 would not install using yum with GMT5 on the computer (got a conflict with a GMT 5 library)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 27, 2019, 3:12am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/13 "2019-11-27T03:12:20Z")

</div>

> [@seisman](#):
>
> Enter: PSL\_beginsession

There is a call to psl\_init\_fonts that reads and initializes fonts but if the path is not found there is no error message, and it may quietly crash further down because it sets

```
PSL->internal.N_FONTS = n_PSL_fonts = i = PSL_N_STANDARD_FONTS;

```

but if the path is not found then things may be uninitialized.

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [November 27, 2019, 3:31am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/14 "2019-11-27T03:31:59Z")

</div>

It’s weird. I set GMT\_SHAREDIR to GMT4 or GMT5’s share directory, and ran the gmt command from GMT6. Both work without any crashes.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [November 27, 2019, 11:01am UTC](https://forum.generic-mapping-tools.org/t/problems-installing-on-centos-7-using-yum-repo/117/15 "2019-11-27T11:01:00Z")

</div>

`gmt_init` says

```auto
	/* Then any custom fonts:
	   To add additional fonts, create a file called PSL_custom_fonts.txt
	   in GMT/share/postscriptlight and add your extra font information there.
	   The fontheight below is the height of A for unit fontsize.
	   Encoded = 0 if we may re-encode this font as needed. */

```

so since it found a dir called `share/postscriptlight` it is trying to find the `PSL_custom_fonts.txt` file and maybe it finds something, who knows.
