After installation, ofed library cannot be found

according to the Mellanox_OFED_Linux_User_Manual_v4_5.pdf, I install MLNX_OFED_LINUX-4.5-1.0.1.0-ubuntu16.04-x86_64.iso on my machine(ubuntu 16.04 and connectx-5). I start to run code from RDMA_Aware_Programming_user_manual.pdf. The manual gives compiling commandline “gcc -Wall -I/usr/local/ofed/include -O2 -o RDMA_RC_example -L/usr/local/ofed/lib64 -L/usr/local/ofed/lib -libverbs RDMA_RC_example.c " in page 121. But i cannot find the directory”/usr/local/ofed"

Hi,

Where did you see that the include path is /usr/local/ofed/include and the library path /usr/local/ofed/lib ? From which manual ?

The include files are installed in /usr/include and libraries in /usr/lib or /usr/lib64

If you specified a different prefix in your configure command line when you compiled the sources of the driver, so you will be able to specify your own directory for include and libs.(–prefix option )

Br,

Marc