PDA

View Full Version : Doamnda nubbia, almeno credo


zergling
29-09-2007, 05:17
Ciao a tutti,
Apro questo post perche vorrei sapere come settare una variabile permanentemente. Ho seguito questo sito:

Running wxWidgets projects

If when running a wxWidgets app you get an error like:

./a.out: error while loading shared libraries: libwx_gtk2_aui-2.8.so.0: cannot open shared object file: No such file or directory

this means your system does not search for libs in /usr/local/libs (or wherever you installed wxWidgets) by default. To solve this, write 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib' on the terminal before opening the executable (from the same terminal).

FIN QUI TUTTO OK.

You can change the LD_LIBRARY_PATH variable permanently to avoid this issue.

Come setto la variabile in modo tale che non debba inserirla ogni volta manualmente? Come la setto permanentemente?

La variabile e questa :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Bye and thanks in advantage

The website is http://www.wxwidgets.org/wiki/index....etting_started

VICIUS
29-09-2007, 12:19
Basta aggiungere il comando alla fine del file ~/.bash_profile. Altrimenti modifica /etc/profile per renderlo disponibile a tutti gli utenti del sistema.

ciao ;)