Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
25924c90
Commit
25924c90
authored
2 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Doc] update macOS installation instructions
parent
59d43635
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
INSTALL.md
+26
-17
26 additions, 17 deletions
INSTALL.md
with
26 additions
and
17 deletions
INSTALL.md
+
26
−
17
View file @
25924c90
...
...
@@ -236,44 +236,53 @@ We highly recommend to rely on it for the installation of Frama-C.
1.
Install
*required*
general macOS tools for OCaml:
```shell
brew install
autoconf pkg-config
opam
brew install opam
```
Do not forget to
`opam init`
and
`
`eval
`
opam
config env` `
`
for a proper
Do not forget to
`opam init`
and
`eval
$(
opam
env)
`
for a proper
opam installation (if not already done before).
2.
Set up a compatible OCaml version (replace
`<version>`
with the version
indicated in the
'
re
commended working configuration' sec
tion):
indicated in the
[
re
ference configuration
](
#reference-configura
tion
)
)
:
```shell
opam switch create <version>
```
3.
Install
*required*
dependencies for
Frama-C:
3.
Install Frama-C:
```shell
brew
install
gmp gtk+ gtksourceview libgnomecanvas
opam
install
frama-c
```
The graphical libraries require additional manual configuration of your
bash profile. Consult this [issue](https://github.com/ocaml/opam-repository/issues/13709) on opam
for details. A known working configuration is:
Opam may ask for the administrator password to handle required system
dependencies.
**
It is likely that, at this point, opam will fail due to some Homebrew
packages and pkg-config.
**
The error messages should indicate what you need
to do, e.g.:
```shell
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/lib/pkgconfig
For pkg-config to find zlib you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"
```
4.
Install
*recommended*
dependencies for Frama-C:
After setting such environment variables, re-running `opam install frama-c`
should work. If you still have issues, try manually installing the required
packages (via `brew install <package>`) and then re-installing Frama-C.
**Note**: opam packages prefixed with `conf-` only check if the
corresponding system package is findable. If you cannot install some
`conf-` package, the solution will likely involve Homebrew and/or setting
environment variables, not opam.
```shell
brew install graphviz
```
4.
Install the new Frama-C graphical interface (Ivette).
5.
Install Frama-C:
**The traditional GTK-based Frama-C GUI no longer works on macOS!**
You need to use Ivette, the new Frama-C graphical interface.
Instructions on installing and running it are presented by opam when
the
`frama-c`
package is installed. Follow them to get Ivette running.
```shell
opam install frama-c
```
## Installing Frama-C via your Linux distribution (Debian/Ubuntu/Fedora)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment