Results 1 to 15 of 15

Thread: compiling on Linux

  1. #1
    scoutt
    Guest

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

  2. #2
    Are you using gcc to do the compiling? Also try the C++ forum.

  3. #3
    scoutt
    Guest
    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.

  4. #4
    Compiling on a fresh Linux system is a b****. You have to set up a whole bunch of crap first, and even then it is tricky.

  5. #5
    scoutt
    Guest
    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.

  6. #6
    denniswrenn
    Guest
    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

  7. #7
    scoutt
    Guest
    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.

  8. #8
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  9. #9
    scoutt
    Guest
    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

  10. #10
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Cool
    Harry.

    "From one thing, know ten thousand things."

  11. #11
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140

    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.

  12. #12
    scoutt
    Guest

    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

  13. #13
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  14. #14
    scoutt
    Guest
    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

  15. #15
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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
  •  



Click Here to Expand Forum to Full Width