-
Notifications
You must be signed in to change notification settings - Fork 156
Build Instruction
- MLNX_OFED (Download the correct version here) - install with --vma
- Autoconf, Automake, libtool, unzip, patch, libnl-devel (standart RH release should come with everything required)
Please look at the file install.sh before building VMA.
You can either run install.sh
or build manually as follow:
You have two options:
####Build binary/shared-object####
- ./autogen.sh
- ./configure --with-ofed=/usr --prefix=/usr --libdir=/usr/lib64 --includedir=/usr/include --docdir=/usr/share/doc/libvma --sysconfdir=/etc
- make
You can find libvma.so in path_to_vma_source_dir/src/vma/.libs/libvma.so.
####Build RPM / DEB packages#### For RPM: ./build/build_rpm.sh
For DEB: ./build/build_deb.sh
####Install binary/shared-object####
After build:
- sudo make install
- sudo path_to_vma_install_dir/etc/init.d/vma start
Note: step 2 is needed Starting version 8.2.6
####Install RPM / DEB packages#### For RPM: rpm -ivh libvma*.rpm
For DEB: dpkg -i libvma*.deb
Load libvma.so using LD_PRELOAD=path_to_libvma.so before your application, and run your application.
LD_PRELOAD=libvma.so sockperf
export LD_PRELOAD=libvma.so
sockperf
- Download the source by pulling git.
The zip file offered for download does not contain the required file permissions.
If you still wish to use the zip file, run:
find . -name \*.sh -exec chmod 755 {} \;
find ./ -exec touch {} \;
- DO NOT USE the "internal" script under ./build .
It is part of Mellanox internal automation system, and will not work for you.