LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-10-2006, 04:50 AM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 192

Rep: Reputation: 31
NO C compiler after clean install + how add a script to startup


hello
I have installed a clean minimal version of stable rc2. i just need it to develop a small work in c; but cc it's not a recognized command, and after I do an apt-get install of gcc it says that stdio.h has not been found.
i was jsut wondering ... doesnt debian has a built-in c compiler? i need just to use message queues and other ipc programming methods. with files creation and such.
what should I use or check to have c in the install.
on the other side; i have a stable machine running with an old version of debian. i h ave apache, i want it to run it a startup of runlevel 3 and the script to launch it it's apachectl and it's on /usr/local/apache2/bin/
do i have to move it to /etc/init.d/ or there's a tool similar to dhkconfig in debian to add the daemon i also have mysql by the way which need to have the same treatement.
if you can reply me these questions. I 'll be so grateful it will let me at last begin my work.
thank you very much to you all.

Last edited by mariogarcia; 06-10-2006 at 04:52 AM.
 
Old 06-10-2006, 05:06 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,683

Rep: Reputation: 124Reputation: 124
The gcc package is a meta-package, it's empty... Try
Code:
apt-get install gcc-3.3
You might want to install the newer gcc-3.4, just change the versionnumber in the previous command. Accept dependencies when apt complains about those.

You can add a sym-link to /etc/init.d from where you're apache script is located. Use like
Code:
ln-s <target> <source>
Make sure the script is executable with the chmod +x command.
 
Old 06-10-2006, 09:17 AM   #3
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 192

Original Poster
Rep: Reputation: 31
how do I do to add it so that when the computer starts the deamon it's started as well?
 
Old 06-10-2006, 11:11 AM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,683

Rep: Reputation: 124Reputation: 124
Just like I said:
Quote:
Originally Posted by Dutch Master
You can add a sym-link to /etc/init.d from where you're apache script is located. Use like
Code:
ln-s <target> <source>
Make sure the script is executable with the chmod +x command.
The exact command is up to you to figure out and to be honest: if you can't figure out what that is you shouldn't run a webserver... At least not a public one, 'cause that will be taken over rather quickly by malicious hackers to be part of their 'empire of zombies', attacking other websites or spreading viruses. Mind you, you're still responsible for the behavior of your server, even though you're no longer in control...
 
Old 06-10-2006, 05:03 PM   #5
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 192

Original Poster
Rep: Reputation: 31
I just started using gnu/linux a month ago.
i mainly want to use apache to test php scripts and i do not want to use easyphp, in fact i rather do nothing that using easy php.
it's just this loading at startup methods on debian that causes me some troubles.
thank you for your input; i will consider it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandriva startup scripts (need to add something to startup before X starts) thunderweasel Mandriva 3 01-01-2006 12:55 AM
need to add windows 98 and do a clean install of fedora joel b Fedora 1 03-26-2005 08:34 PM
Help with clean-up script fiservguy Programming 5 01-27-2005 12:59 AM
how to add "hdparm -c 1 -d 1 -k 1 /dev/hda" to startup script (as root)? jimothy05 Linux - Distributions 2 10-07-2004 07:32 AM
Simple script to clean up old file rbeckett Red Hat 2 09-09-2004 02:38 PM


All times are GMT -5. The time now is 12:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration