LinuxQuestions.org
Help answer threads with 0 replies.
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 02-01-2004, 10:19 PM   #1
wparsons
LQ Newbie
 
Registered: Feb 2004
Location: Guelph, Ontario Canada
Distribution: Debian
Posts: 14

Rep: Reputation: 0
trouble configuring Courier.


Hello... I'm having trouble getting courier(imap server) installed.

I get the following error whenever I try to configure it:

configure: error: cannot compute suffix of executables: cannot compile and link
See `config.log' for more details.

I've tried many times, with no luck. I'm running redhat 7.2, with whatever version of GCC it comes with... I can compile, link, and run other c programs just not this one.

Its courier-0.44.2.20040125. Any help would be greatly appreciated...
 
Old 02-01-2004, 11:06 PM   #2
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
This may be the infamous gcc 2.96 crapulence. Some 2.96.xx versions are OK and others suck. My advice is to upgrade if you have one of these versions. 3.3.2 or 3.3.1 would be fine I think, and even 2.95.3 would be preferable to the 2.96.xx stuff because it'll work.

On the other hand, it might be something else...

What can I say, sounds like you're going to have to read config.log.

Post anything confusing back into this thread. But hopefully that's where your answer will be.
 
Old 02-01-2004, 11:48 PM   #3
wparsons
LQ Newbie
 
Registered: Feb 2004
Location: Guelph, Ontario Canada
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
All config.log says is that it is unable to compile and link. Everything before that is fine, and everything after is empty...


How can I check the version of GCC?

Last edited by wparsons; 02-01-2004 at 11:49 PM.
 
Old 02-02-2004, 12:02 AM   #4
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
gcc -version
 
Old 02-02-2004, 12:18 AM   #5
wparsons
LQ Newbie
 
Registered: Feb 2004
Location: Guelph, Ontario Canada
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
gcc -version gives me:
gcc: unrecognized option `-version'
gcc: No input files

gcc --version gives me:
2.96

What do I need to update for gcc... I was looking at their ftp site earlier today(I've suspected its a gcc issue for a while) and there is about 10 or 12 tarballs for version 3.2.3(or whatever the newest current release is).

Do I need all of them, or just certain ones?
 
Old 02-02-2004, 12:31 AM   #6
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
Get releases/gcc-3.3.2.tar.bz2

Unpack with "tar xjf gcc-3.3.2.tar.bz2"

./configure && make && make install

You know, on second thought you may want to get an rpm for this:
ftp://rpmfind.net/linux/PLD/current/...3.2-1.i386.rpm
 
Old 02-02-2004, 09:49 AM   #7
wparsons
LQ Newbie
 
Registered: Feb 2004
Location: Guelph, Ontario Canada
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
configuring, making and installing is easy enough.. I wasn't sure which of the tar's I needed.. Thanks for the help so far.. I'll post up with the results after getting the newer gcc.
 
Old 02-02-2004, 10:05 AM   #8
wparsons
LQ Newbie
 
Registered: Feb 2004
Location: Guelph, Ontario Canada
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
Here's the results...

[will@chuck gcc-3.3.2]$ ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/will/gcc-3.3.2 using "mt-frag"
./configure: line 88: 32324 Aborted ${CC-cc} $dummy.c -o $dummy 2>/dev/null
Cannot find the GNU C library minor version number.
[will@chuck gcc-3.3.2]$ ./configure && make && make install
./config.guess: line 1: 32384 Aborted ( $c -c -o $dummy.o $dummy.c ) >/dev/null 2>&1
./config.guess: line 1: 32387 Aborted ( $c -c -o $dummy.o $dummy.c ) >/dev/null 2>&1
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/will/gcc-3.3.2 using "mt-frag"
./configure: line 8: 553 Aborted ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


Seems like trying to configure gcc gives me the same error as when I tried to configure courier... How do I set the environment variable CC, and what does that do?

*edit* I get the same problem logged in as root, so its not a permission problem.

Last edited by wparsons; 02-02-2004 at 10:08 AM.
 
Old 02-02-2004, 10:59 AM   #9
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
Just download and install the rpm I linked to above.
 
Old 02-02-2004, 01:47 PM   #10
wparsons
LQ Newbie
 
Registered: Feb 2004
Location: Guelph, Ontario Canada
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
When I try the RPM I get this(logged in as root):

error: failed dependencies:
binutils >= 2.12.90.0.4 is needed by gcc-3.3.2-1
cpp = 3.3.2 is needed by gcc-3.3.2-1
libgcc = 3.3.2 is needed by gcc-3.3.2-1
libc.so.6(GLIBC_2.3) is needed by gcc-3.3.2-1
glibc-devel < 2.2.5-20 conflicts with gcc-3.3.2-1

Do I need to update all the dependencies, or is that something I need to get from the CD's? I thought I installed all the c and java development tools, but I could be wrong.
 
Old 02-02-2004, 02:07 PM   #11
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
OK, that doesn't work. Get a 2.95 gcc instead. Just ditch the 2.96, that's what's important I think.
 
Old 02-02-2004, 03:58 PM   #12
wparsons
LQ Newbie
 
Registered: Feb 2004
Location: Guelph, Ontario Canada
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
Okie.. I'll give that a go... Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
posfix with courier maildrop and courier-imap Anuragn Linux - Enterprise 4 01-17-2007 05:33 AM
trouble with courier imap jrafalek Linux - Software 2 06-04-2005 07:22 AM
Configuring courier-imap courier-pop redsky Debian 1 06-02-2004 04:09 PM
Configuring courier-imap courier-pop redsky Linux - Software 0 06-01-2004 01:06 PM
Courier > Procmail > Courier problem bowker Linux - Software 0 03-14-2004 06:57 PM


All times are GMT -5. The time now is 11:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration