LinuxQuestions.org
Visit Jeremy's Blog.
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 11-14-2012, 01:58 AM   #1
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Rep: Reputation: Disabled
compiling squid on CentOS


i am installing squidstable 2.5 version on centos when i try to install and configure it displays error which are following how i will resolve the issue


[root@test squid-2.5.STABLE12]# ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
 
Old 11-14-2012, 03:06 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you shouldn't need to build squid from source. stick with rpms,if the latest version that yum wants to give you isn't what you want, there are plenty of other rpms available online if you search.
 
Old 11-14-2012, 05:18 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Why squid 2.5 ?

CentOS 5 has squid-2.6, and CentOS 6 squid-3.1.10 :
# yum install squid


If you want to compile applications, a working gcc is a must.
GCC alone can't do much.
The command : # yum install gcc-c++
.. will also install the required glibc-devel, glibc-headers, etc.

.
 
Old 11-15-2012, 12:04 AM   #4
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thnx for the reply i am trying to install and sort out all the problems which i have then i will again reply
 
Old 11-15-2012, 12:06 AM   #5
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
As i am from pakistan i want to use EVO wifi usb on centOS 5.6 but when i insert it in usb port nothing happen to my system it is not detected i have also checked fstab but there also nothing change appear how will i use this
 
Old 11-15-2012, 12:08 AM   #6
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
if i will install squid from yum install squid then will i need source code for it or mean i want to have delay pools and transparent proxy source code is needed or not just squid will be enough waiting for your kind reply
 
Old 11-15-2012, 03:15 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you don't need the source code to use yum, no. "yum install squid" will do everything required.
 
Old 11-15-2012, 04:53 AM   #8
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
really thankful for your advice
 
Old 12-09-2012, 03:00 AM   #9
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
i have 2 nics on system eth0 to internet and ip is 192.168.204.10 and eth1 to my local computers on the network.i want to share my internet which is available on server to the clients on my local network my eth1 ip is 10.10.10.10 and one of my client ip is 10.10.10.5
now when i ping 10.10.10.10 from cleint it is working and also works from server mean client is ping
i also put 1 in the file /etc/sysctl.conf of ip_forward for port forwarding and i use the iptalble rule
iptables -t nat -A POSTROUTING -0 eth0 -p tcp -j MASQUERADE

After port forwarding and MASQUERADE still internet is not browsing from my clients what i will do so my clients can access internet without squid running on server.
 
Old 05-21-2013, 02:06 AM   #10
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
i am using centos 5.6 and i want just simple internet sharing my network deivces are as
eth0=internet
eth1=private ip (for LAN)
i have configre ip forwarding in sysctcl net.ipv4.ip_forward = 1
but when i restart service network then this error comes
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0
as i have already use cammand sysctcl -p for effect of the above ip forwarding
and secondly i have run masquerade for internet sharing by the command
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

but i cant browse internet from client should i configure dns or not for simple internet sharing

please let me know how i will simple share my internet connection
 
Old 05-21-2013, 02:59 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
You're jumping too far too quickly. You can't go from enabling a sysctl switch to firing up a browser. You mention DNS in there... Is DNS working / configured? Can you reach a site like google.com by IP instaed of DNS?

FYI that "Disabling IPv4 packet forwarding" is just part of the shut down phase of the restart, it's not "interesting"
 
Old 05-21-2013, 05:07 AM   #12
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
i have not configure DNS. please tell me how will i internet sharing and then if all this successfully work then i will configure squid for my clients but first i need to know how internet is sharing
 
Old 05-21-2013, 05:44 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well squid is NOT internet sharing. the two are NOT related, and would be conflicting solutions.
 
Old 05-21-2013, 11:15 PM   #14
varan
LQ Newbie
 
Registered: Sep 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
firstly i am thankful for your reply.
i want to share to internet on squid for my clients as following drawing of the my network configuration
eth0=internet
eth1=private lan
masquerade command
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
and also
i have configre ip forwarding in sysctcl net.ipv4.ip_forward = 1
now the question arises whether all this works for internet sharing or not i have just configure dhcp server not DNS. Please now guide me what i will do further and what i have done previoius is ok or not as my client still not browse net after all this.
 
Old 05-22-2013, 03:17 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
OK, so what you need to do is understand what squid is. What you're doing will not help you use squid in ANY way. Squid is a proxy. You're trying to configure routing.
 
  


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
Centos 5.2 and squid collieman Linux - Server 2 07-12-2012 03:00 PM
Squid Proxy in CentOS hans_bug Linux - Newbie 8 05-31-2011 09:03 PM
Squid Configuration for Centos 5.5 gambitsquid Linux - Newbie 2 09-20-2010 05:47 AM
WHich squid for CentOS? qwertyjjj Linux - Server 12 08-04-2009 11:52 AM
Compiling Squid wennie Linux - Software 2 12-11-2004 08:49 AM


All times are GMT -5. The time now is 02:29 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration