Results 1 to 6 of 6

Thread: can't run "make" when trying to compile

  1. #1
    Join Date
    Feb 2007
    Beans
    24

    can't run "make" when trying to compile

    I am trying to insall avrdude-5.1 for POV kit at Make Magazine. http://www.ladyada.net/make/minipov3/download.html

    I can't get "make" to work (first time I have tried to compile myself - please/thanks help me sort this out for this application and future applications)

    I am running Heron

    I ran: sudo apt-get install build-essential.

    I then ran ./config from inside of folder, and configure seemed to work okay allthough some of the messaging said "checking for ___" and sometimes the answer was "no" .... but I assume this could be normal.

    and then I ran "make" and it didn't seem to work.. I get the following:

    michael@kitchen-desktop:~/Desktop/avrdude-5.1$ make
    make all-recursive
    make[1]: Entering directory `/home/michael/Desktop/avrdude-5.1'
    make[2]: Entering directory `/home/michael/Desktop/avrdude-5.1'
    yacc -d config_gram.y
    /bin/bash: yacc: command not found
    make[2]: *** [config_gram.c] Error 127
    make[2]: Leaving directory `/home/michael/Desktop/avrdude-5.1'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/michael/Desktop/avrdude-5.1'
    make: *** [all] Error 2

  2. #2
    Join Date
    Jan 2008
    Location
    Auckland, New Zealand
    Beans
    3,129
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: can't run "make" when trying to compile

    If you run configure and there's something missing that you really do need then usually you will get an error, and the configure script will stop.

    From the output you give there, "yacc: command not found", you have to install the bison package.

    sudo apt-get install bison

  3. #3
    Join Date
    Sep 2006
    Beans
    1,116
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: can't run "make" when trying to compile

    Quote Originally Posted by wet_colored_arch View Post
    /bin/bash: yacc: command not found
    Code:
    sudo apt-get install bison
    Will fix that error, any other errors you get after that you're probably missing other dependencies. Also not sure if you are aware but there is a newer version of the package avrdude in the repositories.

  4. #4
    Join Date
    Feb 2007
    Beans
    24

    Re: can't run "make" when trying to compile

    "make" went further but eventually ran into a problem with "Flex"... however, it gave me more information than before and I think I can load...

    more generally, should I have this kind of dependancy problem? is this normal? could I have done something inadvertent that caused some of this problem?

  5. #5
    Join Date
    Feb 2007
    Beans
    24

    Re: can't run "make" when trying to compile

    thanks, I wasn't aware there was a newer version and I will install

  6. #6
    Join Date
    Jan 2008
    Location
    Auckland, New Zealand
    Beans
    3,129
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: can't run "make" when trying to compile

    This isn't a problem, it's perfectly normal. Usually though these kinds of errors should show up when you run the configure script.

    You can run "sudo apt-get build-dep avrdude" which should automatically install most of the dependencies for building the package.

Bookmarks

Posting Permissions

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