LinuxQuestions.org
Review your favorite Linux distribution.
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 10-13-2007, 09:39 AM   #1
amitabhishek
Member
 
Registered: Jul 2006
Location: Bombay, India
Distribution: Ubuntu (Hardy Heron)
Posts: 118

Rep: Reputation: 15
Unhappy Cannot install many packages


Hi,

I cannot install the packages which needs to be built locally on the system. I always get this error (Example):


amit@amit-desktop:~/Desktop/Apps$ cd /home/amit/Desktop/Apps/anjuta-2.2.1
amit@amit-desktop:~/Desktop/Apps/anjuta-2.2.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.


Pls help. I use Ubuntu 7.04
 
Old 10-13-2007, 09:47 AM   #2
MasterOfTheWind
Member
 
Registered: Jul 2004
Distribution: Arch, Debian sid, Kubuntu, Slackware 11
Posts: 324

Rep: Reputation: 30
Hav you tried to install the build-essential package?

Code:
sudo apt-get install build-essential
 
Old 10-13-2007, 10:13 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
And apt-get these too:
gawk
autoconf
automake
bison
flex

Then you should be ready for anything.

Last edited by brianL; 10-13-2007 at 10:19 AM.
 
Old 10-13-2007, 12:30 PM   #4
amitabhishek
Member
 
Registered: Jul 2006
Location: Bombay, India
Distribution: Ubuntu (Hardy Heron)
Posts: 118

Original Poster
Rep: Reputation: 15
I got this as response...



checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
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... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking return type of signal handlers... void
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.8.0) were not met:

No package 'glib-2.0' found

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

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

amit@amit-desktop:~/Desktop/Apps/anjuta-2.2.1$ /home/amit/Desktop/Apps/anjuta-2.2.1
 
Old 10-13-2007, 01:07 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Forgot something:

apt-get libtool

Not sure if it will help with your problem, but it's something ./configure looks for.
 
Old 10-13-2007, 01:10 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
apt-get install libglib2.0-dev libglib2.0

When it complains about missing libraries you can usually do apt-cache search -n LIBRARY and then pick a package that looks right.
 
Old 10-13-2007, 01:26 PM   #7
amitabhishek
Member
 
Registered: Jul 2006
Location: Bombay, India
Distribution: Ubuntu (Hardy Heron)
Posts: 118

Original Poster
Rep: Reputation: 15
No respite...


These are the output
-------------------------------------------------------------------------
checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking return type of signal handlers... void
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.8.0) were not met:

No package 'glib-2.0' found

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

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

amit@amit-desktop:~/Desktop/Apps/anjuta-2.2.1$ sudo apt-get install libglib2.0-dev libglib2.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libglib2.0
amit@amit-desktop:~/Desktop/Apps/anjuta-2.2.1$ sudo apt-get install libglib2.0-dev libglib2.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libglib2.0
amit@amit-desktop:~/Desktop/Apps/anjuta-2.2.1$ sudo apt-cache search -n LIBRARYguile-library - Library of useful Guile modules
hol88-library - Higher Order Logic, binary library modules
hol88-library-help - Higher Order Logic, library online help files
hol88-library-source - Higher Order Logic, library source files
lush-library - Lisp Universal Shell Library
partlibrary - Electrical and processing parts and symbols for QCad 2
scala-library - The Scala standard library
xml-resume-library - A set of tools for writing a resume in XML
amit@amit-desktop:~/Desktop/Apps/anjuta-2.2.1$
 
Old 10-13-2007, 01:30 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
My mistake, those were the Debian package names and Ubuntu's are slightly different.

apt-cache search -n glib2.0
 
Old 10-14-2007, 02:38 AM   #9
amitabhishek
Member
 
Registered: Jul 2006
Location: Bombay, India
Distribution: Ubuntu (Hardy Heron)
Posts: 118

Original Poster
Rep: Reputation: 15
Thanks to you all! I managed to install
 
  


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
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
Can't install packages on Debian Sarge base install Mark_667 Debian 5 01-29-2007 02:40 PM
How to install the rest of the Linux packages from USB drive after install? ArchW Linux - General 2 03-08-2006 07:50 AM
How to install teh rest of the Linux packages from USB drive after install? ArchW Linux - Newbie 4 03-07-2006 08:43 AM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM

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

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