LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-06-2006, 11:05 AM   #1
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Rep: Reputation: 30
command not found


when i try to run some pregrams it gives me this error. how can i fix this?
bash: squid: command not found
 
Old 03-06-2006, 11:34 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
It seems like some of your programs are looking for squid, so you may have to install it. What are the programs that give you this error?
 
Old 03-06-2006, 11:46 AM   #3
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
i have squid installed
bash: ifconfig: command not found
 
Old 03-06-2006, 11:48 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
For ifconfig, you need to run it as root or use the whole path to it, if you're running as a normal user (because the directory it's in isn't likely to be in your normal user's $PATH). On my system, it's in /sbin (so I run /sbin/ifconfig as a normal user). Of course, you may not have it installed.
 
Old 03-06-2006, 11:56 AM   #5
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
am running it as root
BTW i have sqid in the path /etc/rc.d/init.d/s and as you doi i have ifconfig in the /sbin dir.
how can i add the to the $PATH?
 
Old 03-06-2006, 12:21 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
/sbin is usually only in roots path. You need to switch to root using "su -" and not "su" because you will not inherit all of roots environment using "su". To find out if squid is installed, do
Code:
$rpm -qa | grep -i squid
 
Old 03-06-2006, 12:33 PM   #7
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
it worked with the "su -"

now how can i add the squid to my $PATH in my user acct?
 
Old 03-06-2006, 12:38 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by jocast
it worked with the "su -"

now how can i add the squid to my $PATH in my user acct?
What is the output of the command I posted above?
 
Old 03-06-2006, 12:41 PM   #9
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
squid-2.5.STABLE11-3.FC3
 
Old 03-06-2006, 12:53 PM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Ok, so squid is definitely installed. It should already be in your path. What happens when you do
Code:
#service squid start
 
Old 03-06-2006, 12:56 PM   #11
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
it gives me this

bash: service: command not found
 
Old 03-06-2006, 01:07 PM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Are you running as root (using su -)? "service" should be available in roots path on any Redhat based distro.
 
Old 03-06-2006, 03:09 PM   #13
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
with su -

[root@mypc ~]# service squid start
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 54: 20691 Aborted $SQUID -z -F -D >>/var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 53: 20692 Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1
[FAILED]
 
Old 03-07-2006, 03:51 AM   #14
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by jocast
[root@mypc ~]# service squid start
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 54: 20691 Aborted $SQUID -z -F -D >>/var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 53: 20692 Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1
[FAILED]
So the problem is with Squid and not your path. You'll have to find a way to fix the error thats preventing squid from starting up. Maybe start a new thread for that problem.
 
  


Reply



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
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
command not found matthewa Linux From Scratch 2 04-05-2005 07:12 PM
du: command not found Wyk3d Mandriva 2 10-30-2004 03:50 PM
et: command not found twan Linux - Games 2 01-31-2004 09:08 AM
Command not found HwzrHlslndr Linux - General 14 12-31-2002 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration