For Qt 5.6. When trying to compile, make gives an error.

/usr/bin/ld.gold: error: невозможно открыть /usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/libgds.so: Нет такого файла или каталога 

But:

 user:~$ cd /usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/ user:/usr/lib$ l *gds* lgds.so@ libgds.so@ libgds.so.0@ 

What could be the problem and how to solve it? Full log .

UPD 1:

 sudo chmod 777 /usr/lib/x86_64-linux-gnu/libfbclient.so sudo chmod 777 /usr/lib/x86_64-linux-gnu/libfbclient.so.2 sudo chmod 777 /usr/lib/x86_64-linux-gnu/libfbclient.so.2.5.6 ls -l /usr/lib/libgds.so lrwxrwxrwx 3 root root 20 дек 13 10:47 /usr/lib/libgds.so -> libfbclient.so.2.5.6 

UPD 2:

 file -L /usr/lib/libgds.so /usr/lib/libgds.so: cannot open `/usr/lib/libgds.so' (No such file or directory) locate libfbclient.so.2.5.6 /usr/lib/x86_64-linux-gnu/libfbclient.so.2.5.6 
  • Read rights to check. - aleks.andr
  • @ aleks.andr checked, updated the question - shaman888
  • one
    What library has? see the output of $ file -L /usr/lib/libgds.so . I suspect 32 bits. and try to link, apparently, with a 64-bit code. - aleksandr barakin
  • Author, are you blind? :) Your path leads to the system / usr / lib instead of / usr / lib / x86_64-linux-gnu / . Not to mention that /lib is superfluous at the end of the path. You should check current and other paths with readlink commands, for example, readlink -f $PWD . - 0andriy
  • @ 0andriy is not clear at what specific place to check. Question updated. - shaman888

1 answer 1

 sudo rm /usr/lib/libfbclient.so sudo rm /usr/lib/libgds.so sudo ln -s /usr/lib/x86_64-linux-gnu/libfbclient.so.2.5.6 /usr/lib/libfbclient.so sudo ln -s /usr/lib/x86_64-linux-gnu/libfbclient.so.2.5.6 /usr/lib/libgds.so 
  • Explain, please, why this set of commands :) - gil9red
  • @ gil9red corrected. The first two lines delete links, the second create. The problem was that the links pointed to non-existent files. - shaman888