[dpdk-dev] DPDK Installation

Christian Ehrhardt christian.ehrhardt at canonical.com
Thu Mar 30 07:58:30 CEST 2017

On Wed, Mar 29, 2017 at 9:43 PM, Ashwini Thaokar <thaokar.a at husky.neu.edu>

> You must put some 'source' URIs in your sources.list

Given the error message you likely want to user "apt build-dep" to
automatically get all dependencies to build a dpdk app by pulling in what
Ubuntu uses to build DPDK.
Since this is a common task a simple search would give you one of the many
short howtos where experienced users helped those who asked, like [1].

For the most basic check I'd say just install with "apt install dpdk" that
will give you the testpmd app already.
Of course you need to setup hugepages and assign devices, but the config of
the packages and [2] will help you.

If after this you want to build an own application what I usually do is
# get dev libs and examples
$ apt-get install dpdk-doc dpdk-dev libdpdk-dev
# auto-get build dependencies (here you'll need the deb-src again)
$ apt-get build-dep dpdk
# get build env config
. /usr/share/dpdk/dpdk-sdk-env.sh
# build example
mkdir -p /tmp/l2fwd
make -C /usr/share/dpdk/examples/l2fwd "O=/tmp/l2fwd"

[2]: https://help.ubuntu.com/16.04/serverguide/DPDK.html

Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

More information about the dev mailing list