LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-03-2009, 11:11 PM   #1
python.noob
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Rep: Reputation: 0
problem in installing wxwidgets...


Hello friends,
Let me tell you this is my first post in this community. I'm here to extend my horizon.
I've tried to install wxwidgets in my mandriva 2009 spring for GUI interaction with python. In the installation instruction it said that i need gtk+ library. So i downloaded GTK+. When i configured GTK+ i got the message
Code:
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3    atk >= 1.13.0    pango >= 1.20    cairo >= 1.6) were not met:

Requested 'glib-2.0 >= 2.21.3' but version of GLib is 2.20.1

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Then i downloaded glib2.21.3,atk 1.13.0,pango 1.20 and cairo 1.6. I installed all the packages using the following commands.
Code:
tar xvzf filename.tar.gz
cd folder
./configure
make
make install
I've not specified anf options like --prefix and i installed in the folder itself.
when i tried to install gtk+ after installing all this it showed the same error. What should i do to install wxwidgets? Plz. reply as soon as possible.. Coz. i've to finish my proj. quickly.. Thanks and regards...
 
Old 11-04-2009, 02:23 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
type
'man pkg-config'
you can set that environment variable in /etc/profile
and then
'source /etc/profile'
maybe it is helpful to run
'sudo ldconfig'
 
Old 11-04-2009, 02:52 AM   #3
python.noob
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by j-ray View Post
type
'man pkg-config'
you can set that environment variable in /etc/profile
and then
'source /etc/profile'
maybe it is helpful to run
'sudo ldconfig'
thank you j-ray.. But i'm somewhat lost here. when i typed the man pkg-config it displayed the commands and options in pkg-config. How to set the environment variable? when i typed sudo ldconfig nothing happened. You know i'm in a naive user category as far as linux is concerned. So please explain me in detail about how to fix this problem..
 
Old 11-04-2009, 08:09 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
you set environment variables with an entry in /home/youruser/.bashrc or /etc/profile like that:

export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/path/to/some/dir:/another/path/to/somewhere"

after that type
source /etc/profile


maybe go on reading a bit
http://ubuntuforums.org/showthread.php?t=1091717

good luck
 
Old 11-04-2009, 11:01 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
Packages installed by default on Mandriva 2009(.1) Spring :
libatk1.0_0-1.26.0 atk1.0-common-1.26.0 libcairo2-1.8.6
libpango1.0_0-1.24.1 pango-1.24.1 .
.. You have them all : Try the commands 'rpm -qa atk' .
'rpm -qa cairo' , 'rpm -qa pango' , 'rpm -qa | grep libgtk .

Trying to install older versions of the above will probably
trash ( all ? ) applications. If you installed to /usr/local/
it should be easy to delete it all. ( Or may be # make uninstall
will work.)

Getting wxWidgets and other packages installed on Linux :
Please use the Package Manager ... or the command line :

1) su
2) urpmq -a wx
.. which wil list all installable wx.
3) urpmi libwxgtk2.8-devel
.. will install the basic wx widgets packages,
including the development files.
.....

P.S. : If you want to compile applications or libraries,
using atk, cairo, pango, glib2, gtk , just install libgtk+2.0_0-devel,
and the other " -devel " packages will be installed automatically.
"-devel" packages contains the headers etc. needed for compiling.
.. When configure says missing <name> , it means ' lib<name>-devel .
.....

Last edited by knudfl; 11-04-2009 at 11:21 AM.
 
Old 11-05-2009, 03:51 AM   #6
python.noob
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Packages installed by default on Mandriva 2009(.1) Spring :
libatk1.0_0-1.26.0 atk1.0-common-1.26.0 libcairo2-1.8.6
libpango1.0_0-1.24.1 pango-1.24.1 .
.. You have them all : Try the commands 'rpm -qa atk' .
'rpm -qa cairo' , 'rpm -qa pango' , 'rpm -qa | grep libgtk .

Trying to install older versions of the above will probably
trash ( all ? ) applications. If you installed to /usr/local/
it should be easy to delete it all. ( Or may be # make uninstall
will work.)

Getting wxWidgets and other packages installed on Linux :
Please use the Package Manager ... or the command line :

