openSUSE Forums > Programming/Scripting » help with make command

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-Oct-2009, 09:30
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 5
2i0rpm hasn't been rated much yet
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
Reply With Quote
  #2 (permalink)  
Old 23-Oct-2009, 09:48
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,713
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
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

Reply With Quote
  #3 (permalink)  
Old 23-Oct-2009, 11:00
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 5
2i0rpm hasn't been rated much yet
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
Reply With Quote
  #4 (permalink)  
Old 23-Oct-2009, 11:09
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,271
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
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
Reply With Quote
  #5 (permalink)  
Old 23-Oct-2009, 11:30
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 5
2i0rpm hasn't been rated much yet
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
Reply With Quote
  #6 (permalink)  
Old 23-Oct-2009, 11:59
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,271
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
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
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2