LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2018, 10:12 AM   #1
rangora
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Rep: Reputation: Disabled
glib-2.54.2 package install in fedora


in fact, my aim is install gtk+ higher version then 2.0 in my fedora26.
so i install that required package one by one.
first i download and install 'glib-2.54.2' like this.
./configure -> make -> sudo make install
and there is no any error.
then i download 'gobject-introspection-1.54.1' and type ./configure but console show this massage.

Code:
 configure: error: Package requirements (glib-2.0 >= 2.54.0) were not met:

Package 'glib-2.0', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
i think that problem is associated with environment variable path
but i recently started linux so i don't know what to do

Last edited by rangora; 01-13-2018 at 10:13 AM.
 
Old 01-13-2018, 10:28 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927
As far as I am aware, Fedora 26 ships with Gtk+ 3.22.16.

It is usually inadvisable to play around with fundamental packages such as glib on a distro, especially for someone who is new to Linux - so much of the system is reliant on the specific package versions that the distro includes in a particular release.

So, I have to ask: For what specific reason are you trying to do what you're trying to do? Are you trying to play a specific game, for example?
 
2 members found this post helpful.
Old 01-13-2018, 10:45 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I have to agree with hydrurga here, you should be using your package manager to install software. Unless you are experienced in compiling software on Linux, it can get very messy very quickly, if you do not have the experience.

Why don't you tell us exactly which package it is you would like to install and we can give you some further pointers.

While I'm using CentOS myself, Fedora is a related Linux distribution and the package your after is installed by default on my system.

Code:
[root@localhost ~]# yum info gobject-introspection
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * elrepo: mirrors.netix.net
 * epel: mirror.aarnet.edu.au
 * extras: centos.mirror.crucial.com.au
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: rpms.remirepo.net
 * updates: centos.mirror.crucial.com.au
Installed Packages
Name        : gobject-introspection
Arch        : x86_64
Version     : 1.42.0
Release     : 1.el7
Size        : 786 k
Repo        : installed
From repo   : anaconda
Summary     : Introspection system for GObject-based libraries
URL         : http://live.gnome.org/GObjectIntrospection
License     : GPLv2+, LGPLv2+, MIT
Description : GObject Introspection can scan C header and source files in order to
            : generate introspection "typelib" files.  It also provides an API to examine
            : typelib files, useful for creating language bindings among other
            : things.
 
1 members found this post helpful.
Old 01-13-2018, 11:22 AM   #4
rangora
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
actually, i would like to run openCV libraries in code::blocks.
When i compile,in codeblocks, console show this massage.
Code:
OpenCV Error: Unspecified error(The function is not implemented. Rebuild the library with Windows, GTK+2.0 or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script ......etc..
And then when i build opencv with cmake show this.. (opencv3.4.0)
(typing:cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..)
Code:
--   GUI: 
--     GTK+:                        NO
--     VTK support:                 YES (ver 7.1.1)
so i think that need to install GTK+.
then i type 'yum list gtk+-devel' and result is
Code:
Installed Packages
gtk+-devel.x86_64                           1:1.2.10-83.fc26                           @fedora
Available Packages
gtk+-devel.i686                             1:1.2.10-83.fc26                           fedora
this is why i install gtk+2.0.
 
Old 01-13-2018, 11:26 AM   #5
rangora
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
As far as I am aware, Fedora 26 ships with Gtk+ 3.22.16.

It is usually inadvisable to play around with fundamental packages such as glib on a distro, especially for someone who is new to Linux - so much of the system is reliant on the specific package versions that the distro includes in a particular release.

So, I have to ask: For what specific reason are you trying to do what you're trying to do? Are you trying to play a specific game, for example?
forgot to quote T^T
i wrote more detail reason below.
 
Old 01-13-2018, 11:52 AM   #6
rangora
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
I have to agree with hydrurga here, you should be using your package manager to install software. Unless you are experienced in compiling software on Linux, it can get very messy very quickly, if you do not have the experience.

Why don't you tell us exactly which package it is you would like to install and we can give you some further pointers.

While I'm using CentOS myself, Fedora is a related Linux distribution and the package your after is installed by default on my system.

Code:
[root@localhost ~]# yum info gobject-introspection
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * elrepo: mirrors.netix.net
 * epel: mirror.aarnet.edu.au
 * extras: centos.mirror.crucial.com.au
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: rpms.remirepo.net
 * updates: centos.mirror.crucial.com.au
Installed Packages
Name        : gobject-introspection
Arch        : x86_64
Version     : 1.42.0
Release     : 1.el7
Size        : 786 k
Repo        : installed
From repo   : anaconda
Summary     : Introspection system for GObject-based libraries
URL         : http://live.gnome.org/GObjectIntrospection
License     : GPLv2+, LGPLv2+, MIT
Description : GObject Introspection can scan C header and source files in order to
            : generate introspection "typelib" files.  It also provides an API to examine
            : typelib files, useful for creating language bindings among other
            : things.
thanks for reply.
i try to using yum, apt.. but can't update.
so i download higher version on the website(https://www.gtk.org/)
and i follow this instruction(https://developer.gnome.org/gtk3/sta...-building.html)

Last edited by rangora; 01-13-2018 at 11:54 AM.
 
  


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
cannot find hal package, or glib-config, please help zbryant4210 Linux - Software 3 10-07-2009 02:40 PM
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
Can't install glib 1.2.10 on Fedora Core 3 sureshot324 Linux - Software 3 11-26-2004 05:12 AM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
Fedora Core 2 Install failing during package install Sledge Fedora - Installation 1 06-02-2004 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:14 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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