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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-13-2018, 10:12 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2018
Posts: 5
Rep: 
|
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.
|
|
|
|
01-13-2018, 10:28 AM
|
#2
|
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
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.
|
01-13-2018, 10:45 AM
|
#3
|
|
Senior Member
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
|
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.
|
01-13-2018, 11:22 AM
|
#4
|
|
LQ Newbie
Registered: Jan 2018
Posts: 5
Original Poster
Rep: 
|
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.
|
|
|
|
01-13-2018, 11:26 AM
|
#5
|
|
LQ Newbie
Registered: Jan 2018
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by hydrurga
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.
|
|
|
|
01-13-2018, 11:52 AM
|
#6
|
|
LQ Newbie
Registered: Jan 2018
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by jsbjsb001
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.
|
|
|
|
All times are GMT -5. The time now is 06:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|