c compiler installed but in the wrong place... I think? [Mac OSX]
Posted by: nicholas ()
Date: August 30, 2010 12:05AM

I had this foo2hp printer working until I upgraded my HD and the printing doesn't work anymore. At least I think that's when it stopped working. Anyhow, foo2hp isn't in the driver list anymore. Went to try to reinstall it, (I'm not very familiar with the terminal BTW) When I went to do the CPPFLAGS thing in terminal, I got this error:

Nicholas-Macbook:foomatic-filters-4.0.4 nicholas$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

and googling I learned to "remake" the database somehow, and then did this technique:

Nicholas-Macbook:~ nicholas$ locate bin/gcc

and got this:

/Developer/usr/bin/gcc
/Developer/usr/bin/gcc-4.0
/Developer/usr/bin/gcc-4.2
/usr/X11/bin/gccmakedep
/usr/share/TargetConfigs/bin/gcc

but when I do this:

Nicholas-Macbook:~ nicholas$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr

I get this:

-bash: ./configure: No such file or directory

Am I barking up the wrong tree? Which tree should I bark up?

Thanks for your time, if you've got some.



Edited 1 time(s). Last edit at 08/30/2010 04:13AM by rickrich.

Re: c compiler installed but in the wrong place... I think?
Posted by: rickrich ()
Date: August 30, 2010 04:12AM

$ locate bin/gcc
/Developer/usr/bin/gcc
/Developer/usr/bin/gcc-4.0
/Developer/usr/bin/gcc-4.2
/opt/local/bin/gcc-mp-4.4
/opt/local/bin/gccbug-mp-4.4
/opt/local/var/macports/software/gcc44/4.4.4_2/opt/local/bin/gcc-mp-4.4
/opt/local/var/macports/software/gcc44/4.4.4_2/opt/local/bin/gccbug-mp-4.4
/usr/X11/bin/gccmakedep
/usr/X11R6 1/bin/gccmakedep
/usr/bin/gcc
/usr/bin/gcc-4.0
/usr/bin/gcc-4.2
/usr/share/TargetConfigs/bin/gcc


$ cd foomatic-filters-4.0.4 #IMPORTANT!!!

$ CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/usr
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
...snip...

Sorry, only registered users may post in this forum.
This forum powered by Phorum.