Skip to content
Snippets Groups Projects
get-frama-c.html 3.21 KiB
Newer Older
Augustin Lemesle's avatar
Augustin Lemesle committed
---
layout: default
css: get-framac
title: Get Frama-C
Yaelle Vincont's avatar
Yaelle Vincont committed
---

  <div id="wrapper" class="hfeed">

	{% include headers.html header="download" %}
Yaelle Vincont's avatar
Yaelle Vincont committed

    <div id="container" class="mainContainer">
      <div class="getFramaC">
        <div class="wrap">
          <h1 class="pageTitle">Choose for which OS you want Frama-C</h1>
Yaelle Vincont's avatar
Yaelle Vincont committed

          <div class="OS codeTabs">
Augustin Lemesle's avatar
Augustin Lemesle committed
            <a href="#" role="button" class="tab-up tab-up-linux" onClick="clickTab('linux')"><b>Linux</b></a> <a href="#" role="button" class="tab-up tab-up-mac" onClick="clickTab('mac')"><b>Mac</b></a> <a href="#" role="button" class="tab-up tab-up-windows" onClick="clickTab('windows')"><b>Windows (WSL)</b></a>
Yaelle Vincont's avatar
Yaelle Vincont committed
          </div>
		  <br>
		  <a href="/html/framac-versions.html" class="previousVersion">Previous Versions</a>
Yaelle Vincont's avatar
Yaelle Vincont committed
          <div class="otherConfiguration">
            For detailed installation instructions, <a target="_blank" href="https://git.frama-c.com/pub/frama-c/blob/master/INSTALL.md" class="lineMove">click here</a>
Yaelle Vincont's avatar
Yaelle Vincont committed
          </div>

          <div class="notebook code">
            <div>
              <div class="codeScreen">
                <div class="codeTab tab-linux hide">
                  <pre class="shell-linux">
<span class="shell-linux-comment"># 1. Install <a href="https://opam.ocaml.org/">opam</a> (OCaml package manager)</span>
sudo apt install opam <span class="shell-linux-comment"># or dnf, pacman, etc.</span>
<span class="shell-linux-comment"># 2. Install Frama-C's dependencies</span>
opam install depext
opam depext frama-c
<br>
<span class="shell-linux-comment"># 3. Install Frama-C itself</span>
opam install frama-c</pre>
Yaelle Vincont's avatar
Yaelle Vincont committed
                </div>

                <div class="codeTab tab-mac hide">
                  <pre class="shell-mac">
<span class="shell-mac-comment"># 1. Install <a href="https://brew.sh/">Homebrew</a></span>
<span class="shell-mac-comment"># 2. Install required dependencies for Frama-C</span>
brew install opam gmp gtk+ gtksourceview libgnomecanvas
<span class="shell-mac-comment"># 3. Configure GTK library</span>
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/lib/pkgconfig
<span class="shell-mac-comment"># 4. Install recommended dependencies for Frama-C</span>
brew install graphviz zmq
<span class="shell-mac-comment"># 5. Finally install Frama-C</span>
opam install frama-c</pre>
Yaelle Vincont's avatar
Yaelle Vincont committed
                </div>

                <div class="codeTab tab-windows hide">
					<pre class="shell-win">
<span class="shell-win-comment"># 1. Prepare opam installation</span>
sudo apt update
sudo apt upgrade
sudo apt install make m4 gcc opam
<span class="shell-win-comment"># 2. opam setup</span>
opam init --disable-sandboxing -c 4.07.1 --shell-setup
eval $(opam env)
opam install -y depext
<span class="shell-win-comment"># 3. Install graphical dependencies</span>
opam depext --install -y lablgtk3 lablgtk3-sourceview3

<span class="shell-win-comment"># 4. Install Frama-C</span>
opam depext --install -y frama-c</pre>
Yaelle Vincont's avatar
Yaelle Vincont committed
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
Yaelle Vincont's avatar
Yaelle Vincont committed

	  {% include footer.html %}

      <div class="clear"></div>
    </div>
  </div>
Augustin Lemesle's avatar
Augustin Lemesle committed
  <head><script type='text/javascript' src='/assets/js/codeTabs.js'></script></head>