News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem starting CB (Linux)

Started by Flak, August 06, 2006, 08:26:31 PM

Previous topic - Next topic

Flak

Some background info first: I'm using SUSE 10.1, and installed wxGTK and Code::Blocks (SVN trunk) from source using the instructions in the Wiki ("Installing from source on Linux"). I had to install an older version of GCC (4.0.3) to build CB due to the current issues with GCC 4.1 which comes with SUSE by default. So, I was able to build and install everything, but when I try to run CB I get this error:

codeblocks: error while loading shared libraries: libwx_gtk2u-2.6.so.0: cannot open shared object file: No such file or directory

Here's what I get from wx-config:


wx-config --prefix
/opt/wx/2.6

wx-config --libs
-L/opt/wx/2.6/lib -pthread   -L/usr/X11R6/lib  -lwx_gtk2u-2.6

which wx-config
/opt/wx/2.6/bin/wx-config


I also tried adding /opt/wx/2.6/lib to PATH (that's where libwx_gtk2u-2.6.so.0 is) but that didn't help. Any ideas what the problem could be?

Ceniza

Try adding /opt/wx/2.6/lib to LD_LIBRARY_PATH instead of PATH and see if it works.

Another, and permanent,  solution (I've never used SUSE but could work) is to add /opt/wx/2.6/lib to /etc/ld.so.conf and then run ldconfig (you need to be root).

mdelfede

Quote from: Ceniza on August 06, 2006, 09:32:21 PM
.....
Another, and permanent,  solution (I've never used SUSE but could work) is to add /opt/wx/2.6/lib to /etc/ld.so.conf and then run ldconfig (you need to be root).

yes, that do work, I've done it on SuSe 10.1 too.

Ciao

Max

Flak

Quote from: Ceniza on August 06, 2006, 09:32:21 PMAnother, and permanent,  solution (I've never used SUSE but could work) is to add /opt/wx/2.6/lib to /etc/ld.so.conf and then run ldconfig (you need to be root).

Yep that did it. Thanks so much, you guys rock! :D