vim /etc/ls.so.conf

  添加lib路径即可:比如  /opt/xxx/xxx/xxlib/

vim /etc/profile

  添加include的路径

  export C_INCLUDE_PATH=XXXXXX

source xxx

ldconfig   刷新cache中的lib路径