1) su
2) urpmq -a wx
.. which wil list all installable wx.
3) urpmi libwxgtk2.8-devel
.. will install the basic wx widgets packages,
including the development files.
.....

P.S. : If you want to compile applications or libraries,
using atk, cairo, pango, glib2, gtk , just install libgtk+2.0_0-devel,
and the other " -devel " packages will be installed automatically.
"-devel" packages contains the headers etc. needed for compiling.
.. When configure says missing <name> , it means ' lib<name>-devel .
.....
Wow! May god bless you. I did the step 3)urpmi libwxgtk2.8-devel it downloaded and installed two packages. And guess what it worked like a charm. I installed wxwidgets successfully.. Thank you knudfl..
When i tried to install at first after reading the installation instruction in the wiki pages they've said it needs gt+2.X. so i downloaded tarball files and it lead to cairo,atk etc., and u know the whole story.
If we can install the packages through urpmi we can install the same through software manager too. Am i right?
But for your info. i tried to ./configure gtk+2.21.3 again i got the same error after installing libwxgtk2.8-devel.. It makes me wonder why?
Anyhow the mission accomplished.Thank you for ur P.S pal it was really useful. Could you suggest me any good book to learn commands like 'rpm -qa | grep libgtk' and be
thourough with the basics of linux...
 
Old 11-05-2009, 08:13 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
Ref. # 5 , and your question in # 6 ...
Quote:
Getting wxWidgets and other packages installed on Linux :
Please use the Package Manager ... or the command line :
Yes : anything you get with ' urpmi ', you can get with the
Package Manager .. or vice versa. The search function urpmq
( urpmq -a ) is available in the package manager too > > the
" Find " window.
Command to open the package manager = ' rpmdrake '.

.. Links, urpmi , etc. ..
http://wiki.linuxquestions.org/wiki/URPMI_or_rpmdrake
http://wiki.mandriva.com/en/Tools/urpmi
http://club.mandriva.com/xwiki/bin/view/KB/BasicsBrpm3
.....

Miscellaneous 'rpm' commands : please see 'man rpm'.

.. And here some very useful rpm commands :

rpm -qa | sort > my-installed-packages.txt
.. using two commands and a redirect .. :
'rpm qa' lists packages , in rpm data base order.
The pipe ( | ) pipes the result to 'sort', providing
an alphabetic list. Redirect ( > ) prints a text file
in /home/"user"/.

rpm -qa --last > last-rpm.txt
.. creates a text file with the last installed package
at line 1 , and the date of the install. Very useful
if you forget what you installed, and when.

rpm -qa --last | less
.. see for yourself ..

rpm -ql <package>
.. lists all files in an installed package.

rpm -qf /usr/lib/<file>
Or : rpm -qf /usr/bin/<file>
etc. etc., will tell which package, the file belongs to.
.....
.....

Glib , atk , cairo , pango , gtk :
Doing experiments with versions different from those
already installed, this is a must :
A non system location, example ...
./configure --prefix=/usr/local/glib2222/
Not all versions of gtk are stable. This LQ thread, post # 3
shows a working combination of the above libraries, and
how to handle the path with "pkg-config"
http://www.linuxquestions.org/questi...7/#post3742595
.....
Installing to a system path like /usr/local/ may trash the "500"
installed applications all depending on the system versions.
.....

Last edited by knudfl; 11-06-2009 at 07:09 AM.
 
Old 11-11-2009, 12:08 AM   #8
python.noob
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Solved the issue and learnt more.. You and this community is really great...Thank you so much and warm regards..Sorry for replying late. My internet connection was down a bit..

Last edited by python.noob; 11-11-2009 at 12:14 AM.
 
  


Reply

Tags
urpmi, wxwidgets


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
installing (executing) ggc compiler and wxWidgets on Red Hat Linux 4 Mihir V Patankar Linux - Newbie 2 05-26-2009 04:36 PM
Error due to wxWidgets while installing aMule source package Unforgiven79 Linux - Desktop 3 03-24-2007 08:42 AM
problem in configuring wxwidgets for cross compiling ra2000 Programming 5 12-13-2006 09:35 AM
problem in configuring wxwidgets ra2000 Programming 1 11-30-2006 04:21 AM

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

All times are GMT -5. The time now is 12:27 AM.

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