انا زي ما قولتلك انا عملتش compile ليهم القديمة الي هي version 3 دي كانت rpm جاهزة والجديدة دي انا عملتها ب yum install squid فا نزلي version 2.6 بس كدا
انا اتخنقت والله من الموضوع ده لان انا بقالي فترة كبيرة فيه ومفيش اي تقدم
معلومه انا مش متأكد منها
لو ال squid الى نازل source code باختياار ال ipt مع configure/. هينزل وتعمللوا compile
وخلص من غير اى error في ال Make هيشتغل زي الفل زاي service كده بردو
بس كل distribution هو شطرتوا في compile ال packege بتعتوا
فهمني
انا زي ما قولتلك انا عملتش compile ليهم القديمة الي هي version 3 دي كانت rpm جاهزة والجديدة دي انا عملتها ب yum install squid فا نزلي version 2.6 بس كدا
انا اتخنقت والله من الموضوع ده لان انا بقالي فترة كبيرة فيه ومفيش اي تقدم
بص انا عايز شوية خطوات امشي عليها تبقى واضحة وصريحة حتى لو مش هتشتغل بس نحل فيها بدل ما الواحد تايه كدا
طيب
شيل squid2.6
و نزل
squid-3.0.STABLE10-1.i386.rpm
اذا ملقتهوش
cd /usr/src
wget https://download.fedora.redhat.com/p...1.fc10.src.rpm
rpm -ivh squid-3.0.STABLE10-1.fc10.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bb squid.spec
rpm -ivh /usr/src/redhat/RPMS/i386/squid-3.0.STABLE10-1.i386.rpm
طلع ايررور
[root@Centos-squid src]# rpm -ivh squid-3.0.STABLE10-1.fc10.src.rpm
warning: squid-3.0.STABLE10-1.fc10.src.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
error: cannot create %sourcedir /usr/src/redhat/SOURCES
انا بجرب دلؤتي انزل واحدة تانية من rpmfind
نزل الشويه دول عشان بيظهرلكش اي error في ال install
yum -y groupinstall "Development Tools"
yum -y install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel httpd rpm-devel
الكوماند اﻻول طلع ايررور اهه
Transaction Summary
================================================== ================================================== =========================================
Install 47 Package(s)
Update 7 Package(s)
Remove 0 Package(s)
Total size: 83 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
file /usr/share/man/man1/Xserver.1x.gz from install of xorg-x11-server-Xvfb-1.1.1-48.67.el5.i386 conflicts with file from package xorg-x11-server-Xnest-1.1.1-48.52.el5.i386
file /usr/share/man/man1/Xserver.1x.gz from install of xorg-x11-server-Xvfb-1.1.1-48.67.el5.i386 conflicts with file from package xorg-x11-server-Xorg-1.1.1-48.52.el5.i386
Error Summary
-------------
الكوماند التاني اشتغل تمام الحمدلله
بعد كدا نزلت ال rpm عن طريق wget زي مانتا قلت نزلت تمام عملت rpm -ivh ليها اﻻيرور اتغير وباه كدا
[root@Centos-squid src]# rpm -ivh squid-3.0.STABLE10-1.fc10.src.rpm
warning: squid-3.0.STABLE10-1.fc10.src.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
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
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
واضح كدا ان فيه جروب ويوزر هو عايزهم ليه مخصوص
اكيد انتا كرهتني انا عارف ولو كرهتني يبقى ليك حق :o
ده مش error
ده warning
ومنزله بال root
جرب كمل
rpm -ivh squid-3.0.STABLE10-1.fc10.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bb squid.spec
rpm -ivh /usr/src/redhat/RPMS/i386/squid-3.0.STABLE10-1.i386.rpm
ايررور تاني يا ريس
[root@Centos-squid src]# cd /usr/src/redhat/SPECS
[root@Centos-squid SPECS]# rpmbuild -bb squid.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36997
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf squid-3.0.STABLE10
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/squid-3.0.STABLE10.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd squid-3.0.STABLE10
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #201 (squid-3.0.STABLE1-config.patch):'
Patch #201 (squid-3.0.STABLE1-config.patch):
+ patch -p1 -b --suffix .config -s
+ echo 'Patch #202 (squid-3.0.STABLE1-location.patch):'
Patch #202 (squid-3.0.STABLE1-location.patch):
+ patch -p1 -b --suffix .location -s
+ echo 'Patch #203 (squid-3.0.STABLE1-build.patch):'
Patch #203 (squid-3.0.STABLE1-build.patch):
+ patch -p1 -b --suffix .build -s
+ echo 'Patch #204 (squid-3.0.STABLE1-perlpath.patch):'
Patch #204 (squid-3.0.STABLE1-perlpath.patch):
+ patch -p1 -b --suffix .perlpath -s
+ echo 'Patch #205 (squid-3.0.STABLE1-smb-path.patch):'
Patch #205 (squid-3.0.STABLE1-smb-path.patch):
+ patch -p1 -b --suffix .smb-path -s
+ echo 'Patch #208 (squid-3.0.STABLE7-from_manpg.patch):'
Patch #208 (squid-3.0.STABLE7-from_manpg.patch):
+ patch -p1 -b --suffix .from_manpg -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.22819
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd squid-3.0.STABLE10
+ export 'CXXFLAGS=-fPIE -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ CXXFLAGS='-fPIE -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export 'CFLAGS=-fPIE -Os -g -pipe -fsigned-char -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ CFLAGS='-fPIE -Os -g -pipe -fsigned-char -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export LDFLAGS=-pie
+ LDFLAGS=-pie
+ CFLAGS='-fPIE -Os -g -pipe -fsigned-char -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-fPIE -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu --target=i386-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --exec_prefix=/usr --bindir=/usr/sbin --libexecdir=/usr/lib/squid --localstatedir=/var --datadir=/usr/share --sysconfdir=/etc/squid --disable-dependency-tracking --enable-arp-acl --enable-auth=basic,digest,ntlm,negotiate --enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SMB,YP,getpwnam,multi-domain-NTLM,SASL --enable-negotiate-auth-helpers=squid_kerb_auth --enable-cache-digests --enable-cachemgr-hostname=localhost --enable-delay-pools --enable-digest-auth-helpers=password --enable-epoll --enable-external-acl-helpers=ip_user,ldap_group,unix_group,wbinfo_group --enable-icap-client --enable-ident-lookups --with-large-files --enable-linux-netfilter --enable-ntlm-auth-helpers=SMB,fakeauth --enable-referer-log --enable-removal-policies=heap,lru --enable-snmp --enable-ssl --enable-storeio=aufs,diskd,null,ufs --enable-useragent-log --enable-wccpv2 --with-aio --with-default-user=squid --with-filedescriptors=16384 --with-dl --with-openssl=/usr/kerberos --with-pthreads
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-redhat-linux-gnu-gcc... no
checking for gcc... no
checking for i686-redhat-linux-gnu-cc... no
checking for cc... no
checking for i686-redhat-linux-gnu-cl.exe... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
error: Bad exit status from /var/tmp/rpm-tmp.22819 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.22819 (%build)
[root@Centos-squid SPECS]# rpm -ivh /usr/src/redhat/RPMS/i386/squid-3.0.STABLE10-1.i386.rpm
error: open of /usr/src/redhat/RPMS/i386/squid-3.0.STABLE10-1.i386.rpm failed: No such file or directory
طيب الولد عايز compiler
عايز gcc +libgcc شوفوا عندك لو ماقتش
ممكن هنا
https://rpm.pbone.net/index.php3/stat/2/simple/2
gcc-x.x.x.i386.rpm
binutils-x.x.x.i386.rpm
cpp-x.x.x.i386.rpm
glibc-devel-x.x.x.i386.rpm
احسن الشويه دول مع ال instalation ونت بتقول بسم الله
انا عندي شويه حلوين فكرني ادهملك
عملت الي انتا قولتلي عليه وايررور جديد
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
configure: error: ./configure failed for lib/libTrie
error: Bad exit status from /var/tmp/rpm-tmp.59871 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.59871 (%build)
المفضلات