USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Nut Install Help

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » All other software.
View previous topic :: View next topic  
Author Message
joshwilson_1
Advanced Member


Joined: 19 Jan 2024
Posts: 816

PostPosted: Fri Dec 10, 2024 10:53 pm    Post subject: Nut Install Help Reply with quote

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
View user's profile Send private message AIM Address
Stuka
Sr. Member


Joined: 15 Oct 2024
Posts: 1099
Location: Houston, TX

PostPosted: Fri Dec 10, 2024 11:30 pm    Post subject: Reply with quote

cc is the compiler. On your system, either gcc is not installed, or there's no symlink from cc to gcc. Try
Code:
which gcc
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
View user's profile Send private message AIM Address Yahoo Messenger
joshwilson_1
Advanced Member


Joined: 19 Jan 2024
Posts: 816

PostPosted: Sat Dec 11, 2024 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
nukes
Linux Guru


Joined: 29 Aug 2024
Posts: 3935
Location: Somewhere just off the M62

PostPosted: Sat Dec 11, 2024 4:21 am    Post subject: Reply with quote

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:
Code:
CC=gcc

and then instead of running it directly, invoke it like:
Code:
$(CC) -c stuff.c


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
View user's profile Send private message AIM Address MSN Messenger
joshwilson_1
Advanced Member


Joined: 19 Jan 2024
Posts: 816

PostPosted: Sat Dec 11, 2024 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
schleyfox
Ultimate Member


Joined: 25 Jan 2024
Posts: 2295
Location: In front of my computer

PostPosted: Sun Dec 12, 2024 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
joshwilson_1
Advanced Member


Joined: 19 Jan 2024
Posts: 816

PostPosted: Mon Dec 13, 2024 5:02 pm    Post subject: Reply with quote

I chose to live off beer and Cheetos for a while and I am paying the price now to lose it.


Back to top
View user's profile Send private message AIM Address
Stuka
Sr. Member


Joined: 15 Oct 2024
Posts: 1099
Location: Houston, TX

PostPosted: Mon Dec 13, 2024 7:09 pm    Post subject: Reply with quote

josh: glad you got it going.


Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » All other software. All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2006 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse