Programowanie w systemie UNIX/ARB: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
m →‎typy: kompilacja
Linia 65:
=kompilacja=
 
==problemy==
 
 
===linkowanie===
error while loading shared libraries: libarb.so:
cannot open shared object file: No such file or directory
 
Rozwiązanie:<ref>[https://stackoverflow.com/questions/32550654/libarb-so-cannot-open-shared-object-file-no-such-file-or-directory stackoverflow question : libarb-so-cannot-open-shared-object-file-no-such-file-or-directory]</ref>
* check library is present, use below command
* compile your program with -L option, example below
* export Library path before running if required
 
 
sudo find / -name "libarb.so" #
gcc program.c -L <path to library> -larb
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to library>
 
Ewentualnie użyj:
* [[Programowanie_w_systemie_UNIX/ldconfig|lddconfig]]
 
=typy=