Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Hey guys. I'm brand new to pretty much everything linux. Up to this point I've had a few kinks but I've been able to get it figured out. Now I'm ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    11

    C Compiler

    Hey guys. I'm brand new to pretty much everything linux. Up to this point I've had a few kinks but I've been able to get it figured out. Now I'm trying to install Samba and I'm not having much luck. Whenever I try to configure it everything goes fine except it says "No acceptable C compiler found in $PATH". I've tried everything I can think of and I'm not even getting close (although I have accidentally picked up some decent knowledge along the way. Any help would be greatly accepted. Thanks.

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    if you have gcc installed add it to your path, if not the install it through apt.
    Operating System: GNU Emacs

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    su
    apt-get update
    apt-get install build-essential
    Last edited by devils casper; 10-12-2007 at 04:10 PM. Reason: sudo -> su
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Oct 2007
    Posts
    11
    k, well, like I said, I'm VERY new to this. So: how exactly would I go about moving gcc to the correct PATH? also (and first), when I try to configure gcc so I can install it it tells me "You must set the environment variable CC to a working compiler"......what does that mean and how would I fix it? Thanks again.

  5. #5
    Just Joined! 2playgames's Avatar
    Join Date
    Oct 2007
    Location
    Netherlands
    Posts
    2
    what devils_casper said should do all that stuff automatically

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    How did you install GCC? There is no need to setup PATH manually because Package Manager set it itself. Did you try to install build-essential package?

    :Edit: 2playgames is fast.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Oct 2007
    Posts
    11
    K, that definitely did something. But now it says

    "Media change: please insert the disc labeled
    'Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 kde-CD Binary-1 20070819-12:11'
    in the drive '/cdrom/' and press enter"

    I have no such disk. What now?

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Above code should not ask for any CD. Does your machine has internet access? Open /etc/apt/sources.list file and put # sign before CDROM lines.
    Try to install build-essential again.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Oct 2007
    Posts
    11
    ok, next question. I just noticed that when I put in "apt-get update" it lists some stuff then comes back with:

    "E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?"

    ?????

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Are you running Synaptic, Add/Remove or Adept too? You can't run apt-get and other package managers simultaneously.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •