LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-14-2004, 11:25 AM   #1
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Rep: Reputation: 15
C compiler when running configure


Hi, in SuSE Linux Personal 9.1, when I try to install various programs as ROOT with ./configure, it comes up with this:

linux:/home/aali/gtk stuff/gtk+-2.4.6 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/aali/gtk: /home/aali/gtk: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for native Win32... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


What do I need to do? Thanks.

 
Old 08-14-2004, 12:47 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,343

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
"configure: error: no acceptable C compiler found in $PATH"

You do not have the C compiler, gcc, installed. I don't think that gcc comes on the SuSE 9.1 personal install CD. You should go to:
ftp://ftp.suse.com/pub/suse/i386/current/suse/i586/

Download and install:
gcc-3.3.3-41.i586.rpm

If it complains about any missing dependencies download and install them too.


---------------------------
Steve Stites
 
Old 08-15-2004, 11:16 AM   #3
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
That was a good start, I installed gcc, and I believed it installed successfully.

Then I run inux:/home/aali # ./gtk+-2.4.6/configure (I am trying to install GTK+). It goes through a lot, then says:

Quote:
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
Well I attempt to install glib and pkg_config with various results.

I install pkg_config by doing linux:/home/aali # ./pkgconfig-0.15.0/configure and it seems to be fine.

Then when I try to install glib by doing linux:/home/aali # ./glib-2.4.6/configure I get this at the end:

Quote:
configure: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/
I'm definitely running the latest version, 0.15.0.

What am I doing wrong here? Am I installing stuff in the wrong directories? In general when you run an install in linux, where does everything go, in the directory you are working in? I generally download programs from the internet into my home directory, and unpack them one level up and just run them.

Help is really appreciated, thank you.
 
Old 08-15-2004, 11:29 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Most 'make install' scripts put things into /usr/local if you don't specify otherwise. Binaries go into /usr/local/bin and libraries go into /usr/local/lib. You might want to do updatedb and then 'locate pkg-config' to make sure it got installed correctly (you did remember to type 'make install', right?). Make sure that pkg-config is in your $PATH, assuming that it is installed.
 
Old 08-16-2004, 05:30 PM   #5
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
Stupid question, but what does $PATH represent? And when you say to make sure pkg-config is there, does that mean unpackage it in $PATH (whatever that is) and install it there?

Thanks
 
Old 08-17-2004, 08:30 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

$PATH is a variable which tells Linux where to find binaries (or scripts). For example:
Code:
[15:25][olivier@Olinux-lfs ~/doc]$ echo $PATH
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/home/olivier/bin
It means that when I want to run mozilla for example, Linux will have a look in /bin, if it doesn't find mozilla in /bin, it'll have a look in /usr/bin ... and browse each directory present in $PATH until it finds the application to run. If it fails, it'll display a message like:
Code:
[15:27][olivier@Olinux-lfs ~/doc]$ my_app
bash: my_app: command not found
Oliv'
 
Old 08-17-2004, 01:18 PM   #7
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
So if I'm running pkg_config in my home directory, how could it not be in my $PATH ?
 
Old 08-18-2004, 07:13 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Quote:
I install pkg_config by doing linux:/home/aali # ./pkgconfig-0.15.0/configure and it seems to be fine.
And did you run "make" and "make install" ? if yes, well check your PATH (echo $PATH)...

Oliv'
 
Old 08-18-2004, 07:15 AM   #9
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
I'll try the TGZ again, but I've also been trying an RPM install, which just does its thing when I type "rpm -i blah"... so I don't know how to "make install" with that.
 
Old 08-18-2004, 07:29 AM   #10
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
If you install the package from a tarball (.tgz extension), do the following:
Code:
tar xzf my_package.tgz
cd my_package
./configure
make
su
make install
line1: package decompression
line2: enter the directory
line3: configure step: check if you have the required tools to compile the package
line4: compilation stage
line5: log as root
line6: will install the compiled package in the suitable directory (in general in /usr/local/bin/)
If you install the package from a RPM, do the following:
Code:
rpm -ivh my_package.rpm
-i option for installation
-v for verbose
-h for dependencies check

Oliv'
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
GCC 3.4.1 configure script needs CC compiler? battousai9439 Linux - Software 11 12-24-2004 01:33 PM
I am in a trouble between ./configure apache2 and c compiler babyboss Slackware 6 10-21-2004 08:57 AM
./configure cant find a compiler habitue Linux - Software 18 10-15-2003 03:34 PM
C compiler fails when running the configure command So_What_Linux Linux - Software 3 08-25-2003 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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