Skip to content

HOWTO compile and run sai server docker

engdorm edited this page Oct 11, 2016 · 3 revisions

How to compile the sai server

If you have deb packages already installed, ignore the section with ‘dpkg’

sudo dpkg -i libmlnxsdk/applibs_.deb sudo dpkg -i libmlnxsdk/sxd-libs_.deb sudo dpkg -i libmlnxsdk/sx-complib_.deb sudo dpkg -i libmlnxsdk/sx-gen-utils_.deb

sudo dpkg -i thrift/thrift-compiler_.deb sudo dpkg -i thrift/libthrift-0.9.2_.deb sudo dpkg -i thrift/libthrift-dev_*.deb

##saimlnx-build-v2 sudo dpkg -i lib/*.deb

cd test/saithrift/ctypesgen sudo python setup.py install cd ../

export platform=MLLNX make

make a tar with libsaiserver

mkdir -p libsaiserver/include mkdir -p libsaiserver/lib cp -v src/switch_sai_rpc_server.h libsaiserver/include cp -v src/obj/librpcserver.a libsaiserver/lib mkdir target tar cvfz target/libsaiserver.tar.gz libsaiserver

end of building libsaiserver.tar

ls target

How to run the sai server docker

Clone this wiki locally