Linux / UNIX Tech Support Forum
This is a discussion on Squid - Compile from Source or RPM within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; What is better? Compiling squid from source or installing RPM? What if I build RPM from source? Actually, I want ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
What is better?
Compiling squid from source or installing RPM? What if I build RPM from source? Actually, I want to optimize squid performance. The only way I find to do that is install from source. Is there a way to create RPM after ./configure or the make process? Last edited by Cyborg_sa; 08-05-2009 at 11:01 PM. |
| Sponsored Links | ||
|
|
|
||||
|
rpm can be built using rpmbuild command. Download squid source rpm and install the same. Next, go to SPECS directory:
Code:
cd /usr/src/redhat/SPECS/ ls Code:
rpmbuild -bb squid.spec NOTE: Source rpm can be downloaded using the following syntax: Code:
yumdownloader --source squid rpm -ivh squid*.src.rpm
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 09-05-2009 at 03:10 AM. |
|
|||
|
I tried what u suggested and this is the output:
Code:
[root@cybertron yum.repos.d]# yumdownloader --source squid Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * rpmforge: apt.sw.be * base: mirror.internode.on.net * updates: ftp.twaren.net * centosplus: mirror.internode.on.net * addons: mirror.internode.on.net * extras: mirror.internode.on.net ftp://ftp.redhat.com/pub/redhat/linu...ata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory. Trying other mirror. Cannot retrieve repository metadata (repomd.xml) for repository: rhel-src. Please verify its path and try again This is my uname -r output: Code:
[root@cybertron yum.repos.d]# uname -r 2.6.18-92.el5 Is there any other src repository? A 3rd patry src repo that I can add to that srpm.repo file? |
|
|||
|
OK this is what I did right now:
1. Removed srpm.repo 2. Downloaded CentOS-Source.repo 3. Modified it set priorities: Code:
[c5-base-src] name=CentOS-$releasever - Base Source Repository baseurl=http://mirror.centos.org/centos/$releasever/os/SRPMS/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 enabled=1 priority=1 [c5-updates-src] name=CentOS-$releasever - Updates Source Repository baseurl=http://mirror.centos.org/centos/$releasever/updates/SRPMS/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 enabled=1 priority=1 [c5-extras-src] name=CentOS-$releasever - Extras baseurl=http://mirror.centos.org/centos/$releasever/extras/SRPMS/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 protect=1 enabled=1 priority=1 [c5-plus-src] name=CentOSplus -$releasever Source Repository baseurl=http://mirror.centos.org/centos/$releasever/centosplus/SRPMS/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 enabled=0 Code:
[root@cybertron yum.repos.d]# yumdownloader --source squid Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * extras: mirror.internode.on.net * rpmforge: apt.sw.be * base: mirror.internode.on.net * updates: ftp.twaren.net * centosplus: mirror.internode.on.net * addons: mirror.internode.on.net c5-extras-src 100% |=========================| 951 B 00:00 c5-base-src 100% |=========================| 951 B 00:00 c5-updates-src 100% |=========================| 951 B 00:00 447 packages excluded due to repository priority protections squid-2.6.STABLE21-3.el5. 100% |=========================| 1.4 MB 00:26 |
|
||||
|
Now, install downloaded squid*.src.rpm and go to /usr/src/redhat/SPECS/ and update squid.spec file and run command as mentioned in my 2nd post.
__________________
Vivek Gite Linux Evangelist |
|
|||
|
This is the error I get:
Code:
1:squid warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root ########################################### [100%] warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root EDIT: Searched on the internet it is just a warning. Last edited by Cyborg_sa; 09-05-2009 at 02:07 PM. |
|
|||
|
I got 2 errors:
Code:
Processing files: squid-2.6.STABLE21-3 error: File not found: /var/tmp/squid-2.6.STABLE21-root/usr/lib/squid/ncsa_auth error: File not found: /var/tmp/squid-2.6.STABLE21-root/usr/lib/squid/pam_auth error: File not found: /var/tmp/squid-2.6.STABLE21-root/usr/sbin/cossdump error: File not found: /var/tmp/squid-2.6.STABLE21-root/etc/squid/msntauth.conf error: File not found: /var/tmp/squid-2.6.STABLE21-root/etc/squid/msntauth.conf.default Code:
RPM build errors:
File not found: /var/tmp/squid-2.6.STABLE21-root/usr/lib/squid/ncsa_auth
File not found: /var/tmp/squid-2.6.STABLE21-root/usr/lib/squid/pam_auth
File not found: /var/tmp/squid-2.6.STABLE21-root/usr/sbin/cossdump
File not found: /var/tmp/squid-2.6.STABLE21-root/etc/squid/msntauth.conf
File not found: /var/tmp/squid-2.6.STABLE21-root/etc/squid/msntauth.conf.default
Code:
%configure \
--exec_prefix=/usr \
--bindir=%{_sbindir} \
--libexecdir=%{_libdir}/squid \
--localstatedir=/var \
--datadir=%{_datadir} \
--sysconfdir=/etc/squid \
--enable-poll \
--enable-snmp \
--enable-linux-netfilter \
--disable-ident-lookups \
--enable-async-io \
--enable-icmp \
--enable-arp-acl \
%ifnarch ppc64 ia64 x86_64 s390x
--with-large-files \
%endif
--with-maxfd=16384 \
|
|
||||
|
Those are just warning as user:group combo does not exists. Just ignore them.
You should not remove auth_helper (look like they are tightly integrated with squid). They are part of squid. Just add / modify your optimization compile time flags.
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| centos , rhel , rpm , rpm spec file , rpmbuild , squid source rpm |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to cross compile postfix | mtamil | Mail Servers | 0 | 22-10-2008 03:46 PM |
| compile a new kernel in RHEL 5 | vikas027 | CentOS / RHEL / Fedora | 3 | 24-03-2008 09:56 PM |
| How to compile a c program in freeBSD | jkmb | All about FreeBSD/OpenBSD/NetBSD | 4 | 24-03-2008 08:01 PM |
| sa-compile | diptanjan | Linux software | 1 | 07-06-2007 07:07 PM |
| Kernel Compile | mannrj45 | Linux software | 1 | 02-12-2006 08:32 PM |