LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   wxGTK-6.2 installation (https://www.linuxquestions.org/questions/linux-software-2/wxgtk-6-2-installation-384134/)

mohtasham1983 11-17-2005 05:09 PM

wxGTK-6.2 installation
 
I want to install wxGTK-2.6 from the source file on my fc4 machine. At first I unzip the file and as direction in INSTLL file i write:
./configure --with-gtk
and it starts to configure it and i get the following message at the end of process
Configured wxWidgets 2.6.2 for `i686-pc-linux-gnu'

Which GUI toolkit should wxWidgets use? GTK+ 2
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? yes
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? yes
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.2 no
wxWidgets 2.4 yes
Which libraries should wxWidgets use?
jpeg sys
png sys
regex builtin
tiff builtin
zlib sys
odbc no
expat sys
libmspack no
sdl no
gnomeprint no

then I compile it using make and i get this:
(test -d utils/wxrc && cd utils/wxrc && make all) || true
make[1]: Entering directory `/usr/local/wxGTK-2.6.2/utils/wxrc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/wxGTK-2.6.2/utils/wxrc'

then i using make install i receive such message:
The installation of wxWidgets is finished. On certain
platforms (e.g. Linux) you'll now have to run ldconfig
if you installed a shared library and also modify the
LD_LIBRARY_PATH (or equivalent) environment variable.

wxWidgets comes with no guarantees and doesn't claim
to be suitable for any purpose.

Read the wxWidgets Licence on licencing conditions.

then /sbin/ldconfig
and as INSTALL file everything is supposed to be alright.
but when I want to run a program (xfardic) i get the following error:
xfardic: error while loading shared libraries: libwx_gtk2_xrc-2.6.so.0: cannot open shared object file: No such file or directory
I would be glad if someone helps me,
thanks

Electro 11-17-2005 05:19 PM

Make sure /usr/local/lib is listed in /etc/ld.so.conf. Then run ldconfig. You will have to either re-compile all programs that require wxWidgets or set up some symbolic links to make programs think they are running previous versions of wxWidgets.

mohtasham1983 11-17-2005 06:31 PM

/etc/ld.so.conf contains:
include ld.so.conf.d/*.conf
include /usr/local/lib

How to make a symbolic link?

mohtasham1983 11-17-2005 06:45 PM

I made a symbolic name using:
ln -s /usr/bin/xfardic /home/mohammad/farsi

but when i run it the same error occures

megaspaz 11-17-2005 10:38 PM

you need to make a link with the libraries.

The error tells you what library is needed by the program (libwx_gtk2_xrc-2.6.so.0). You need to create a link to your wxGTK library named that. Finding the file that exists that you need to use is a bit more tricky. basically take part of the name of the file that's missing (libwx_gtk2_xrc-2.6.so.0) and do an ls -l on that name part.
You should get a lot of listings. link to the file that's not a symlink.

You might do something like:
Code:

ln -s /usr/lib/libwx_gtk2_xrc-2.6.so.0.1.1 /usr/lib/libwx_gtk2_xrc-2.6.so.0

          ^ that's the library that (may) exists      ^ this is the link you need to create



All times are GMT -5. The time now is 01:31 PM.