Installation methods

639 views
Skip to first unread message

Squro AWM

unread,
Dec 12, 2022, 12:06:07 PM12/12/22
to TRex Traffic Generator

HI,

 I am new to TRex. While searching for the installation steps (on Ubuntu 22.04 LTS), I found 2 different methods.

 Method I:

download: git clone  https://github.com/cisco-system-traffic-generator/trex-core.git and build.

 cp trex-core-2.97.tar.gz /opt

tar zxvf trex-core-2.97.tar.gz
cd trex-core-2.97/linux_dpdk

./b configure 

./b build

 

Method II :

Latest (stable) release:

[bash]>mkdir -p /opt/trex
[bash]>cd /opt/trex
[bash]>wget --no-cache https://trex-tgn.cisco.com/trex/release/latest
[bash]>tar -xzvf latest

From <https://trex-tgn.cisco.com/trex/doc/trex_manual.html#_download_and_installation>

 

 What is the difference between these 2 types of installation.

What is trex-core?

 

Can anyone pls help me to understand this?


Thanks in advance.

Besart Dollma

unread,
Jan 4, 2023, 4:19:46 AM1/4/23
to TRex Traffic Generator
Method 1 is for developers who want to make changes and test.
Method 2 is for users, already compiled, only to use.
Thanks, 

Rashi Krishna

unread,
Aug 17, 2023, 7:43:28 AM8/17/23
to TRex Traffic Generator

Hi,

Is there the difference between the two tar file?

I tried building one from scratch and I noticed that method 1(building from source code) has more files compared to method 2(Downloading the tar.gz).

Example for v3.03:

Method 1 has these files which Method 2 doesn't have:
emu-sim
emu-script
emu_daemon_server
azure_trex_setup.sh
cps_ndr.py

Method2 has these files which method1 doesn't have:
trex_client_v3.03.tar.gz


Can you tell me the how to build to get similar result to the release

Rashi Krishna

unread,
Aug 21, 2023, 3:41:38 AM8/21/23
to TRex Traffic Generator
These are the steps I used to create the tar file:

```
cd /tmp/trex-core/linux_dpdk
./b configure
./b build
cd /tmp/
tar -hczf v3.03.tar.gz -C /tmp/trex-core/scripts .
```

Can you check if this is the correct way.

Rashi Krishna

unread,
Sep 4, 2023, 1:46:42 AM9/4/23
to TRex Traffic Generator
Oh..found out there was a script to create package.

./b pkg
Reply all
Reply to author
Forward
0 new messages