LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2005, 05:09 PM   #1
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
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
 
Old 11-17-2005, 05:19 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 11-17-2005, 06:31 PM   #3
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Original Poster
Rep: Reputation: 30
/etc/ld.so.conf contains:
include ld.so.conf.d/*.conf
include /usr/local/lib

How to make a symbolic link?
 
Old 11-17-2005, 06:45 PM   #4
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Original Poster
Rep: Reputation: 30
I made a symbolic name using:
ln -s /usr/bin/xfardic /home/mohammad/farsi

but when i run it the same error occures
 
Old 11-17-2005, 10:38 PM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with GTK during installation of wxGTK spariggio82 Linux - Software 1 04-01-2005 02:42 PM
wxGTK/GTK installation Runsun Pan Linux - Newbie 1 09-10-2004 03:34 PM
wxGTK - help me! powune Linux - Newbie 4 10-25-2003 11:53 AM
lMule wxGTK and wxGTK-devel Caveman Linux - Software 3 10-15-2003 11:38 AM
wxGTK 2.4.0 vexer Linux - Software 0 05-08-2003 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration