Koozali.org: home of the SME Server

Make not working

turbine2

Make not working
« on: December 14, 2005, 03:47:01 PM »
Whenever I try to make a module I get the following error.

[root@planentine-svr spca5xx-20051212]# make -f Makefile
bash: [root@planentine-svr: command not found
[root@planentine-svr spca5xx-20051212]# grep: /lib/modules/2.4.20-18.7/build/include/linux/autoconf.h: No such file or directory
bash: grep:: command not found
[root@planentine-svr spca5xx-20051212]# grep: /lib/modules/2.4.20-18.7/build/include/linux/autoconf.h: No such file or directory
bash: grep:: command not found
[root@planentine-svr spca5xx-20051212]# Compiling drivers/usb/spcadecoder.c
bash: Compiling: command not found
[root@planentine-svr spca5xx-20051212]# /bin/sh: gcc: command not found
bash: /bin/sh:: No such file or directory
[root@planentine-svr spca5xx-20051212]# make: *** [drivers/usb/spcadecoder.o] Error 127

Anyone any ideas what's wrong?

David

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Make not working
« Reply #1 on: December 14, 2005, 05:33:06 PM »
Quote from: "turbine2"
Whenever I try to make a module I get the following error.

[root@planentine-svr spca5xx-20051212]# make -f Makefile
bash: [root@planentine-svr: command not found
[root@planentine-svr spca5xx-20051212]#


The server isn't a development platform, and doesn't have development tools (make, compiler, development libraries, etc) installed.

This is a FAQ, please follow the Documentation link on the left.

turbine2

Make not working
« Reply #2 on: December 15, 2005, 10:14:32 AM »
Many thanks Charlie, I'll go have a hunt.

David

turbine2

Make not working
« Reply #3 on: December 15, 2005, 02:51:18 PM »
Hmm, not as clear as I was hoping. Well, I've downloaded the RPMs in the development section and guess I need to install them (all of them?). I've tried searching on 'development platform', 'development tools' and 'development' but there's nothing that lists which rmps I need. I've also read through the two manuals I can find (6000 tech handbook and sme manual) but neither of them make references either.

Make is there (if I type make from a directory without a Makefile in it complains that no targets are specified etc.) but I see gcc isn't. I guess I'll have to install them by trial and error.

turbine2

Make not working
« Reply #4 on: December 16, 2005, 11:12:14 AM »
Bingo, ended up only needing to install a handful of the rpms.

Thanks for the original pointer, it's much appreciated.

boss_hog

Make not working
« Reply #5 on: December 16, 2005, 03:50:58 PM »
Hey turbine2,
glad you worked it out.
As an FYI, I believe if you run:
yum install gcc

It should install all the needed rpm's/lib's.
(With the assumption that yum is up to date.)
Good luck
Joe