Whenever I try to run the configure tool, I keep getting an error message that reads "Sorry, but I can't find an ANSI C compiler here." I think it's having trouble locating my version of GCC. Is there some way to fix this? I've followed the guide here to try to get it to run on Mac OS X, but I don't think these are for AFTER configure is run.
do think*
Those instructions are out of date. You should be able to compile on recent versions of OSX if you have installed XCode.
I have the latest version of XCode installed. Should I just leave the files unedited, then? I didn't think that would affect the configure script.
(Sorry if you got a double post. Forgot to click the 'reply' button on the first time around.)
Last edit: Threyon 2014-12-27
I've never had to change any of the source.
Try running 'autoconf' before running './configure'
Todd Sundsted schreef op 27-12-2014 04:55:
Related
Support Requests: #13
Try running 'autoconf' before running './configure'
There is no autoconf file. At least, not in the version of the server I downloaded (1.8.1).
I think it's called aclocal.m4, but it shouldn't matter..
If you have autoconf installed, you should be able to run it from the source-directory
Ahh, wasn't aware that was something I had to install. Thought it was a script included with the software itself. I have it installed now, and ran it with the configure.in file (since it looks like that's the one that should be used with autoconf). I got a huge amount of output on my screen, beeped a couple times, but no new configure script came of it at all.
http://www.linuxquestions.org/questions/linux-newbie-8/configure-not-finding-ansi-c-compiler-even-though-i-have-gcc-installed-766295/
You may have to install libc6-dev as well..
Is that compatible with Mac OS X?
Wouldn't know... I guess there's only one way to find out!
After doing some research, it seems libc6-dev is a Linux-only fix. I did find a possible lead on a library called gettext, but that didn't fix the problem either. Then I tried finding every compiler software I could find for OS X (ghc, pcre, darcs, gnutls, gcc48) and still nothing.
Well, you may try and edit Makefile.in and change the first line to:
CC = /path/to/gcc
I doubt if it will work, as it seems you're missing a library, but worth the try
No, that didn't seem to work either, Is there a way to tell it exactly which directory to use with the new gcc (4.8) when running the configure script?
Last edit: Threyon 2015-01-11
What output do you get when you enter 'which gcc' on the command prompt?
Threyon schreef op 11-1-2015 om 13:06:
Related
Support Requests: #13
UPDATE= OK, so after digging around a bit, I found out how to make the configure script use the newer GCC command, and finally got it to run successfully. Now my new problem is with the make file. It's giving me an error which is way over my head. I've attached the entire session from fresh install to the new problem.
Edit my-stat.h and replace line 35 with this:
extern int mknod(const char *file, mode_t mode, dev_t dev);
Got it working now, thanks a lot! ^_^