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 |
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.
|
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. . |
Thnx for the reply i am trying to install and sort out all the problems which i have then i will again reply
|
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
|
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
|
you don't need the source code to use yum, no. "yum install squid" will do everything required.
|
really thankful for your advice
|
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. |
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 |
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" |
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
|
well squid is NOT internet sharing. the two are NOT related, and would be conflicting solutions.
|
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. |
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.
|
All times are GMT -5. The time now is 04:51 AM. |