DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK installation
@ 2017-03-24 19:13 Ashwini Thaokar
  2017-03-24 19:22 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 5+ messages in thread
From: Ashwini Thaokar @ 2017-03-24 19:13 UTC (permalink / raw)
  To: dev

I have downloaded a tar file of latest version of DPDK and extracted it on
my VMware Fusion running Ubuntu 16.04 on Mac OS X .

I'm trying to install and make targets, using the make install
T=<target> command
in the top-level DPDK directory.

 make install T=x86_64-native-linuxapp-icc

The following errors are displayed:

make[5]: Nothing to be done for 'depdirs'.
Configuration done
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -lt: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -eq: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
== Build lib
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -lt: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -eq: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
== Build lib/librte_compat
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -lt: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -eq: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
== Build lib/librte_eal
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -lt: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -eq: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
== Build lib/librte_eal/common
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -lt: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -eq: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
== Build lib/librte_eal/linuxapp
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -lt: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -eq: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
== Build lib/librte_eal/linuxapp/eal
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -lt: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -eq: unexpected operator
/bin/sh: 1: icc: not found
/bin/sh: 1: test: -ge: unexpected operator
/bin/sh: 1: icc: not found
  CC eal.o
/bin/sh: 1: icc: not found
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/internal/rte.compile-pre.mk:138:
recipe for target 'eal.o' failed
make[7]: *** [eal.o] Error 127
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/rte.subdir.mk:61: recipe for
target 'eal' failed
make[6]: *** [eal] Error 2
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/rte.subdir.mk:61: recipe for
target 'linuxapp' failed
make[5]: *** [linuxapp] Error 2
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/rte.subdir.mk:61: recipe for
target 'librte_eal' failed
make[4]: *** [librte_eal] Error 2
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/rte.sdkbuild.mk:78: recipe for
target 'lib' failed
make[3]: *** [lib] Error 2
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/rte.sdkroot.mk:126: recipe for
target 'all' failed
make[2]: *** [all] Error 2
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/rte.sdkinstall.mk:85: recipe for
target 'pre_install' failed
make[1]: *** [pre_install] Error 2
/home/ashwinithaokar/Desktop/dpdk-17.02/mk/rte.sdkroot.mk:101: recipe for
target 'install' failed
make: *** [install] Error 2

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] DPDK installation
  2017-03-24 19:13 [dpdk-dev] DPDK installation Ashwini Thaokar
@ 2017-03-24 19:22 ` De Lara Guarch, Pablo
  2017-03-27  5:58   ` Christian Ehrhardt
  0 siblings, 1 reply; 5+ messages in thread
From: De Lara Guarch, Pablo @ 2017-03-24 19:22 UTC (permalink / raw)
  To: Ashwini Thaokar, dev

Hi Ashwini,


> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ashwini Thaokar
> Sent: Friday, March 24, 2017 7:14 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] DPDK installation
> 
> I have downloaded a tar file of latest version of DPDK and extracted it on
> my VMware Fusion running Ubuntu 16.04 on Mac OS X .
> 
> I'm trying to install and make targets, using the make install
> T=<target> command
> in the top-level DPDK directory.
> 
>  make install T=x86_64-native-linuxapp-icc

Looks like you don't have icc installed.
Use the x86_64-native-linuxapp-gcc instead:

make install T=x86_64-native-linuxapp-gcc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] DPDK installation
  2017-03-24 19:22 ` De Lara Guarch, Pablo
@ 2017-03-27  5:58   ` Christian Ehrhardt
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ehrhardt @ 2017-03-27  5:58 UTC (permalink / raw)
  To: De Lara Guarch, Pablo; +Cc: Ashwini Thaokar, dev

On Fri, Mar 24, 2017 at 8:22 PM, De Lara Guarch, Pablo <
pablo.de.lara.guarch@intel.com> wrote:

> Looks like you don't have icc installed.
> Use the x86_64-native-linuxapp-gcc instead:
>
> make install T=x86_64-native-linuxapp-gcc
>

Ack to that,
and since there are more dependencies you might want to satisfy to can at
least get close very easily.
Since DPDK is in Ubuntu you can with one line get what we use to build it.

$ sudo apt-get build-dep dpdk

I say only "close" since this is what we used to build the version in the
respective release, e.g. dpdk 2.2 in xenial.
And also extra deps can depend on your config still.

P.S. ok, maybe a few more lines if you have not yet uncommented the deb-src
lines in /etc/apt/sources.list, but "apt-get build-dep" will tell you so if
needed.

-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] DPDK Installation
  2017-03-29 19:43 [dpdk-dev] DPDK Installation Ashwini Thaokar
@ 2017-03-30  5:58 ` Christian Ehrhardt
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ehrhardt @ 2017-03-30  5:58 UTC (permalink / raw)
  To: Ashwini Thaokar; +Cc: dev

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

>
> 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
like:
# 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"


[1]:
http://askubuntu.com/questions/761357/how-to-automatically-update-etc-apt-sources-list-with-source-uris-on-ubuntu-16
[2]: https://help.ubuntu.com/16.04/serverguide/DPDK.html

-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] DPDK Installation
@ 2017-03-29 19:43 Ashwini Thaokar
  2017-03-30  5:58 ` Christian Ehrhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Ashwini Thaokar @ 2017-03-29 19:43 UTC (permalink / raw)
  To: dev

Hi,

I have been trying to install dpdk on my VMware Fusion with Ubuntu 16.04.1
on Mac. I've got many errors and tried troubleshooting but still I am not
able to run the hello world example application. I'm thinking of starting
from scratch.
Please suggest me some link on how to install DPDK and run a sample
application.

The excerpt from my last error is below:

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

Thanks,
Ashwini

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-30  5:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-24 19:13 [dpdk-dev] DPDK installation Ashwini Thaokar
2017-03-24 19:22 ` De Lara Guarch, Pablo
2017-03-27  5:58   ` Christian Ehrhardt
2017-03-29 19:43 [dpdk-dev] DPDK Installation Ashwini Thaokar
2017-03-30  5:58 ` Christian Ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).