# Installation problem in LINUx

**URL:** <https://forum.generic-mapping-tools.org/t/installation-problem-in-linux/3965>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [May 24, 2023, 10:59am UTC](https://forum.generic-mapping-tools.org/t/installation-problem-in-linux/3965 "2023-05-24T10:59:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivamshuklaz](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/shivamshuklaz/32/3126_2.png) [@shivamshuklaz](https://forum.generic-mapping-tools.org/u/shivamshuklaz)\
**Post date:** [May 24, 2023, 10:59am UTC](https://forum.generic-mapping-tools.org/t/installation-problem-in-linux/3965/1 "2023-05-24T10:59:03Z")

</div>

I just want to ask you that how i can install generic mapping tool LINUX.

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [May 24, 2023, 8:53pm UTC](https://forum.generic-mapping-tools.org/t/installation-problem-in-linux/3965/2 "2023-05-24T20:53:51Z")

</div>

OS? Need more info.

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [May 25, 2023, 9:42am UTC](https://forum.generic-mapping-tools.org/t/installation-problem-in-linux/3965/3 "2023-05-25T09:42:59Z")

</div>

I see now LINUx in title. Which distro?

If Debian, you could do `# apt install gmt`, but that’ll give you an old version (6.1.1).

My suggestion would be to build it yourself. This might work:

```auto
# apt install build-essential cmake libcurl4-gnutls-dev libnetcdf-dev libgdal-dev gdal-bin libfftw3-dev libpcre3-dev liblapack-dev libblas-dev libglib2.0-dev ghostscript
$ git clone https://github.com/GenericMappingTools/gmt
$ cd gmt
$ mkdir build
$ cmake --build . --parallel $(nproc)
# cmake --build . --target install --parallel $(nproc)

```

See [here](https://github.com/GenericMappingTools/gmt/wiki) for more.
