Can't find 'make' on new Ubuntu install

Discussion in 'Kernel Questions' started by Arachne, Dec 3, 2005.

  1. Arachne

    Arachne New Member

    I'm a new *nix user - I just installed Ubuntu 5.1. I followed the Ubuntu docs to install my wifi card. Apparently I need NdisWrapper, which I've downloaded and untarred - all set to install it.

    According to the NdisWrapper docs I need to compile NW using 'make'. But...I get "make: command not found" when I try to run it.

    I ran a 'find' on my filesystem and didn't find 'make' anywhere. I feel like an idiot - but am I missing something obvious? It doesn't seem fair that a brand-new Ubuntu install on a clean partition wouldn't contain 'make'. Help!

    Thanks for your time!
     
  2. Arachne

    Arachne New Member

    An update; I followed some instructions for newbie Linux users and installed java and gcc. Now 'make' works, but I get errors when trying to follow the NdisWrapper instructions.

    From the NW instructions - apparently I need to run the following three commands:
    - make distclean
    - make
    - make install

    'makedistclean' worked fine, but the second 'make' returned errors - and I'm not sure why. NW doesn't have a support forum - do I need to install some other package to do this?

    The error from the second 'make':
    arachne@ubuntu:~/path/ndiswrapper-1.6$ make
    make -C driver
    make[1]: Entering directory `/path/ndiswrapper-1.6/driver'
    Can't find kernel sources in /lib/modules/2.6.12-10-386/build;
    give the path to kernel sources with KSRC=<path> argument to make
    make[1]: *** [prereq_check] Error 1
    make[1]: Leaving directory `/path/ndiswrapper-1.6/driver'
    make: *** [all] Error 2

    Does anybody have some suggestions on how I can get this working?? Thanks!
     
  3. Arachne

    Arachne New Member

    Doh! Ubuntu-specific instructions on NW doc site

    Yikes. The NdisWrapper doc site has some Ubuntu-specific instructions.

    I think these will take care of my questions; sorry for wasting your time.
     
  4. clayg

    clayg New Member

    I also had this problem (along with another I cannot remember now) with the Ubuntu Breezy ISP settup. Just to save people the time of reading though a wiki to find what they need what solved it for me was to , well install make.

    If you followed the instructions and BECAME root earlier:
    apt-get update
    apt-get install make

    if not you must become a superuser and do it (sudo):
    sudo apt-get update
    sudo apt-get install

    Hope this helps some people.
     
  5. falko

    falko Super Moderator

    Should be
    Code:
    sudo apt-get install [COLOR="Red"]make[/COLOR]
    :)
     
  6. AZRAIL

    AZRAIL New Member

    hello,

    i try to install something in ubuntu but than it says when i type the command make install:

    cannot find command

    than i type:

    sudo apt-get install make

    it asks to the cd with the label:

    'Ubutnu 5.10 _Breezy Badger_ - Release i386 (20051012)'

    where can i find and download this cd?

    thanks
     
  7. Ben

    Ben HowtoForge Supporter

    Would you mind downloading from the intenret? I mean you will need that anyway to keep your system up to date via apt-get / aptitude.
    So check your /etc/apt/sources.list and comment all lines out via # having no http or ftp in front.

    On my servers sources.list look like that:

    But take this just as an example because I don't know which stuff behind the URLs resides when using any debian based linux like ubuntu.
     
  8. AZRAIL

    AZRAIL New Member

    i dont mind downloading it from the internet. but as linux is still a bit abra kadabra for me and i dont know exactly how to work with the command line.

    when i go to the source list i get this:


    deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted


    ## Uncomment the following two lines to fetch updated software from the network
    # deb-src http://nl.archive.ubuntu.com/ubuntu breezy main restricted

    ## Uncomment the following two lines to fetch major bug fix updates produced
    ## after the final release of the distribution.
    deb http://nl.archive.ubuntu.com/ubuntu breezy-updates main restricted
    # deb-src http://nl.archive.ubuntu.com/ubuntu breezy-updates main restricted

    ## Uncomment the following two lines to add software from the 'universe'
    ## repository.
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    deb http://nl.archive.ubuntu.com/ubuntu breezy universe main restricted
    # deb-src http://nl.archive.ubuntu.com/ubuntu breezy universe

    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    # deb http://nl.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    # deb-src http://nl.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

    # deb http://security.ubuntu.com/ubuntu breezy-security main restricted
    # deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

    # deb http://security.ubuntu.com/ubuntu breezy-security universe
    # deb-src http://security.ubuntu.com/ubuntu breezy-security universe

    i actually dont know what to do with this information. i simply want to have to command "make" working.
     
  9. Ben

    Ben HowtoForge Supporter

  10. falko

    falko Super Moderator

  11. davekeogh

    davekeogh New Member

    Just install the kernel sources. Thats all its looking for.
     

Share This Page