User forums > Help
Problem starting CB (Linux)
(1/1)
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:
--- Code: ---codeblocks: error while loading shared libraries: libwx_gtk2u-2.6.so.0: cannot open shared object file: No such file or directory
--- End code ---
Here's what I get from wx-config:
--- Code: ---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
--- End code ---
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).
--- End quote ---
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 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).
--- End quote ---
Yep that did it. Thanks so much, you guys rock! :D
Navigation
[0] Message Index
Go to full version