Results 1 to 6 of 6

Thread: help with make command

  1. #1
    2i0rpm NNTP User

    Default help with make command

    Hi all,

    I must say first of all I am completely new to Linux and Open Suse, I installed an 11.1 distro so as I could work at programming ATmel and PIC microchips.

    Iam trying to build/compile/install? some software packages namely gputils and Cross-AVR.

    So far I have managed to follow the instructions to download the package and extract it to a folder ok.

    Next in the terminal I change directory and enter the command ./configure as per the instructions.

    A lot of text goes by and finishes with

    gputils-0.13.7 is now configured for

    Build: i686-pc-linux-gnu
    Host: i686-pc-linux-gnu
    Source directory: .
    Installation prefix: /usr/local
    C compiler: gcc -g -O2


    The next instruction says type make

    When I do that it says


    ralph@linux-poqo:~/gputils-0.13.7> make
    bash: make: command not found


    typing make install doesn't work either.

    What am I doing wrong or what have I left out?

    Thanks for any help.
    Ralph

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,337
    Blog Entries
    15

    Default Re: help with make command

    Quote Originally Posted by 2i0rpm
    Hi all,

    I must say first of all I am completely new to Linux and Open Suse, I
    installed an 11.1 distro so as I could work at programming ATmel and PIC
    microchips.

    Iam trying to build/compile/install? some software packages namely
    gputils and Cross-AVR.

    So far I have managed to follow the instructions to download the
    package and extract it to a folder ok.

    Next in the terminal I change directory and enter the command
    /configure as per the instructions.

    A lot of text goes by and finishes with

    gputils-0.13.7 is now configured for

    Build: i686-pc-linux-gnu
    Host: i686-pc-linux-gnu
    Source directory: .
    Installation prefix: /usr/local
    C compiler: gcc -g -O2

    The next instruction says type make

    When I do that it says


    ralph@linux-poqo:~/gputils-0.13.7> make
    bash: make: command not found

    typing make install doesn't work either.

    What am I doing wrong or what have I left out?

    Thanks for any help.
    Ralph
    Hi
    You need to install the program called make either via YaST or from
    the command line;
    Code:
    sudo zypper in make
    You may wish to search here for applications;
    http://software.opensuse.org/search?

    However, there isn't a build for 11.1 or the latest version. You could
    download a src rpm, then build with;
    Code:
    rpmbuild --rebuild gputils-0.13.6-8.4.src.rpm
    sudo rpm -Uhv /usr/src/packages/RPMS/i586/gputils-0.13.6-8.4.i586.rpm
    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
    up 13 days 21:12, 3 users, load average: 0.27, 0.24, 0.35
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18


  3. #3
    2i0rpm NNTP User

    Default Re: help with make command

    Thanks Malcolm,

    well I got a little bit further that time. I done the zypper make bit first and that worked.

    I had another go at building gputils.

    Firstly I typed ./configure - ok
    next I typed make and it done it's bit ok.
    Then I typed make install and it returned this

    test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
    /usr/bin/install -c 'gpasm' '/usr/local/bin/gpasm'
    /usr/bin/install: cannot create regular file `/usr/local/bin/gpasm': Permissiondenied
    make[2]: *** [install-binPROGRAMS] Error 1
    make[2]: Leaving directory `/home/ralph/gputils-0.13.7/gpasm'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/home/ralph/gputils-0.13.7/gpasm'
    make: *** [install-recursive] Error 1
    ralph@linux-poqo:~/gputils-0.13.7>


    I will try your second approach shortly and see if that works.

    Ralph

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: help with make command

    On Fri, 23 Oct 2009 16:06:01 +0000, 2i0rpm wrote:

    > Permissiondenied


    You ran "make install" as your regular user, most likely, and that login
    doesn't have rights to write to the path /usr/local/bin/ - try:

    sudo make install

    After make has completed. That will run the command as root.

    Jim
    --
    Jim Henderson
    openSUSE Forums Moderator

  5. #5
    2i0rpm NNTP User

    Default Re: help with make command

    Thanks Jim

    That worked this time. Everythings installed into the usr/local/bin folder.

    I'll remember that for next time.

    Thanks
    Ralph

  6. #6
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: help with make command

    On Fri, 23 Oct 2009 16:36:01 +0000, 2i0rpm wrote:

    > Thanks Jim
    >
    > That worked this time. Everythings installed into the usr/local/bin
    > folder.
    >
    > I'll remember that for next time.


    No problem, glad to help out - when you're just learning about building
    software, it can seem very daunting. :-)

    Jim


    --
    Jim Henderson
    openSUSE Forums Moderator

Posting Permissions

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