# Install graphviz \> 2.30 on Amazon Linux 2

**URL:** <https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792>\
**Category:** Help\
**Created:** [August 30, 2021, 8:29am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792 "2021-08-30T08:29:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Julian](https://forum.graphviz.org/u/Julian)\
**Post date:** [August 30, 2021, 8:29am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/1 "2021-08-30T08:29:09Z")

</div>

Hey guys,

just wanted to ask what the best option is to install the most recent version of graphviz on Amazon Linux 2 EC2 Instance.  
When I do a yum list | grep graphviz there I´m getting just the 2.30 version which is from 2018 ☹

Thanks guys and Greetings,

Julian

---

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)\
**Post date:** [August 30, 2021, 8:55am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/2 "2021-08-30T08:55:14Z")

</div>

Is it a possibility to use a newer operating system? I think on EC2 you usually get to choose which OS you’re running?

If not, download the Graphviz source package and compile it on your machine? [https://graphviz.org/download/source/](https://graphviz.org/download/source/)

---

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)\
**Post date:** [August 30, 2021, 9:01am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/3 "2021-08-30T09:01:04Z")

</div>

Sometimes I wonder if we should offer a statically linked version of Graphviz for situations like this. It sure is convenient when using go-based tools to download a pre-compiled binary and just run it…

Not that I really know how to make that work though 🙂

---

<div class="post-metadata">

**Author:** ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)\
**Post date:** [August 30, 2021, 9:49am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/4 "2021-08-30T09:49:45Z")

</div>

I do. I have an upcoming MR that enables this in CI, but it’s queued behind a lot of other stuff. If there’s a strong interest to have it, I can prioritize it.

---

<div class="post-metadata">

**Author:** ![Julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Julian](https://forum.graphviz.org/u/Julian)\
**Post date:** [August 30, 2021, 10:09am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/5 "2021-08-30T10:09:25Z")

</div>

Hey there,

uhmmmm, I have a strong interest 😃 … not sure, if you need more guys with a “strong interest” to really push it forward in your queue.  
But in any way thanks for your reply…

---

<div class="post-metadata">

**Author:** ![Julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Julian](https://forum.graphviz.org/u/Julian)\
**Post date:** [August 30, 2021, 10:11am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/6 "2021-08-30T10:11:50Z")

</div>

for the time being we installed docker on the ec2 machine and used an apline linux to get a newer version there.  
Now we at least have 2.47.

---

<div class="post-metadata">

**Author:** ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)\
**Post date:** [August 30, 2021, 3:20pm UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/7 "2021-08-30T15:20:12Z")

</div>

I have had multiple requests – both public and private – for a static binary. Part of this surely stems from the major Linux package ecosystems only having outdated versions of Graphviz. It would be great to see updated Graphviz versions in these package repositories, but we rely on downstream volunteers to do this work.

---

<div class="post-metadata">

**Author:** ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)\
**Post date:** [August 30, 2021, 4:29pm UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/8 "2021-08-30T16:29:57Z")

</div>

I’m looking into this now.

---

<div class="post-metadata">

**Author:** ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)\
**Post date:** [September 1, 2021, 7:13pm UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/9 "2021-09-01T19:13:01Z")

</div>

I’ve submitted a draft MR now, but we need sort out at least one problem before we can merge it.

> **[Add static build for Ubuntu 21.04 to CI (!2134) · Merge requests · graphviz /...](https://gitlab.com/graphviz/graphviz/-/merge_requests/2134)**
>
> I need some advice on this. As you can see, the new job builds fine but fails during install because it tries to install non-existent shared...

---

<div class="post-metadata">

**Author:** ![graeme](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graeme](https://forum.graphviz.org/u/graeme)\
**Post date:** [August 26, 2022, 1:07pm UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/10 "2022-08-26T13:07:42Z")

</div>

Any tips on building from source? I’m also trying to deploy on Amazon Linux 2 (elastic beanstalk), the default configuration does install, but when I try and import in python, it can’t find gvFreeRenderData (which I can see in `/usr/local/include/graphviz/gvc.h`):  
`ImportError: /var/app/venv/staging-LQM1lest/lib64/python3.8/site-packages/pygraphviz/_graphviz.cpython-38-x86_64-linux-gnu.so: undefined symbol: gvFreeRenderData`

Presumably I need to install something somewhere else or tell it where to look, but am unsure how to do this.

---

<div class="post-metadata">

**Author:** ![graeme](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graeme](https://forum.graphviz.org/u/graeme)\
**Post date:** [September 7, 2022, 11:24am UTC](https://forum.graphviz.org/t/install-graphviz-2-30-on-amazon-linux-2/792/11 "2022-09-07T11:24:45Z")

</div>

If anyone else is stuck with a similar problem, I used the following configuration options:  
`./configure --enable-python3=yes --exec-prefix="/usr"`

And specified the locations of include and lib when installing pygraphviz:  
`pip install pygraphviz --global-option=build_ext --global-option="-I/usr/include/graphviz" --global-option="-L/usr/lib/graphviz/"`
