LinuxQuestions.org
Visit Jeremy's Blog.
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-06-2007, 06:52 PM   #1
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
compiling error


I got the following message when trying to install fluxbox menu from source. (I don't do this often)

I got the following...
Code:
[root@localhost ftmenu-0.3]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for pkg-config... /usr/bin/pkg-config
checking for glib >= 1.2... Package glib was not found in the pkg-config search path. Perhaps you should add the directory containing `glib.pc' to the PKG_CONFIG_PATH environment variable No package 'glib' found
configure: error: Library requirements (glib >= 1.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
[root@localhost ftmenu-0.3]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost ftmenu-0.3]#
What is wrong/how do I fix it?

Edit:

And for fbdesk, got this:

Code:
[root@localhost fbdesk-1.4.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... failed
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
checking signal.h usability... no
checking signal.h presence... no
checking for signal.h... no
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking sys/signal.h usability... no
checking sys/signal.h presence... no
checking for sys/signal.h... no
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... no
checking sys/time.h presence... no
checking for sys/time.h... no
checking for sys/types.h... (cached) yes
checking sys/wait.h usability... no
checking sys/wait.h presence... no
checking for sys/wait.h... no
checking sstream usability... no
checking sstream presence... no
checking for sstream... no
checking strstream usability... no
checking strstream presence... no
checking for strstream... no
configure: error: Your libstdc++ doesn't have the sstream or strstream classes
[root@localhost fbdesk-1.4.1]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost fbdesk-1.4.1]#

Last edited by phantom_cyph; 11-06-2007 at 06:56 PM.
 
Old 11-06-2007, 07:21 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
checking for glib >= 1.2... Package glib was not found in the pkg-config search path. Perhaps you should add the directory containing `glib.pc' to the PKG_CONFIG_PATH environment variable No package 'glib' found
Install glib 1.2 or higher.

Quote:
configure: error: Your libstdc++ doesn't have the sstream or strstream classes
Update libstdc++ or find out which package includes those classes and install it.
 
Old 11-06-2007, 07:31 PM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
It's a bad idea to run ./configure and make as root. Only do the final stage make install as root.
 
Old 11-06-2007, 08:15 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Problem with installing glib...its already there.
Code:
[root@localhost phantom]# yum install glib2
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
Setting up Install Process
Parsing package install arguments
Package glib2 - 2.12.13-1.fc7.i386 is already installed.
Nothing to do
[root@localhost phantom]#
 
Old 11-06-2007, 09:43 PM   #5
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
I went and installed everything mentioning glib in it, and now it is asking for gtk+-2.0. Where can I find that?

Exact error:
Code:
....
checking GLIB_LIBS... -lglib
checking for gtk+-2.0 >= 2.6... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
 
Old 11-07-2007, 02:17 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
The package you needed to install was glib-devel (glib-dev on some distros). The one that you need to install to fix the gtk+-2.0 is gtk2-devel ( or gtk2-dev). When compiling packages, if something is listed as "missing", usually you just need to install the corresponding development package.
 
Old 11-07-2007, 05:53 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
it is asking for gtk+-2.0. Where can I find that?
Same place you got the glib packages.
Quote:
if something is listed as "missing", usually you just need to install the corresponding development package.
It is quite unusual in linux to be able to compile anything without the -dev packages. I guess we just get used to it.
 
Old 11-07-2007, 12:32 PM   #8
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by Simon Bridge View Post
Same place you got the glib packages.
It is quite unusual in linux to be able to compile anything without the -dev packages. I guess we just get used to it.
You learn something new everyday. lol. Still, I don't know what to install. I did a yum list | grep -i gtk to see what I can get, and this is what I got.
Code:
GConf2-gtk.i386                          2.18.0.1-2.fc7         installed
authconfig-gtk.i386                      5.3.15-1.fc7           installed
gnome-python2-gtkhtml2.i386              2.14.3-5.fc7           installed
gnome-python2-gtksourceview.i386         2.18.0-1.fc7           installed
gtk+.i386                                1:1.2.10-57.fc7        installed
gtk+-devel.i386                          1:1.2.10-57.fc7        installed
gtk-sharp2.i386                          2.10.0-4.fc7           installed
gtk2.i386                                2.10.14-3.fc7          installed
gtk2-engines.i386                        2.10.2-2.fc7           installed
gtkhtml2.i386                            2.11.0-4               installed
gtkhtml3.i386                            3.14.3-1.fc7           installed
gtksourceview.i386                       1.8.5-1.fc7            installed
gtkspell.i386                            2.0.11-3.fc7           installed
pygtk2.i386                              2.10.6-1.fc7           installed
pygtk2-libglade.i386                     2.10.6-1.fc7           installed
scim-bridge-gtk.i386                     0.4.10-1.fc7           installed
usermode-gtk.i386                        1.93-1.fc7             installed
xdg-user-dirs-gtk.i386                   0.5-1.fc7              installed
GtkAda.i386                              2.8.0-7.fc7            fedora
GtkAda-devel.i386                        2.8.0-7.fc7            fedora
aiksaurus-gtk.i386                       1:1.2.1-15.fc6         fedora
aiksaurus-gtk-devel.i386                 1:1.2.1-15.fc6         fedora
bitgtkmm.i386                            0.4.0-2.fc7            fedora
bitgtkmm-devel.i386                      0.4.0-2.fc7            fedora
blogtk.noarch                            1.1-8.fc7              fedora
bzr-gtk.noarch                           0.15.2-2.fc7           fedora
bzr-gtk.i386                             0.91.0-2.fc7           updates
claws-mail-plugins-gtkhtml2-viewer.i386  3.0.1-1.fc7            updates
clutter-gtk.i386                         0.1.0-3.fc7            fedora
clutter-gtk-devel.i386                   0.1.0-3.fc7            fedora
compat-wxGTK.i386                        2.4.2-21.fc6           fedora
compat-wxGTK-common.i386                 2.4.2-21.fc6           fedora
compat-wxGTK-common-devel.i386           2.4.2-21.fc6           fedora
compat-wxGTK-devel.i386                  2.4.2-21.fc6           fedora
compat-wxGTK-gl.i386                     2.4.2-21.fc6           fedora
compat-wxGTK-stc.i386                    2.4.2-21.fc6           fedora
compat-wxGTK-xrc.i386                    2.4.2-21.fc6           fedora
compat-wxGTK2.i386                       2.4.2-21.fc6           fedora
compat-wxGTK2-devel.i386                 2.4.2-21.fc6           fedora
compat-wxGTK2-gl.i386                    2.4.2-21.fc6           fedora
compat-wxGTK2-stc.i386                   2.4.2-21.fc6           fedora
compat-wxGTK2-xrc.i386                   2.4.2-21.fc6           fedora
compat-wxGTK26.i386                      2.6.3-2                fedora
compat-wxGTK26-devel.i386                2.6.3-2                fedora
compat-wxPythonGTK2.i386                 2.4.2.4-15.fc7         fedora
ekg2-gtk2.i386                           0-0.7.20070427.fc7     updates
ettercap-gtk.i386                        0.7.3-19.fc7           fedora
fusion-icon-gtk.noarch                   0.1-0.13.20070814git.f kagesenshi
gauche-gtk.i386                          0.4.1-15.fc7           updates
ghc-gtk2hs.i386                          0.9.12-1.fc7           updates
ghc661-gtk2hs.i386                       0.9.12-1.fc7           updates
ghostscript-gtk.i386                     8.15.4-3.fc7           fedora
gnome-python2-gtkmozembed.i386           2.14.3-5.fc7           updates
gnome-python2-gtkspell.i386              2.14.3-5.fc7           updates
gtk+extra.i386                           2.1.1-5.fc7            updates
gtk+extra-devel.i386                     2.1.1-5.fc7            updates
gtk-doc.noarch                           1.8-2.fc7              fedora
gtk-gnutella.i386                        0.96.4-1.fc7           updates
gtk-murrine-engine.i386                  0.52-1.fc7             fedora
gtk-qt-engine.i386                       0.70-5.20070811svn.fc7 updates
gtk-recordmydesktop.noarch               0.3.6-1.fc7.1          updates
gtk-rezlooks-engine.i386                 0.6-4.fc7              fedora
gtk-sharp.i386                           1.0.10-12.fc7          fedora
gtk-sharp-devel.i386                     1.0.10-12.fc7          fedora
gtk-sharp-gapi.i386                      1.0.10-12.fc7          fedora
gtk-sharp-gapi-devel.i386                1.0.10-12.fc7          fedora
gtk-sharp2-devel.i386                    2.10.0-4.fc7           fedora
gtk-sharp2-doc.i386                      2.10.0-4.fc7           fedora
gtk-sharp2-gapi.i386                     2.10.0-4.fc7           fedora
gtk-vnc.i386                             0.2.0-2.fc7            updates
gtk-vnc-devel.i386                       0.2.0-2.fc7            updates
gtk-vnc-python.i386                      0.2.0-2.fc7            updates
gtk-xfce-engine.i386                     2.4.1-1.fc7            fedora
gtk2-devel.i386                          2.10.14-3.fc7          updates
gtk2hs-doc.i386                          0.9.12-1.fc7           updates
gtkdatabox.i386                          0.7.0.1-1.fc7          fedora
gtkdatabox-devel.i386                    0.7.0.1-1.fc7          fedora
gtkglarea2.i386                          1.99.0-7.fc6           fedora
gtkglarea2-devel.i386                    1.99.0-7.fc6           fedora
gtkglext.i386                            1.2.0-4.fc6            fedora
gtkglext-devel.i386                      1.2.0-4.fc6            fedora
gtkglextmm.i386                          1.2.0-5.fc6            fedora
gtkglextmm-devel.i386                    1.2.0-5.fc6            fedora
gtkhtml2-devel.i386                      2.11.0-4               fedora
gtkhtml3-devel.i386                      3.14.3-1.fc7           updates
gtkhtml38.i386                           3.12.3-4.fc7           fedora
gtkhtml38-devel.i386                     3.12.3-4.fc7           fedora
gtklp.i386                               1.2.5-1.fc7            updates
gtkmathview.i386                         0.7.6-5.fc6            fedora
gtkmathview-devel.i386                   0.7.6-5.fc6            fedora
gtkmm24.i386                             2.10.11-1.fc7          updates
gtkmm24-devel.i386                       2.10.11-1.fc7          updates
gtkmm24-docs.i386                        2.10.11-1.fc7          updates
gtkmozembedmm.i386                       1.4.2.cvs20060817-13.f updates
gtkmozembedmm-devel.i386                 1.4.2.cvs20060817-13.f updates
gtkperf.i386                             0.40-6.fc7             updates
gtkpod.i386                              0.99.8-3.fc7           fedora
gtksourceview-devel.i386                 1.8.5-1.fc7            fedora
gtksourceview-sharp.i386                 2.0-25.fc7             fedora
gtksourceview-sharp-devel.i386           2.0-25.fc7             fedora
gtkspell-devel.i386                      2.0.11-3.fc7           fedora
gtkterm.i386                             0.99.5-4.fc7           updates
gtkwave.i386                             3.0.28-1.fc7           fedora
kgtk.i386                                0.8-2.fc7              fedora
lablgtk.i386                             2.6.0-7.fc7            fedora
lablgtk-doc.i386                         2.6.0-7.fc7            fedora
libextractor-plugins-thumbnailgtk.i386   0.5.17a-1.fc7          fedora
libgalago-gtk.i386                       0.5.0-4.fc6            fedora
libgalago-gtk-devel.i386                 0.5.0-4.fc6            fedora
libgtk-java.i386                         2.8.7-4.fc7            fedora
libgtk-java-devel.i386                   2.8.7-4.fc7            fedora
libgtksourceviewmm.i386                  0.3.1-1.fc7            updates
libgtksourceviewmm-devel.i386            0.3.1-1.fc7            updates
libgtksourceviewmm-doc.i386              0.3.1-1.fc7            updates
libswt3-gtk2.i386                        1:3.2.2-15.fc7         updates
libtomoe-gtk.i386                        0.5.1-2.fc7            fedora
libtomoe-gtk-devel.i386                  0.5.1-2.fc7            fedora
mtr-gtk.i386                             2:0.72-2               fedora
pcmanx-gtk2.i386                         0.3.5-9.336svn.fc7     fedora
perl-Gtk2.i386                           1.144-1.fc7            fedora
perl-Gtk2-Ex-CalendarButton.noarch       0.01-4.fc7             updates
perl-Gtk2-Ex-Carp.noarch                 0.01-3.fc7             fedora
perl-Gtk2-Ex-Dialogs.noarch              0.11-2.fc7             fedora
perl-Gtk2-Ex-PodViewer.noarch            0.17-2.fc7             fedora
perl-Gtk2-Ex-Simple-List.noarch          0.50-2.fc7             fedora
perl-Gtk2-Ex-Utils.noarch                0.09-2.fc7             fedora
perl-Gtk2-GladeXML.i386                  1.006-1.fc6            fedora
perl-Gtk2-Notify.i386                    0.03-1.fc7             updates
perl-Gtk2-Sexy.i386                      0.02-5.fc6             fedora
perl-Gtk2-Spell.i386                     1.03-5.fc6             fedora
perl-Gtk2-TrayIcon.i386                  0.06-1.fc7             updates
pinentry-gtk.i386                        0.7.2-14.fc7           fedora
plplot-wxGTK.i386                        5.7.3-2.fc7            fedora
plplot-wxGTK-devel.i386                  5.7.3-2.fc7            fedora
pygtk2-codegen.i386                      2.10.6-1.fc7           updates
pygtk2-devel.i386                        2.10.6-1.fc7           updates
pygtkglext.i386                          1.1.0-2.fc7            fedora
pygtkglext-devel.i386                    1.1.0-2.fc7            fedora
qalculate-gtk.i386                       0.9.6-1.fc7            updates
ruby-gtk2.i386                           0.16.0-14.fc7          updates
ruby-gtk2-devel.i386                     0.16.0-14.fc7          updates
ruby-gtkglext.i386                       0.16.0-14.fc7          updates
ruby-gtkhtml2.i386                       0.16.0-14.fc7          updates
ruby-gtkmozembed.i386                    0.16.0-14.fc7          updates
ruby-gtksourceview.i386                  0.16.0-14.fc7          updates
scim-gtk.i386                            1.4.5-21.fc7           updates
swfdec-gtk.i386                          0.5.3-1.lvn7           livna
swfdec-gtk-devel.i386                    0.5.3-1.lvn7           livna
uim-gtk2.i386                            1.4.1-4.fc7            updates
wxGTK.i386                               2.8.4-3.fc7            updates
wxGTK-devel.i386                         2.8.4-3.fc7            updates
wxGTK-gl.i386                            2.8.4-3.fc7            updates
xlockmore-gtk.i386                       5.23-1.fc7             fedora
Which do I need?
 
Old 11-07-2007, 03:03 PM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by phantom_cyph
Still, I don't know what to install.
Quote:
Originally Posted by reddazz
The package you needed to install was glib-devel (glib-dev on some distros). The one that you need to install to fix the gtk+-2.0 is gtk2-devel ( or gtk2-dev). When compiling packages, if something is listed as "missing", usually you just need to install the corresponding development package.
I already gave you a hint.
 
  


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
Compiling Error penguin_vinc Programming 7 07-25-2007 07:31 AM
i get an error ./term.c :95 error conflicting types of tpam when compiling bitchx eveningblush Programming 0 03-30-2006 06:46 AM
Error compiling php 5.1 and also a fantastico error arachn1d Linux - Software 0 02-19-2006 04:52 PM
error compiling megadeth Linux - Software 1 05-29-2005 01:43 AM
2.6.0 compiling error Obscure Slackware 8 12-24-2003 09:53 AM

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

All times are GMT -5. The time now is 09:26 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