View previous topic :: View next topic |
Author |
Message |
joshwilson_1 Advanced Member
Joined: 19 Jan 2024 Posts: 816
|
Posted: Fri Dec 10, 2024 10:53 pm Post subject: Nut Install Help |
|
|
I posted in the original thread, but got no response.
Has anybody installed this program? I have tried to install the program by following the instructions and typing "make." I get this error:
cc -O3 -Wall -pedantic -ansi -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr/local/lib/nut\" -c -o addfood.o addfood.c
make: cc: Command not found
make: *** [addfood.o] Error 127
I then moved the food database to /usr/local/lib/nut/ and tried it again. I got the same error. I did not get a whole lot out of the installation instructions and am now lost as to what my next step should be. Can anybody help me here? Thanks
|
|
Back to top |
|
Stuka Sr. Member
Joined: 15 Oct 2024 Posts: 1099 Location: Houston, TX
|
Posted: Fri Dec 10, 2024 11:30 pm Post subject: |
|
|
cc is the compiler. On your system, either gcc is not installed, or there's no symlink from cc to gcc. Try if you get an answer, create a symlink from /usr/bin/cc to that. If you don't get a hit, you need to install the appropriate packages for gcc.
|
|
Back to top |
|
joshwilson_1 Advanced Member
Joined: 19 Jan 2024 Posts: 816
|
Posted: Sat Dec 11, 2024 1:06 am Post subject: |
|
|
I thought I installed all of the compilers available. I will go and see if that is truely the case. Thanks for your help.
_________________ Mandrake 10.01 Community, Woody Debian, Red Hat 8, Suse 9.1
|
|
Back to top |
|
nukes Linux Guru
Joined: 29 Aug 2024 Posts: 3935 Location: Somewhere just off the M62
|
Posted: Sat Dec 11, 2024 4:21 am Post subject: |
|
|
cc is a generic thing. Generally it's set as an enviroment variable rather than a symlink. What the Makefile should really do is have a line at the start:
and then instead of running it directly, invoke it like:
The symlink method will work though, and saves you messing around with the Makefile.
_________________ Gentoo; 2.6.11 2.6.17.7 + patches
Debian sid 2.6.13
|
|
Back to top |
|
joshwilson_1 Advanced Member
Joined: 19 Jan 2024 Posts: 816
|
Posted: Sat Dec 11, 2024 10:07 pm Post subject: |
|
|
I ran "which gcc" and i got this result:
[joshwilson1@localhost joshwilson$ which gcc
which: no gcc in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/joshwilson1/bin)
How do I go about installing gcc? I tried to go in to the Mandrake software installation and install all of the gcc files and its dependencies, but it asked for Disk 4 and all I have is Disks 1-3. Is there any other way to install it so that it includes all the files that I need all in one package?
***EDIT***
I added an FTP site and installed the gcc. I was able to get nut installed and it works. Thanks for all of your help.
|
|
Back to top |
|
schleyfox Ultimate Member
Joined: 25 Jan 2024 Posts: 2295 Location: In front of my computer
|
Posted: Sun Dec 12, 2024 12:16 am Post subject: |
|
|
you dont need nut, just live off of jolt cola and oreos like the rest of us...
_________________ Gentoo 2024.1 2.6.13
Gentoo 2024.1 2.6.11
Ubuntu Hoary Hedgehog PPC
|
|
Back to top |
|
joshwilson_1 Advanced Member
Joined: 19 Jan 2024 Posts: 816
|
Posted: Mon Dec 13, 2024 5:02 pm Post subject: |
|
|
I chose to live off beer and Cheetos for a while and I am paying the price now to lose it.
|
|
Back to top |
|
Stuka Sr. Member
Joined: 15 Oct 2024 Posts: 1099 Location: Houston, TX
|
Posted: Mon Dec 13, 2024 7:09 pm Post subject: |
|
|
josh: glad you got it going.
|
|
Back to top |
|
|