Skip to content

Commit

Permalink
Add Ubuntu notes
Browse files Browse the repository at this point in the history
  • Loading branch information
taviso committed Jul 8, 2020
1 parent 78d62ab commit dc21f50
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,24 @@ See more examples [here](https://github.com/taviso/ctypes.sh/tree/master/test)
* elfutils (optional)
* libdwarf / libdw (optional)

### Ubuntu

For recent Ubuntu, this should be enough:

`sudo apt install autoconf libltdl-dev libffi-dev libelf-dev elfutils libdw-dev`

If you want to use automatic struct support (recommended), you should also make
you have ddebs available:

```
$ printf "deb http://ddebs.ubuntu.com %s main restricted universe multiverse\n" $(lsb_release -cs){,-updates,-security,-proposed} | sudo tee -a /etc/apt/sources.list.d/ddebs.list
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8CAB6595FDFF622
$ sudo apt update
```

Now if you install the relevant -dbgsym packages, ctypes.sh will automatically
create the correct structures for libraries you want to use.

## install

`ctypes.sh` can be installed from source like this:
Expand Down

0 comments on commit dc21f50

Please sign in to comment.