Let us say you have a bunch of files (shared object files) inside a folder, but some program being installed is looking after them in the wrong place. It would generate an error similar to this:

No rule to make target '/usr/lib64/libICE.so', needed by 'lib/libpcl_io.so.1.7.2'.

If you run the following command

locate libICE.so

and you receive the following output

/usr/lib/i386-linux-gnu/libICE.so.6
/usr/lib/i386-linux-gnu/libICE.so.6.3.0
/usr/lib/x86_64-linux-gnu/libICE.so
/usr/lib/x86_64-linux-gnu/libICE.so.6
/usr/lib/x86_64-linux-gnu/libICE.so.6.3.0

you can then create a link to the actual file with

sudo ln -s /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib64/libICE.so
sudo ldconfig

It`s done!

BONUS PART:

If you have a lot of .so files in /usr/lib/x86_64-linux-gnu and want to create a link for everyone inside it into /usr/lib64, just run

sudo ln -s /usr/lib/x86_64-linux-gnu/* /usr/lib64/
sudo lnconfig