LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   trouble configuring Courier. (https://www.linuxquestions.org/questions/linux-software-2/trouble-configuring-courier-141199/)

wparsons 02-01-2004 09:19 PM

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...

snacky 02-01-2004 10:06 PM

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.

wparsons 02-01-2004 10:48 PM

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?

snacky 02-01-2004 11:02 PM

gcc -version

wparsons 02-01-2004 11:18 PM

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?

snacky 02-01-2004 11:31 PM

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

wparsons 02-02-2004 08:49 AM

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.

wparsons 02-02-2004 09:05 AM

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.

snacky 02-02-2004 09:59 AM

Just download and install the rpm I linked to above.

wparsons 02-02-2004 12:47 PM

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.

snacky 02-02-2004 01:07 PM

OK, that doesn't work. Get a 2.95 gcc instead. Just ditch the 2.96, that's what's important I think.

wparsons 02-02-2004 02:58 PM

Okie.. I'll give that a go... Thanks!


All times are GMT -5. The time now is 12:25 PM.