RTMP links not working

I have been trying really hard to get rtmp links to stream on kodi on my pi 2 with no luck.
On my windows machine, I had to update the librtmp file to get it working.
How do I do that on osmc ? I have tried lots of stuff but still cant get it working
please help

Same as any other Linux distro.