|
-
Aug 18th, 2001, 02:40 PM
#1
compiling on Linux
I was trying to install a program that I had to compile before I installed but when I did the make install or ./configure it came back with an error saying that "cc was not found in $path"
what the hell is that? I'm sure somebody here can point me in the right direction or tell me how to do it or tell me if I have a compiler on the system or how to check for it.
Mandrake has a software manager on it (show installed and not installed programs) and I couldn't find anything there about a compiler.
somebody HELP!!!! 
-
Aug 18th, 2001, 02:49 PM
#2
Member
Are you using gcc to do the compiling? Also try the C++ forum.
-
Aug 18th, 2001, 02:59 PM
#3
couldn't tell ya what I am using. I can't find anything on it. last time I installed redhat 7.0 it had a program that you wrote in and compiled in, but I can't find that one either.
-
Aug 18th, 2001, 03:01 PM
#4
-
Aug 18th, 2001, 03:07 PM
#5
that was the problem I had last time, but i figured it out. with Mandrake I can't even find anything that resembles or has anything to do with compiling.
-
Aug 18th, 2001, 04:18 PM
#6
What did you do to compile it?
IIRC you have to open the shell prompt then type:
# make
# make install
And if it requires configuration you must do something like this before 'make'ing it(this is for installing PHP4 as an Apache module)
# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-mysql --with-apache=../apache_1.3.19 --enable-track-vars --enable-debugger --enable-magic-quotes
-
Aug 18th, 2001, 04:40 PM
#7
Originally posted by denniswrenn
What did you do to compile it?
IIRC you have to open the shell prompt then type:
# make
# make install
And if it requires configuration you must do something like this before 'make'ing it(this is for installing PHP4 as an Apache module)
# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-mysql --with-apache=../apache_1.3.19 --enable-track-vars --enable-debugger --enable-magic-quotes
exactly, I tried all those ways. I was trying to install another ICq client and I had to compile it first. when I tried the make and all the rest it comes back with that error. "cc not found in $path"
so it doesn't matter what make I used. or sh.
-
Aug 20th, 2001, 06:34 AM
#8
Frenzied Member
When you do ./configure you get a Mekefile.pre.in don't you? You may have to edit that so the variable CC is /usr/bin/gcc
Just a guess really, I never had any problems like this with compiling. If you don't have gcc, I'd be very surprised. If not, install it.
Harry.
"From one thing, know ten thousand things."
-
Aug 20th, 2001, 10:39 AM
#9
well you were right Harry 
gcc was not installed, once I installed it and it compiled, well almost. I had some other errors but I will get to them later.
thanks Harry
-
Aug 20th, 2001, 11:51 AM
#10
Frenzied Member
Cool
Harry.
"From one thing, know ten thousand things."
-
Aug 20th, 2001, 12:06 PM
#11
Frenzied Member
What have we learned...
Pros:
since we have the source, we can compile this program for a wide varaity of platforms.
we can also optimize this build for our platform.
Cons:
the whole dependency thing doesn't have a nice UI and is a real pain in the ass. If compiler is not installed, it is a pain.
This is my complaint with Linux at the moment. We need better UI.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Aug 20th, 2001, 11:14 PM
#12
Re: What have we learned...
Originally posted by CiberTHuG
Pros:
since we have the source, we can compile this program for a wide varaity of platforms.
we can also optimize this build for our platform.
Cons:
the whole dependency thing doesn't have a nice UI and is a real pain in the ass. If compiler is not installed, it is a pain.
This is my complaint with Linux at the moment. We need better UI.
you can say that again
-
Aug 22nd, 2001, 04:32 AM
#13
Frenzied Member
Got to agree with that. Having said that there are some really cool tools around. dselect on Debian (I thin that's a Debian thing) is really handy once you realise how it's meant to be used. I don't think I've ever used an easier install program, aside from figuring out the interface.
Harry.
"From one thing, know ten thousand things."
-
Aug 22nd, 2001, 09:56 AM
#14
well I tried to install the Kicq and the icqlib and neither on ewill do it. I get an (install is recursive) error 1 on the icqlib and can't find X include error 111 (I think) on the Kicq. neither one will make an install or ./configure
-
Aug 22nd, 2001, 10:13 AM
#15
Frenzied Member
Maybe the labels in your makefile are cyclic, that would explain the recursive thing.
Sounds pretty obscure to me (I'm no *nix expert) so I don't really know.
Harry.
"From one thing, know ten thousand things."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|