Marc-Olivier Buob edited this page Nov 9, 2016 · 5 revisions

It is recommanded to use the git install to get the latest stable version of the project.


With git

  1. Install needed packages
  • Debian: run the following commands as root:
aptitude update
aptitude safe-upgrade
aptitude install autoconf build-essential git libtool
  • Fedora: run the following commands as root:
yum update
yum install -y autoconf git make libtool libc6-dev
  • FreeBSD: run the following commands as root:
pkg install automake git libtool gcc gdb
  1. Get the sources:
mkdir ~/git
cd ~/git
git clone
cd ~/git/libparistraceroute
  1. Compile the sources:
mkdir m4
  1. To install the library, run the following command as root:
make install

With packages

You can install libparistraceroute and several binaries based on libparistraceroute (including paris-traceroute) thanks to dedicated packages. Two packages are currently available:

  • libparistraceroute is just the libparistraceroute library.
  • paris-traceroute contains both the library and the paris-traceroute binary that uses it.

rpm-based distributions (Fedora, RedHat, Centos, etc.)

We provide packages for Fedora 18/19/20 for both i386/i686 and x86_64 architectures. Due to the limited number of dependencies of libparistraceroute, these rpm should work on most rpm-based distributions, although we have not tested them yet.

You can install the libparistraceroute repository by downloading our .repo file and storing it in /etc/yum.repos.d/, then proceed to the package installation. Note that packages are not yet signed at the moment, and the yum command requires the use of the --nogpgcheck option.

wget -O /etc/yum.repos.d/libparistraceroute.repo
yum install paris-traceroute --nogpgcheck

Alternatively, you can download both packages for your architecture and run the following command (eg for x86_64):

rpm -i libparistraceroute-0.9-1.fc20.x86_64.rpm
rpm -i paristraceroute-0.9-1.fc20.x86_64.rpm

deb-based distributions (Debian, Ubuntu, etc.)

Debian-based distributions (Debian 6+, *Ubuntu 11.04+ at least) should likewise be up shortly. [ Download packages here]

Live Packages

These packages pull the latest HEAD from git and use that to build a package

  • Arch Linux - [ PKGBUILD]
  • Gentoo Linux - [ paris-traceroute-9999.ebuild]

Older packages (obsolete)

Old versions of these packages, built from a snapshot taken on June 6th 2012, are still available for various distributions (mostly with .repo files):

Test the library

Method 1:

You can now compile several tools using libparistraceroute (traceroute, paris-traceroute, paris-ping). You may for instance compile the paris-traceroute command-line tool:

cd paris-traceroute
make all install

This program needs to create raw socket and thus requires to be run as root (see method 2 to run the test program as a normal user). You may also install and run Fakeroute.

paris-traceroute -n

Method 2: (TO FIX)

Alternatively you can use setpcap as root to allow a normal user to run this program.

  • Debian:
aptitude install libcap2-bin

Run this command as root :

setcap cap_net_raw+ep /usr/local/bin/paris-traceroute
LD_LIBRARY_PATH="/usr/local/lib" paris-traceroute -n

Troubleshooting not found


libparistraceroute is not found, but is properly installed in /usr/local/lib:

# paris-traceroute -n
paris-traceroute: error while loading shared libraries: cannot open shared object file: No such file or directory
# ldd $(which paris-traceroute) (0x00007fffbb997000) => not found => /lib/x86_64-linux-gnu/ (0x00007f42075c4000)
        /lib64/ (0x00007f420798a000)

Solution 1 (recommanded):

  1. Verify whether /usr/local/lib is present in the configuration. If is properly configured, you should have a similar result (if not, fix your configuration):
# grep -nr "/usr/local/lib" /etc/*
  1. Run:
  1. Recompile libparistraceroute and paris-traceroute:
cd ~/git/paris-traceroute.libparistraceroute/libparistraceroute
make all install
  1. The paris-traceroute binary should be now properly linked:
# ldd $(which paris-traceroute) (0x00007fff822f4000) => /usr/local/lib/ (0x00007f1870e8b000) => /lib/x86_64-linux-gnu/ (0x00007f1870ae2000)
        /lib64/ (0x00007f18710ce000)

Solution 2:

Indicate the folder containing libparistraceroute*.so*:

LD_LIBRARY_PATH="/usr/local/lib" paris-traceroute -n


What is libparistraceroute ?

Installing paris-traceroute and libparistraceroute

Developing in libparistraceroute

Delve into libparistraceroute

External links


Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.