williamtu / ovs-mlx

OVS smartnic
0 stars 0 forks source link

[SOLVED] Cannot load glue library: librte_pmd_mlx5_glue.so.20.02.0: cannot open shared object file: No such file or directory #6

Open smadaminov opened 4 years ago

smadaminov commented 4 years ago

During OvS start the following error may occur.

root@ovs-afxdp:/home/smadaminov# ovs-ctl start
 * Starting ovsdb-server
common_mlx5: mlx5_common_os.c:233: mlx5_glue_dlopen(): Cannot load glue library: librte_pmd_mlx5_glue.so.20.02.0: cannot open shared object file: No such file or directory
common_mlx5: mlx5_common_os.c:303: mlx5_glue_constructor(): Cannot initialize MLX5 common due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx5)
 * system ID not configured, please use --system-id
 * Configuring Open vSwitch system IDs
 * Inserting openvswitch module
common_mlx5: mlx5_common_os.c:233: mlx5_glue_dlopen(): Cannot load glue library: librte_pmd_mlx5_glue.so.20.02.0: cannot open shared object file: No such file or directory
common_mlx5: mlx5_common_os.c:303: mlx5_glue_constructor(): Cannot initialize MLX5 common due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx5)
 * Starting ovs-vswitchd
 * Enabling remote OVSDB managers
smadaminov commented 4 years ago

Updating linker path helps to solve this issue

root@ovs-afxdp:/home/smadaminov# export DPDK_DIR=/usr/src/dpdk
root@ovs-afxdp:/home/smadaminov# export LD_LIBRARY_PATH=$DPDK_DIR/x86_64-native-linuxapp-gcc/lib
root@ovs-afxdp:/home/smadaminov# ovs-ctl start
 * Starting ovsdb-server
 * system ID not configured, please use --system-id
 * Configuring Open vSwitch system IDs
 * Starting ovs-vswitchd
 * Enabling remote OVSDB managers