LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles 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 04-03-2004, 07:13 PM   #1
Fox13
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Rep: Reputation: 0
using ./configure


Ok, I managed to get GCC installed (With some other stuff) but I still cannot get ./configure to work correctly. This is what I get when I use it:

checking for a BSD-compatible install... /usr/bin/install -c
checking weather build environment is sane... yes
checking for gawk... gawk
checking weather make sets $(MAKE)... yes
checking weather to enable maintaner-specific portions of Makefiles...
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler

I'm confused over this :/ if anyone can help me out, I'd be greatul for it! (Thanks for who-ever showed me the thread giving details of getting GCC from CD3)

I am using Lycoris Desktop/LS and have CD's 1, 2 & 3. It has been fully updated using the update function.
 
Old 04-03-2004, 10:15 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
you might be missing some required libraries, look thru the directories on CD3 for lib packages......
 
Old 04-04-2004, 07:22 AM   #3
Fox13
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, I installed the lib packages - but now I'm having a different problem.
Upon doing './configure' I get a long list of things (probably a good thing) until it finishes. the end of the list looks like this:

checking system type... Linux
checking pkg-config... no
checking for GLIB - version >= 2.0.3... no
*** A new enough version of pkg-config was not found.
*** See http://www.freedesktop.org/software/pkgconfig/
configure: error: "cannot find glib"

Ok, it seems pretty clear even to me, a complete newbie to Linux. But here is where the trouble comes in...

I downloaded pkgconfig-0.15.0 and now I'm having trouble installing it. ./configure seems to work ok for installing pkgconfig, and 'make check' gives me good results. (so does 'make') But if I try 'make install', I get un-explained errors. Here is what I get:

/bin/sh ./libtool --mode=install /usr/bin/install -c pkg-config /usr/local/bin/pkg-config
/usr/bin/install -c pkg-config /usr/local/bin/pkg-config
/usr/bin/install: cannot create regular file `/usr/local/bin/pkg-config': Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/alex/Desktop/Downloads/pkgconfig-0.15.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/alex/Desktop/Downloads/pkgconfig-0.15.0'
make: *** [install-recurs ive] Error 1

This has left me thinking what the hell is going on If anyone can give me a hand on this one, I might finally be able to use ./configure blind-folded!

Thanks
 
Old 04-04-2004, 12:20 PM   #4
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Are you aware that make install usually requires root privileges? Try doing 'su' just before you do make install. Note that root priveleges are not required to do ./configure or make.

Hope this helps,
Mark Byers.
 
Old 04-04-2004, 12:44 PM   #5
thehundredthone
Member
 
Registered: Nov 2003
Distribution: Fedora Core 1
Posts: 76

Rep: Reputation: 15
i think lycoris doesn't need all the compiling progs by default so it doesn't install them. you'll need glib, gcc, g++ and others to compile without errors.
Muzzy is right. you need to be root before you
Code:
make install
so either use su or try sudo. beware though, sudo is powerful and dangerous if set up wrong
 
Old 04-04-2004, 04:32 PM   #6
Fox13
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for that little tip about using 'su' before trying to use 'make install'. it seemed to do the trick!!

I believe I am *almost* at the last of my problems now, and I pretty much KNOW what I have to do - I just don't know how to go about doing it. I've now intalled GLib 2.0.7, but I don't think it's registering with 'pkg-config'. This is now what I end up with when I use './configure' :

checking for GLIB - version >= 2.0.3...
*** 'pkg-config --modversion glib-2.0' returned 2.0.7, but GLIB (2.2.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: "Cannot find glib"

Right - so I have to remove GLIB 2.2.3 right? I think that's what I need to do, but I don't know how to do it. Migrating from Windows to Linux, I found myself rather stuck on this topic, and I don't want to do anything in-case I accidently cause harm to the system. If someone could post me a little info on how to go about doing this, I would greatly appreciate it!

Thanks guys!
 
Old 04-04-2004, 05:15 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
No! Keep 2.2.3, it's more recent.

Find 2.0.7 and remove that instead.
 
Old 04-04-2004, 05:18 PM   #8
Fox13
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, I will remove 2.0.7, but I don't know how to do it. Can you give me any ideas on how to do such a thing without risk?

Thanks for your advice!!
 
Old 04-05-2004, 04:14 AM   #9
thehundredthone
Member
 
Registered: Nov 2003
Distribution: Fedora Core 1
Posts: 76

Rep: Reputation: 15
does lycoris use rpm?? or any other package manager? if you have something like "Add or Remove Applications" or similar, then use it to remove glibc-2.0.7
if you use rpm, use
Code:
rpm -e glibc-2.0.7
if you installed from source (./configure, make, make install) then go to the directory you did it from, and type
Code:
make uninstall
 
Old 04-05-2004, 06:11 AM   #10
Fox13
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, I've now come to the conclusion that GLIB 2.2.3 was never actually installed, and it is in fact pkg-config that is wrong. It tells me to set the environment variable PKG_CONFIG_PATH to point to the correct configuration files.

This is the section I am talking about

*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files

I'm guessing I could point it towards the correct configuration files, I just don't know how to.

Is it just editing a text file or is it something more complex? If you could assist me on this problem, please do!

(I'm having a hard time at the moment, but the way I see it is - Learn from your mistakes, and then you'll be able to help others. I too, want to help others as you have all helped me)
 
Old 04-05-2004, 06:16 AM   #11
thehundredthone
Member
 
Registered: Nov 2003
Distribution: Fedora Core 1
Posts: 76

Rep: Reputation: 15
your message says that the .pc file found in /usr/lib/pkgconfig sez that the version is 2.0.7

if you've installed glibc, then look for a glibc-devel package. if not, then please give us the output of cat /usr/lib/pkgconfig/glib*.pc
 
Old 04-13-2004, 06:36 PM   #12
MaddDog696
LQ Newbie
 
Registered: Apr 2004
Location: NV
Distribution: RedHat 9
Posts: 8

Rep: Reputation: 0
Here is one way to fix the error. it is looking for a libxxx.pc file. this tells where all of the other files are located. usually, this is installed in either /usr/local.lib/pgkconfig -or- /usr/lib/pkgconfig. you can solve this by logging in as root and adding this line to yout /etc/profile file.

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

put your pkgconfig folder name as the link. reboot and try again.

hope this helps
 
Old 04-13-2004, 09:06 PM   #13
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by thehundredthone
your message says that the .pc file found in /usr/lib/pkgconfig sez that the version is 2.0.7

if you've installed glibc, then look for a glibc-devel package. if not, then please give us the output of cat /usr/lib/pkgconfig/glib*.pc
glib and glibc are NOT the same thing. glibc is the gnu C library; glib is the gtk type definitions library.
 
  


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
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
How to use GNU autoconf to generate a new configure from configure.in ?? vanhelsing Programming 5 08-05-2004 10:02 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM

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

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