LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2008, 05:24 AM   #1
penguindeb
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Rep: Reputation: 0
Putting freshly compiled SQUID 2.6 STABLE 18 into my PATH


Greetings to all,

I am new to linux and can't use the right words to describe my problems here so forgive in advance it doesn't make much sense. To start with, I a, using Debian ETCH 4.0 on an AMD64.

I have compiled squid 2.6 STABLE 18 as followed.

./configure --prefix=/usr/local/squid
% make all
% make install

customize the squid.conf configuration file:
% vi /usr/local/squid/etc/squid.conf

2. start the cache:
% /usr/local/squid/sbin/squid

I am used to start squid as such

/etc/init.d/squid start

and then it starts and run fine. This time squid is installed in a different directory which is /usr/local/squid/. In my past experience (short one) squid was installed in /etc/squid. to start squid, like i said, i used /etc/init.d/squid start. Now if i run this command line it doesn't work anymore.

After doing some reading, I have partly understood that I need to put squid into my PATH. Though, I havent got a clue on how to do so. Therefore I would really appreciate if anyone could tell me what should I be doing next ??? and why squid is installed in a different directory than the one I am used to?? does it affect anything??

Thank you all
 
Old 01-25-2008, 06:44 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
You can either edit the old squid init script to change the path to squid, or better you can use the script included with the source you've compiled. You can find it in squid-2.6.STABLE18/contrib/squid.rc. Make a backup of the old one first, and then:
Code:
cp squid-2.6.STABLE18/contrib/squid.rc /etc/init.d/squid
chmod +x /etc/init.d/squid
If you want to include the squid executable in your PATH then edit the PATH variable (in /etc/profile, or /etc/bashrc, or whatever your distro uses to set PATH) to include /usr/local/sbin:
Code:
export PATH=/usr/local/sbin:$PATH
Regards
 
Old 01-26-2008, 04:21 AM   #3
penguindeb
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Bathory,

Thank you so much for your response.

Much appreciated.

PenguiDeb
 
  


Reply

Tags
path


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
Startx Permission problems on /dev/null and /dev/mem on freshly compiled 2.6.22.1 Eric_Cartman Linux - Kernel 2 09-09-2007 02:42 AM
is self-compiled software more stable than binary .debs? lefty.crupps Linux - Software 2 12-22-2006 08:06 PM
question about putting pwd in $PATH nadroj Linux - Newbie 5 05-30-2005 05:34 PM
how can i upgrade my squid 2.5 stable 1 to stable 3 in RH9? debloxie Linux - Networking 0 05-12-2004 09:49 PM
how can i upgrade my squid 2.5 stable 1 to stable 3 in RH9? debloxie Linux - Networking 0 05-12-2004 12:25 PM


All times are GMT -5. The time now is 04:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration