# Trying to install dependencies for build version six under Ubuntu 18.04 LTS

**URL:** <https://forum.generic-mapping-tools.org/t/trying-to-install-dependencies-for-build-version-six-under-ubuntu-18-04-lts/313>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [March 22, 2020, 2:59pm UTC](https://forum.generic-mapping-tools.org/t/trying-to-install-dependencies-for-build-version-six-under-ubuntu-18-04-lts/313 "2020-03-22T14:59:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendanjmeade](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/brendanjmeade/32/436_2.png) [@brendanjmeade](https://forum.generic-mapping-tools.org/u/brendanjmeade)\
**Post date:** [March 22, 2020, 2:59pm UTC](https://forum.generic-mapping-tools.org/t/trying-to-install-dependencies-for-build-version-six-under-ubuntu-18-04-lts/313/1 "2020-03-22T14:59:55Z")

</div>

Following instructions here: [http://gmt.soest.hawaii.edu/projects/gmt/wiki/BuildingGMT](http://gmt.soest.hawaii.edu/projects/gmt/wiki/BuildingGMT). I’ve tried apt installing using the following suggested command “sudo apt-get install subversion build-essential cmake libcurl4-gnutls-dev libnetcdf-dev libgdal1-dev libfftw3-dev libpcre3-dev liblapack-dev libblas-dev”

Upon running I get the following message which shows an error with libgdal1-dev

Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
E: Unable to locate package libgdal1-dev

I found some old issues on this but they are closed. Thoughts/help are very welcome.

---

<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:** [March 22, 2020, 4:57pm UTC](https://forum.generic-mapping-tools.org/t/trying-to-install-dependencies-for-build-version-six-under-ubuntu-18-04-lts/313/2 "2020-03-22T16:57:15Z")

</div>

Please follow the new instructions [https://github.com/GenericMappingTools/gmt/blob/master/BUILDING.md](https://github.com/GenericMappingTools/gmt/blob/master/BUILDING.md) here.

---

<div class="post-metadata">

**Author:** ![brendanjmeade](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/brendanjmeade/32/436_2.png) [@brendanjmeade](https://forum.generic-mapping-tools.org/u/brendanjmeade)\
**Post date:** [March 23, 2020, 2:17am UTC](https://forum.generic-mapping-tools.org/t/trying-to-install-dependencies-for-build-version-six-under-ubuntu-18-04-lts/313/3 "2020-03-23T02:17:54Z")

</div>

That helped a lot. Now from within Julia 1.2 I get:

julia\> using GMT  
[Info: Precompiling GMT [5752ebe1-31b9-557e-87aa-f909b540aa54]

julia\> plot(1:10, rand(10), lw=1, lc=:blue, fmt=:png, marker=:square,  
markeredgecolor=0, size=0.2, markerfacecolor=:red, title=“Hello World”,  
xlabel=“Spoons”, ylabel=“Forks”, show=true)  
ERROR: error compiling common\_plot\_xyz: error compiling gmt: could not load library “libgmt”  
libgmt.so: cannot open shared object file: No such file or directory

Progress but not sure what to do next.

---

<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:** [March 23, 2020, 3:01am UTC](https://forum.generic-mapping-tools.org/t/trying-to-install-dependencies-for-build-version-six-under-ubuntu-18-04-lts/313/4 "2020-03-23T03:01:43Z")

</div>

It’s Linux wonders

See the end of this topic [Psxy [ERROR]: Found no history for option -J](https://flint.soest.hawaii.edu/t/psxy-error-found-no-history-for-option-j/286/22)

You need to

```auto
using Libdl
push!(Libdl.DL_LOAD_PATH, “/path/to/your/gmt/lib”)

```

and better put it in `startup.jl`
