Compile install Squid, configure default options.

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile install Squid, configure default options.

Billy.Zheng(zw963)
 
Hi, I have tried to compile and install Squid 3.5.12 in a fresh
CentOS 7 VPS host, because I doesn't understood so many configure,
so I just with minimum configure  I understood, I need openssl
to open a https port, and I need basic_auth to support user/password
authentication, so I just with following config:

./configure --build=x86_64-linux-gnu \
    --prefix=/usr \
    --exec-prefix=/usr \
    '--bindir=${prefix}/bin' \
    '--sbindir=${prefix}/sbin' \
    '--libdir=${prefix}/lib64' \
    '--libexecdir=${prefix}/lib64/squid' \
    '--includedir=${prefix}/include' \
    '--datadir=${prefix}/share/squid' \
    '--mandir=${prefix}/share/man' \
    '--infodir=${prefix}/share/info' \
    --localstatedir=/var \
    '--with-logdir=${localstatedir}/log/squid' \
    '--with-pidfile=${localstatedir}/run/squid.pid' \
    '--with-swapdir=${localstatedir}/spool/squid' \
    --sysconfdir=/etc/squid \
    --with-openssl \
    --enable-epoll \
    --enable-auth \
    --enable-auth-basic
    
it worked!

But compare to the CentOS 7 yum package version, I found my own less many
config. following is missing list I never use in my own compile version.

--host=x86_64-redhat-linux-gnu \
--disable-strict-error-checking \
--disable-dependency-tracking \
--enable-follow-x-forwarded-for \
--enable-auth-ntlm=smb_lm,fake \
--enable-auth-digest=file,LDAP,eDirectory \
--enable-auth-negotiate=kerberos \
--enable-external-acl-helpers=file_userip,LDAP_group,time_quota,session,unix_group,wbinfo_group \
--enable-cache-digests \
--enable-cachemgr-hostname=localhost \
--enable-delay-pools \
--enable-icap-client \
--enable-ident-lookups \
--enable-linux-netfilter \
--enable-removal-policies=heap,lru \
--enable-ssl-crtd \
--enable-storeio=aufs,diskd,ufs \
--enable-wccpv2 \
--enable-esi \
--enable-ecap \
--with-aio \
--with-default-user=squid \
--with-filedescriptors=16384 \
--with-dl \
--with-pthreads
'build_alias=x86_64-redhat-linux-gnu'
'host_alias=x86_64-redhat-linux-gnu'
'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -mtune=generic -fpie'
'LDFLAGS=-Wl,-z,relro  -pie -Wl,-z,relro -Wl,-z,now'
'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -mtune=generic -fpie'
'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

I want to use newest version Squid, but i think I perhaps missing
something important option maybe, which can cause risk in some case?

Could any please help me for a `standard necessary' configure arguments
for current 3.5 serious?

Or, just tell me, this worked, it is fine, and I will very happy to use.

btw: When I first install, ./configure is passed, but make is failed.
because I am not install gcc-c++. I have to install gcc-c++, reconfigure
again, make is passed. I thought if ./configure could detect gcc-c++
is not installed, will more good.

Thanks.


 


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Amos Jeffries
Administrator
On 4/01/2016 10:22 p.m., 郑伟 wrote:

>  
> Hi, I have tried to compile and install Squid 3.5.12 in a fresh
> CentOS 7 VPS host, because I doesn't understood so many configure,
> so I just with minimum configure  I understood, I need openssl
> to open a https port, and I need basic_auth to support user/password
> authentication, so I just with following config:
>
> ./configure --build=x86_64-linux-gnu \
>     --prefix=/usr \
>     --exec-prefix=/usr \
>     '--bindir=${prefix}/bin' \
>     '--sbindir=${prefix}/sbin' \
>     '--libdir=${prefix}/lib64' \
>     '--libexecdir=${prefix}/lib64/squid' \
>     '--includedir=${prefix}/include' \
>     '--datadir=${prefix}/share/squid' \
>     '--mandir=${prefix}/share/man' \
>     '--infodir=${prefix}/share/info' \
>     --localstatedir=/var \
>     '--with-logdir=${localstatedir}/log/squid' \
>     '--with-pidfile=${localstatedir}/run/squid.pid' \
>     '--with-swapdir=${localstatedir}/spool/squid' \
>     --sysconfdir=/etc/squid \
>     --with-openssl \
>     --enable-epoll \
>     --enable-auth \
>     --enable-auth-basic
>    
> it worked!

<snip>
>
> I want to use newest version Squid, but i think I perhaps missing
> something important option maybe, which can cause risk in some case?
>
> Could any please help me for a `standard necessary' configure arguments
> for current 3.5 serious?

The standard necessary is just:
 ./configure

Everything else is optional additions to make the install fit into your
specific OS or provide extra fuctionality.

The options you are using should be fine.

Though you do not need to add the auth ones since auth is all enabled by
default. And it would make things a little easier if you used these ones
from the official package though:
  --with-default-user=squid
  --with-filedescriptors=16384

>
> Or, just tell me, this worked, it is fine, and I will very happy to use.
>
> btw: When I first install, ./configure is passed, but make is failed.
> because I am not install gcc-c++. I have to install gcc-c++, reconfigure
> again, make is passed. I thought if ./configure could detect gcc-c++
> is not installed, will more good.

What C++ compiler did you have installed instead of gcc-c++ ?

Amos

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Billy.Zheng(zw963)

> >
> > Or, just tell me, this worked, it is fine, and I will very happy to use.
> >
> > btw: When I first install, ./configure is passed, but make is failed.
> > because I am not install gcc-c++. I have to install gcc-c++, reconfigure
> > again, make is passed. I thought if ./configure could detect gcc-c++
> > is not installed, will more good.

> What C++ compiler did you have installed instead of gcc-c++ ?

I use CentOS 7.0 in VPS.

I just follow squid document from here: http://wiki.squid-cache.org/SquidFaq/CompilingSquid

with following operation:

[root@vultr squid-3.5.12]# yum install -y perl gcc autoconf automake make sudo wget
[root@vultr squid-3.5.12]# yum install openssl-devel
[root@vultr squid-3.5.12]# g++
-bash: g++: command not found

and then run my new config, Thanks for guide.

    ./configure --build=x86_64-linux-gnu \
        --prefix=/usr \
        --exec-prefix=/usr \
        '--bindir=${prefix}/bin' \
        '--sbindir=${prefix}/sbin' \
        '--libdir=${prefix}/lib64' \
        '--libexecdir=${prefix}/lib64/squid' \
        '--includedir=${prefix}/include' \
        '--datadir=${prefix}/share/squid' \
        '--mandir=${prefix}/share/man' \
        '--infodir=${prefix}/share/info' \
        --localstatedir=/var \
        '--with-logdir=${localstatedir}/log/squid' \
        '--with-pidfile=${localstatedir}/run/squid.pid' \
        '--with-swapdir=${localstatedir}/spool/squid' \
        --sysconfdir=/etc/squid \
        --with-openssl \
        --with-default-user=squid \
        --with-filedescriptors=16384

it worked. and end with Makefile created.

It seem like not c++ compile included initially, ./configure is not detect out
for it for this OS, so no any error occur.

when I run make, it told me `g++: command not found'

[root@vultr squid-3.5.12]# make
Making all in compat
make[1]: Entering directory `/root/squid-3.5.12/compat'
source='assert.cc' object='assert.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../cfgaux/depcomp \
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I../include -I../lib -I../src -I../include   -I../libltdl    -c -o assert.lo assert.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include -I../libltdl -c assert.cc  -o .libs/assert.o
../libtool: line 1125: g++: command not found
make[1]: *** [assert.lo] Error 1
make[1]: Leaving directory `/root/squid-3.5.12/compat'
make: *** [all-recursive] Error 1

following is a part of ./configure output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
configure: CPU arch native optimization enabled: auto
checking whether compiler accepts -march=native... no
checking simplified host os... linux (version )
checking what kind of compiler we're using... none
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... no
configure: No compiler with C++11 support was found
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for egrep... /usr/bin/egrep
checking for sh... /usr/bin/sh
checking for false... /usr/bin/false
checking for true... /usr/bin/true

--
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Yuri Voinov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
That's it.

You installed gcc but not g++.

Simple.

13.01.16 1:34, Billy.Zheng (zw963) пишет:
> checking for cc++... no

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJWlV63AAoJENNXIZxhPexGv2EIAIeL/q5cQBHLVhxFyqZoZZCn
vCfaHslQsrjQqolHHYZUv0yWSXAWwc0H5kDlPXSQLD7g8UZU5rntMNlScYVvDr/9
5al0QMw98YVh84vrl4RxuWtnQlSeVSsTd1ZqWTNcZp2GYWJVNPFsAeksqH0EykCT
FSFoXGvaCZpc59+KcZpJ4h3tcQk2floNxlrRlwFno7txBI9Aa1FfKqZsDeGsmWnN
IeEjGW4CaiY6TUZ22MtcyRIDJbS+noN9tu3948puImedWzanQXMn2KeOTHHI5Ldb
1UvYX68XW9WL6rNjscmvOsy2ulOT4gUPszZvP17rDcRgH6Uqzz4mVrLphjH4SFo=
=amAA
-----END PGP SIGNATURE-----

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Yuri Voinov
In reply to this post by Billy.Zheng(zw963)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
Squid now completely written on C++ ;)

13.01.16 1:34, Billy.Zheng (zw963) пишет:

>
>>>
>>> Or, just tell me, this worked, it is fine, and I will very happy to use.
>>>
>>> btw: When I first install, ./configure is passed, but make is failed.
>>> because I am not install gcc-c++. I have to install gcc-c++, reconfigure
>>> again, make is passed. I thought if ./configure could detect gcc-c++
>>> is not installed, will more good.
>
>> What C++ compiler did you have installed instead of gcc-c++ ?
>
> I use CentOS 7.0 in VPS.
>
> I just follow squid document from here:
http://wiki.squid-cache.org/SquidFaq/CompilingSquid
>
> with following operation:
>
> [root@vultr squid-3.5.12]# yum install -y perl gcc autoconf automake
make sudo wget

> [root@vultr squid-3.5.12]# yum install openssl-devel
> [root@vultr squid-3.5.12]# g++
> -bash: g++: command not found
>
> and then run my new config, Thanks for guide.
>
>     ./configure --build=x86_64-linux-gnu \
>         --prefix=/usr \
>         --exec-prefix=/usr \
>         '--bindir=${prefix}/bin' \
>         '--sbindir=${prefix}/sbin' \
>         '--libdir=${prefix}/lib64' \
>         '--libexecdir=${prefix}/lib64/squid' \
>         '--includedir=${prefix}/include' \
>         '--datadir=${prefix}/share/squid' \
>         '--mandir=${prefix}/share/man' \
>         '--infodir=${prefix}/share/info' \
>         --localstatedir=/var \
>         '--with-logdir=${localstatedir}/log/squid' \
>         '--with-pidfile=${localstatedir}/run/squid.pid' \
>         '--with-swapdir=${localstatedir}/spool/squid' \
>         --sysconfdir=/etc/squid \
>         --with-openssl \
>         --with-default-user=squid \
>         --with-filedescriptors=16384
>
> it worked. and end with Makefile created.
>
> It seem like not c++ compile included initially, ./configure is not
detect out

> for it for this OS, so no any error occur.
>
> when I run make, it told me `g++: command not found'
>
> [root@vultr squid-3.5.12]# make
> Making all in compat
> make[1]: Entering directory `/root/squid-3.5.12/compat'
> source='assert.cc' object='assert.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../cfgaux/depcomp \
> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  
-I.. -I../include -I../lib -I../src -I../include   -I../libltdl    -c -o
assert.lo assert.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib
-I../src -I../include -I../libltdl -c assert.cc  -o .libs/assert.o

> ../libtool: line 1125: g++: command not found
> make[1]: *** [assert.lo] Error 1
> make[1]: Leaving directory `/root/squid-3.5.12/compat'
> make: *** [all-recursive] Error 1
>
> following is a part of ./configure output:
>
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether UID '0' is supported by ustar format... yes
> checking whether GID '0' is supported by ustar format... yes
> checking how to create a ustar tar archive... gnutar
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking whether gcc understands -c and -o together... yes
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking for g++... no
> checking for c++... no
> checking for gpp... no
> checking for aCC... no
> checking for CC... no
> checking for cxx... no
> checking for cc++... no
> checking for cl.exe... no
> checking for FCC... no
> checking for KCC... no
> checking for RCC... no
> checking for xlC_r... no
> checking for xlC... no
> checking whether we are using the GNU C++ compiler... no
> checking whether g++ accepts -g... no
> checking dependency style of g++... none
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> configure: CPU arch native optimization enabled: auto
> checking whether compiler accepts -march=native... no
> checking simplified host os... linux (version )
> checking what kind of compiler we're using... none
> checking whether g++ supports C++11 features by default... no
> checking whether g++ supports C++11 features with -std=c++11... no
> checking whether g++ supports C++11 features with -std=c++0x... no
> configure: No compiler with C++11 support was found
> checking for ranlib... ranlib
> checking how to run the C preprocessor... gcc -E
> checking whether ln -s works... yes
> checking for egrep... /usr/bin/egrep
> checking for sh... /usr/bin/sh
> checking for false... /usr/bin/false
> checking for true... /usr/bin/true
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJWlV92AAoJENNXIZxhPexG7OEH/2xwmeXY4Xh788CLEj7prefe
enbVxWr1zAKI6c72Qj3TyxmSTsxAwH2YxInbUbv9tBvPtdYDku/au94mlOIQ60JG
sz6OzImlbYXx33pTuckLsbfUTkIjxREqqVy2JDzx2KMAJszn//98/0SGIh1JpJGy
MA21I9hpf0IoCijqmPk768QwLEBbz/a5GUZcxpH6XapQpQ4cdHkHMTIHof3HKxLH
uT+VEGOPT3tTilkJiIWd2kvfGK+pZRe6CDVWrF6sVIYohdMuodnmyO043dlG2Ir4
AX8L6HIWTQR54DujJ96HNen7FROW+6DpghDuACDOAUdNSqYx5om1Zph2ZuzHatk=
=5VUD
-----END PGP SIGNATURE-----

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

talikarni
In reply to this post by Billy.Zheng(zw963)
When I used CentOS 7 (a variation of it), this is what I had to use:

  • yum -y install perl gcc gcc-c++ autoconf automake make

  • yum -y install epel-release

    • (has a few packages we need below)

  • yum -y install libxml2-devel libcap-devel avr-gcc-c++

  • yum -y install libtool-ltdl-devel openssl-devel

  • yum -y install ksh perl-Crypt-OpenSSL-X509

I prefer separate lines with only a few to be installed since if theres a problem with one, it is more likely to show an error rather than be buried.


With 3.5.5 they made some changes so for 3.5.5 and newer, certain configure options no longer work that previously did as far back as 3.1.x. This is for 64bit, there are a few small differences for 32 bit OS.
  • ./configure '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--exec_prefix=/usr' '--libexecdir=/usr/lib64/squid' '--localstatedir=/var' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--with-logdir=$(localstatedir)/log/squid' '--with-pidfile=$(localstatedir)/run/squid.pid' '--disable-dependency-tracking' '--enable-follow-x-forwarded-for' '--enable-cache-digests' '--enable-cachemgr-hostname=localhost' '--enable-delay-pools' '--enable-epoll' '--enable-icap-client' '--enable-ident-lookups' '--enable-linux-netfilter' '--enable-removal-policies=heap,lru' '--enable-snmp' '--enable-storeio=aufs,diskd,ufs,rock' '--enable-wccpv2' '--enable-esi' '--enable-ssl' '--enable-ssl-crtd' '--enable-icmp' '--with-aio' '--with-default-user=squid' '--with-filedescriptors=1024' '--with-dl' '--with-openssl' '--with-pthreads' '--with-included-ltdl' '--disable-arch-native' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig'



There are small variations in CentOS that make it different from other linux operating systems, so when I've had issues with missing configure options, I installed the available version from yum, then went through one by one and found what I needed, mirrored it to an extent for building from source. I also added my ssl based options.
I have 2 different CentOS 7 based systems running squid with no problems using this setup.

Mike





On 1/12/2016 13:34 PM, Billy.Zheng(zw963) wrote:

      
Or, just tell me, this worked, it is fine, and I will very happy to use.

btw: When I first install, ./configure is passed, but make is failed.
because I am not install gcc-c++. I have to install gcc-c++, reconfigure
again, make is passed. I thought if ./configure could detect gcc-c++
is not installed, will more good.

      
What C++ compiler did you have installed instead of gcc-c++ ?
I use CentOS 7.0 in VPS.

I just follow squid document from here: http://wiki.squid-cache.org/SquidFaq/CompilingSquid

with following operation:

[root@vultr squid-3.5.12]# yum install -y perl gcc autoconf automake make sudo wget
[root@vultr squid-3.5.12]# yum install openssl-devel
[root@vultr squid-3.5.12]# g++
-bash: g++: command not found

and then run my new config, Thanks for guide.

    ./configure --build=x86_64-linux-gnu \
        --prefix=/usr \
        --exec-prefix=/usr \
        '--bindir=${prefix}/bin' \
        '--sbindir=${prefix}/sbin' \
        '--libdir=${prefix}/lib64' \
        '--libexecdir=${prefix}/lib64/squid' \
        '--includedir=${prefix}/include' \
        '--datadir=${prefix}/share/squid' \
        '--mandir=${prefix}/share/man' \
        '--infodir=${prefix}/share/info' \
        --localstatedir=/var \
        '--with-logdir=${localstatedir}/log/squid' \
        '--with-pidfile=${localstatedir}/run/squid.pid' \
        '--with-swapdir=${localstatedir}/spool/squid' \
        --sysconfdir=/etc/squid \
        --with-openssl \
        --with-default-user=squid \
        --with-filedescriptors=16384

it worked. and end with Makefile created.

It seem like not c++ compile included initially, ./configure is not detect out
for it for this OS, so no any error occur.

when I run make, it told me `g++: command not found'

[root@vultr squid-3.5.12]# make
Making all in compat
make[1]: Entering directory `/root/squid-3.5.12/compat'
source='assert.cc' object='assert.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../cfgaux/depcomp \
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I../include -I../lib -I../src -I../include   -I../libltdl    -c -o assert.lo assert.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include -I../libltdl -c assert.cc  -o .libs/assert.o
../libtool: line 1125: g++: command not found
make[1]: *** [assert.lo] Error 1
make[1]: Leaving directory `/root/squid-3.5.12/compat'
make: *** [all-recursive] Error 1

following is a part of ./configure output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
configure: CPU arch native optimization enabled: auto
checking whether compiler accepts -march=native... no
checking simplified host os... linux (version )
checking what kind of compiler we're using... none
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... no
configure: No compiler with C++11 support was found
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for egrep... /usr/bin/egrep
checking for sh... /usr/bin/sh
checking for false... /usr/bin/false
checking for true... /usr/bin/true



_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Eliezer Croitoru
In reply to this post by Billy.Zheng(zw963)
On 04/01/2016 11:22, 郑伟 wrote:
> I want to use newest version Squid, but i think I perhaps missing
> something important option maybe, which can cause risk in some case?
>
> Could any please help me for a `standard necessary' configure arguments
> for current 3.5 serious?

As was mentioned couple times here the basic "./configure" should be enough.
 From an unknown reason the wiki might not be up-to-date and you should
also take a look at the buildfarm installation instructions just to
understand that somethings might be missing:
http://wiki.squid-cache.org/BuildFarm/CentosInstall

But I encourage to build and understand how it all works out for you.
Sometimes RPM builders tend to add things to be more verbose then needed
but not in all cases.
I am building the CentOS unofficial RPMs which are up-to-date to the
latest version(3.5.13) if possible, more info at:
http://wiki.squid-cache.org/KnowledgeBase/CentOS#Squid-3.5

If you need specific help just let me know.

Eliezer
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Billy.Zheng(zw963)
In reply to this post by Yuri Voinov

So the problem is: Why configure not detect out my system missing g++
until I run make,  it told me `g++: command not found' ?

Yuri Voinov writes:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>  
> Squid now completely written on C++ ;)
>
> 13.01.16 1:34, Billy.Zheng (zw963) пишет:
>>
>>>>
>>>> Or, just tell me, this worked, it is fine, and I will very happy to use.
>>>>
>>>> btw: When I first install, ./configure is passed, but make is failed.
>>>> because I am not install gcc-c++. I have to install gcc-c++, reconfigure
>>>> again, make is passed. I thought if ./configure could detect gcc-c++
>>>> is not installed, will more good.
>>
>>> What C++ compiler did you have installed instead of gcc-c++ ?
>>
>> I use CentOS 7.0 in VPS.
>>
>> I just follow squid document from here:
> http://wiki.squid-cache.org/SquidFaq/CompilingSquid
>>
>> with following operation:
>>
>> [root@vultr squid-3.5.12]# yum install -y perl gcc autoconf automake
> make sudo wget
>> [root@vultr squid-3.5.12]# yum install openssl-devel
>> [root@vultr squid-3.5.12]# g++
>> -bash: g++: command not found
>>
>> and then run my new config, Thanks for guide.
>>
>>     ./configure --build=x86_64-linux-gnu \
>>         --prefix=/usr \
>>         --exec-prefix=/usr \
>>         '--bindir=${prefix}/bin' \
>>         '--sbindir=${prefix}/sbin' \
>>         '--libdir=${prefix}/lib64' \
>>         '--libexecdir=${prefix}/lib64/squid' \
>>         '--includedir=${prefix}/include' \
>>         '--datadir=${prefix}/share/squid' \
>>         '--mandir=${prefix}/share/man' \
>>         '--infodir=${prefix}/share/info' \
>>         --localstatedir=/var \
>>         '--with-logdir=${localstatedir}/log/squid' \
>>         '--with-pidfile=${localstatedir}/run/squid.pid' \
>>         '--with-swapdir=${localstatedir}/spool/squid' \
>>         --sysconfdir=/etc/squid \
>>         --with-openssl \
>>         --with-default-user=squid \
>>         --with-filedescriptors=16384
>>
>> it worked. and end with Makefile created.
>>
>> It seem like not c++ compile included initially, ./configure is not
> detect out
>> for it for this OS, so no any error occur.
>>
>> when I run make, it told me `g++: command not found'
>>
>> [root@vultr squid-3.5.12]# make
>> Making all in compat
>> make[1]: Entering directory `/root/squid-3.5.12/compat'
>> source='assert.cc' object='assert.lo' libtool=yes \
>> DEPDIR=.deps depmode=none /bin/sh ../cfgaux/depcomp \
>> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  
> -I.. -I../include -I../lib -I../src -I../include   -I../libltdl    -c -o
> assert.lo assert.cc
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib
> -I../src -I../include -I../libltdl -c assert.cc  -o .libs/assert.o
>> ../libtool: line 1125: g++: command not found
>> make[1]: *** [assert.lo] Error 1
>> make[1]: Leaving directory `/root/squid-3.5.12/compat'
>> make: *** [all-recursive] Error 1
>>
>> following is a part of ./configure output:
>>
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
>> checking for gawk... gawk
>> checking whether make sets $(MAKE)... yes
>> checking whether make supports nested variables... yes
>> checking whether UID '0' is supported by ustar format... yes
>> checking whether GID '0' is supported by ustar format... yes
>> checking how to create a ustar tar archive... gnutar
>> checking whether to enable maintainer-specific portions of Makefiles... no
>> checking for gcc... gcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... no
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking whether gcc understands -c and -o together... yes
>> checking for style of include used by make... GNU
>> checking dependency style of gcc... gcc3
>> checking for g++... no
>> checking for c++... no
>> checking for gpp... no
>> checking for aCC... no
>> checking for CC... no
>> checking for cxx... no
>> checking for cc++... no
>> checking for cl.exe... no
>> checking for FCC... no
>> checking for KCC... no
>> checking for RCC... no
>> checking for xlC_r... no
>> checking for xlC... no
>> checking whether we are using the GNU C++ compiler... no
>> checking whether g++ accepts -g... no
>> checking dependency style of g++... none
>> checking build system type... x86_64-pc-linux-gnu
>> checking host system type... x86_64-pc-linux-gnu
>> configure: CPU arch native optimization enabled: auto
>> checking whether compiler accepts -march=native... no
>> checking simplified host os... linux (version )
>> checking what kind of compiler we're using... none
>> checking whether g++ supports C++11 features by default... no
>> checking whether g++ supports C++11 features with -std=c++11... no
>> checking whether g++ supports C++11 features with -std=c++0x... no
>> configure: No compiler with C++11 support was found
>> checking for ranlib... ranlib
>> checking how to run the C preprocessor... gcc -E
>> checking whether ln -s works... yes
>> checking for egrep... /usr/bin/egrep
>> checking for sh... /usr/bin/sh
>> checking for false... /usr/bin/false
>> checking for true... /usr/bin/true
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>  
> iQEcBAEBCAAGBQJWlV92AAoJENNXIZxhPexG7OEH/2xwmeXY4Xh788CLEj7prefe
> enbVxWr1zAKI6c72Qj3TyxmSTsxAwH2YxInbUbv9tBvPtdYDku/au94mlOIQ60JG
> sz6OzImlbYXx33pTuckLsbfUTkIjxREqqVy2JDzx2KMAJszn//98/0SGIh1JpJGy
> MA21I9hpf0IoCijqmPk768QwLEBbz/a5GUZcxpH6XapQpQ4cdHkHMTIHof3HKxLH
> uT+VEGOPT3tTilkJiIWd2kvfGK+pZRe6CDVWrF6sVIYohdMuodnmyO043dlG2Ir4
> AX8L6HIWTQR54DujJ96HNen7FROW+6DpghDuACDOAUdNSqYx5om1Zph2ZuzHatk=
> =5VUD
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users

--
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Billy.Zheng(zw963)
In reply to this post by Yuri Voinov

Why configure not detect ot my gcc-c++ package missing?

sure if i install gcc-c++,  it worked now.

maybe we need update Wiki document here
http://wiki.squid-cache.org/SquidFaq/CompilingSquid
to add new gcc-c++ package as dependency.

Yuri Voinov writes:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>  
> That's it.
>
> You installed gcc but not g++.
>
> Simple.
>
> 13.01.16 1:34, Billy.Zheng (zw963) пишет:
>> checking for cc++... no
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>  
> iQEcBAEBCAAGBQJWlV63AAoJENNXIZxhPexGv2EIAIeL/q5cQBHLVhxFyqZoZZCn
> vCfaHslQsrjQqolHHYZUv0yWSXAWwc0H5kDlPXSQLD7g8UZU5rntMNlScYVvDr/9
> 5al0QMw98YVh84vrl4RxuWtnQlSeVSsTd1ZqWTNcZp2GYWJVNPFsAeksqH0EykCT
> FSFoXGvaCZpc59+KcZpJ4h3tcQk2floNxlrRlwFno7txBI9Aa1FfKqZsDeGsmWnN
> IeEjGW4CaiY6TUZ22MtcyRIDJbS+noN9tu3948puImedWzanQXMn2KeOTHHI5Ldb
> 1UvYX68XW9WL6rNjscmvOsy2ulOT4gUPszZvP17rDcRgH6Uqzz4mVrLphjH4SFo=
> =amAA
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users

--
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Yuri Voinov
In reply to this post by Billy.Zheng(zw963)
If g++ installed, it can be not visible via PATH environment variable.

13.01.16 15:36, Billy.Zheng (zw963) пишет:

> So the problem is: Why configure not detect out my system missing g++
> until I run make,  it told me `g++: command not found' ?
>
> Yuri Voinov writes:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>  
>> Squid now completely written on C++ ;)
>>
>> 13.01.16 1:34, Billy.Zheng (zw963) пишет:
>>>>> Or, just tell me, this worked, it is fine, and I will very happy to use.
>>>>>
>>>>> btw: When I first install, ./configure is passed, but make is failed.
>>>>> because I am not install gcc-c++. I have to install gcc-c++, reconfigure
>>>>> again, make is passed. I thought if ./configure could detect gcc-c++
>>>>> is not installed, will more good.
>>>> What C++ compiler did you have installed instead of gcc-c++ ?
>>> I use CentOS 7.0 in VPS.
>>>
>>> I just follow squid document from here:
>> http://wiki.squid-cache.org/SquidFaq/CompilingSquid
>>> with following operation:
>>>
>>> [root@vultr squid-3.5.12]# yum install -y perl gcc autoconf automake
>> make sudo wget
>>> [root@vultr squid-3.5.12]# yum install openssl-devel
>>> [root@vultr squid-3.5.12]# g++
>>> -bash: g++: command not found
>>>
>>> and then run my new config, Thanks for guide.
>>>
>>>      ./configure --build=x86_64-linux-gnu \
>>>          --prefix=/usr \
>>>          --exec-prefix=/usr \
>>>          '--bindir=${prefix}/bin' \
>>>          '--sbindir=${prefix}/sbin' \
>>>          '--libdir=${prefix}/lib64' \
>>>          '--libexecdir=${prefix}/lib64/squid' \
>>>          '--includedir=${prefix}/include' \
>>>          '--datadir=${prefix}/share/squid' \
>>>          '--mandir=${prefix}/share/man' \
>>>          '--infodir=${prefix}/share/info' \
>>>          --localstatedir=/var \
>>>          '--with-logdir=${localstatedir}/log/squid' \
>>>          '--with-pidfile=${localstatedir}/run/squid.pid' \
>>>          '--with-swapdir=${localstatedir}/spool/squid' \
>>>          --sysconfdir=/etc/squid \
>>>          --with-openssl \
>>>          --with-default-user=squid \
>>>          --with-filedescriptors=16384
>>>
>>> it worked. and end with Makefile created.
>>>
>>> It seem like not c++ compile included initially, ./configure is not
>> detect out
>>> for it for this OS, so no any error occur.
>>>
>>> when I run make, it told me `g++: command not found'
>>>
>>> [root@vultr squid-3.5.12]# make
>>> Making all in compat
>>> make[1]: Entering directory `/root/squid-3.5.12/compat'
>>> source='assert.cc' object='assert.lo' libtool=yes \
>>> DEPDIR=.deps depmode=none /bin/sh ../cfgaux/depcomp \
>>> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
>> -I.. -I../include -I../lib -I../src -I../include   -I../libltdl    -c -o
>> assert.lo assert.cc
>>> libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib
>> -I../src -I../include -I../libltdl -c assert.cc  -o .libs/assert.o
>>> ../libtool: line 1125: g++: command not found
>>> make[1]: *** [assert.lo] Error 1
>>> make[1]: Leaving directory `/root/squid-3.5.12/compat'
>>> make: *** [all-recursive] Error 1
>>>
>>> following is a part of ./configure output:
>>>
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
>>> checking for gawk... gawk
>>> checking whether make sets $(MAKE)... yes
>>> checking whether make supports nested variables... yes
>>> checking whether UID '0' is supported by ustar format... yes
>>> checking whether GID '0' is supported by ustar format... yes
>>> checking how to create a ustar tar archive... gnutar
>>> checking whether to enable maintainer-specific portions of Makefiles... no
>>> checking for gcc... gcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether gcc accepts -g... yes
>>> checking for gcc option to accept ISO C89... none needed
>>> checking whether gcc understands -c and -o together... yes
>>> checking for style of include used by make... GNU
>>> checking dependency style of gcc... gcc3
>>> checking for g++... no
>>> checking for c++... no
>>> checking for gpp... no
>>> checking for aCC... no
>>> checking for CC... no
>>> checking for cxx... no
>>> checking for cc++... no
>>> checking for cl.exe... no
>>> checking for FCC... no
>>> checking for KCC... no
>>> checking for RCC... no
>>> checking for xlC_r... no
>>> checking for xlC... no
>>> checking whether we are using the GNU C++ compiler... no
>>> checking whether g++ accepts -g... no
>>> checking dependency style of g++... none
>>> checking build system type... x86_64-pc-linux-gnu
>>> checking host system type... x86_64-pc-linux-gnu
>>> configure: CPU arch native optimization enabled: auto
>>> checking whether compiler accepts -march=native... no
>>> checking simplified host os... linux (version )
>>> checking what kind of compiler we're using... none
>>> checking whether g++ supports C++11 features by default... no
>>> checking whether g++ supports C++11 features with -std=c++11... no
>>> checking whether g++ supports C++11 features with -std=c++0x... no
>>> configure: No compiler with C++11 support was found
>>> checking for ranlib... ranlib
>>> checking how to run the C preprocessor... gcc -E
>>> checking whether ln -s works... yes
>>> checking for egrep... /usr/bin/egrep
>>> checking for sh... /usr/bin/sh
>>> checking for false... /usr/bin/false
>>> checking for true... /usr/bin/true
>>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2
>>  
>> iQEcBAEBCAAGBQJWlV92AAoJENNXIZxhPexG7OEH/2xwmeXY4Xh788CLEj7prefe
>> enbVxWr1zAKI6c72Qj3TyxmSTsxAwH2YxInbUbv9tBvPtdYDku/au94mlOIQ60JG
>> sz6OzImlbYXx33pTuckLsbfUTkIjxREqqVy2JDzx2KMAJszn//98/0SGIh1JpJGy
>> MA21I9hpf0IoCijqmPk768QwLEBbz/a5GUZcxpH6XapQpQ4cdHkHMTIHof3HKxLH
>> uT+VEGOPT3tTilkJiIWd2kvfGK+pZRe6CDVWrF6sVIYohdMuodnmyO043dlG2Ir4
>> AX8L6HIWTQR54DujJ96HNen7FROW+6DpghDuACDOAUdNSqYx5om1Zph2ZuzHatk=
>> =5VUD
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> squid-users mailing list
>> [hidden email]
>> http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Billy.Zheng(zw963)
In reply to this post by talikarni
I will investigate your's config options carefully, Thank!
Mike writes:

> When I used CentOS 7 (a variation of it), this is what I had to use:
>
>
>   • yum -y install perl gcc gcc-c++ autoconf automake make
>
>   • yum -y install epel-release
>
>       □ (has a few packages we need below)
>
>   • yum -y install libxml2-devel libcap-devel avr-gcc-c++
>
>   • yum -y install libtool-ltdl-devel openssl-devel
>
>   • yum -y install ksh perl-Crypt-OpenSSL-X509
>
> I prefer separate lines with only a few to be installed since if theres a
> problem with one, it is more likely to show an error rather than be buried.
>
>
> With 3.5.5 they made some changes so for 3.5.5 and newer, certain configure
> options no longer work that previously did as far back as 3.1.x. This is for
> 64bit, there are a few small differences for 32 bit OS.
>
>   • ./configure '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
>     '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/
>     usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=
>     /usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man'
>     '--infodir=/usr/share/info' '--exec_prefix=/usr' '--libexecdir=/usr/lib64/
>     squid' '--localstatedir=/var' '--datadir=/usr/share/squid' '--sysconfdir=/
>     etc/squid' '--with-logdir=$(localstatedir)/log/squid' '--with-pidfile=$
>     (localstatedir)/run/squid.pid' '--disable-dependency-tracking'
>     '--enable-follow-x-forwarded-for' '--enable-cache-digests'
>     '--enable-cachemgr-hostname=localhost' '--enable-delay-pools'
>     '--enable-epoll' '--enable-icap-client' '--enable-ident-lookups'
>     '--enable-linux-netfilter' '--enable-removal-policies=heap,lru'
>     '--enable-snmp' '--enable-storeio=aufs,diskd,ufs,rock' '--enable-wccpv2'
>     '--enable-esi' '--enable-ssl' '--enable-ssl-crtd' '--enable-icmp'
>     '--with-aio' '--with-default-user=squid' '--with-filedescriptors=1024'
>     '--with-dl' '--with-openssl' '--with-pthreads' '--with-included-ltdl'
>     '--disable-arch-native' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>     -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=
>     generic' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>     -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC'
>     'PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig'
>
>
>
> There are small variations in CentOS that make it different from other linux
> operating systems, so when I've had issues with missing configure options, I
> installed the available version from yum, then went through one by one and
> found what I needed, mirrored it to an extent for building from source. I also
> added my ssl based options.
> I have 2 different CentOS 7 based systems running squid with no problems using
> this setup.
>
> Mike
>
>
>
>
>
> On 1/12/2016 13:34 PM, Billy.Zheng(zw963) wrote:
>
>             Or, just tell me, this worked, it is fine, and I will very happy to use.
>
>             btw: When I first install, ./configure is passed, but make is failed.
>             because I am not install gcc-c++. I have to install gcc-c++, reconfigure
>             again, make is passed. I thought if ./configure could detect gcc-c++
>             is not installed, will more good.
>
>         What C++ compiler did you have installed instead of gcc-c++ ?
>
>     I use CentOS 7.0 in VPS.
>
>     I just follow squid document from here: http://wiki.squid-cache.org/SquidFaq/CompilingSquid
>
>     with following operation:
>
>     [root@vultr squid-3.5.12]# yum install -y perl gcc autoconf automake make sudo wget
>     [root@vultr squid-3.5.12]# yum install openssl-devel
>     [root@vultr squid-3.5.12]# g++
>     -bash: g++: command not found
>
>     and then run my new config, Thanks for guide.
>
>         ./configure --build=x86_64-linux-gnu \
>             --prefix=/usr \
>             --exec-prefix=/usr \
>             '--bindir=${prefix}/bin' \
>             '--sbindir=${prefix}/sbin' \
>             '--libdir=${prefix}/lib64' \
>             '--libexecdir=${prefix}/lib64/squid' \
>             '--includedir=${prefix}/include' \
>             '--datadir=${prefix}/share/squid' \
>             '--mandir=${prefix}/share/man' \
>             '--infodir=${prefix}/share/info' \
>             --localstatedir=/var \
>             '--with-logdir=${localstatedir}/log/squid' \
>             '--with-pidfile=${localstatedir}/run/squid.pid' \
>             '--with-swapdir=${localstatedir}/spool/squid' \
>             --sysconfdir=/etc/squid \
>             --with-openssl \
>             --with-default-user=squid \
>             --with-filedescriptors=16384
>
>     it worked. and end with Makefile created.
>
>     It seem like not c++ compile included initially, ./configure is not detect out
>     for it for this OS, so no any error occur.
>
>     when I run make, it told me `g++: command not found'
>
>     [root@vultr squid-3.5.12]# make
>     Making all in compat
>     make[1]: Entering directory `/root/squid-3.5.12/compat'
>     source='assert.cc' object='assert.lo' libtool=yes \
>     DEPDIR=.deps depmode=none /bin/sh ../cfgaux/depcomp \
>     /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I../include -I../lib -I../src -I../include   -I../libltdl    -c -o assert.lo assert.cc
>     libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include -I../libltdl -c assert.cc  -o .libs/assert.o
>     ../libtool: line 1125: g++: command not found
>     make[1]: *** [assert.lo] Error 1
>     make[1]: Leaving directory `/root/squid-3.5.12/compat'
>     make: *** [all-recursive] Error 1
>
>     following is a part of ./configure output:
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>     checking whether build environment is sane... yes
>     checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
>     checking for gawk... gawk
>     checking whether make sets $(MAKE)... yes
>     checking whether make supports nested variables... yes
>     checking whether UID '0' is supported by ustar format... yes
>     checking whether GID '0' is supported by ustar format... yes
>     checking how to create a ustar tar archive... gnutar
>     checking whether to enable maintainer-specific portions of Makefiles... no
>     checking for gcc... gcc
>     checking whether the C compiler works... yes
>     checking for C compiler default output file name... a.out
>     checking for suffix of executables...
>     checking whether we are cross compiling... no
>     checking for suffix of object files... o
>     checking whether we are using the GNU C compiler... yes
>     checking whether gcc accepts -g... yes
>     checking for gcc option to accept ISO C89... none needed
>     checking whether gcc understands -c and -o together... yes
>     checking for style of include used by make... GNU
>     checking dependency style of gcc... gcc3
>     checking for g++... no
>     checking for c++... no
>     checking for gpp... no
>     checking for aCC... no
>     checking for CC... no
>     checking for cxx... no
>     checking for cc++... no
>     checking for cl.exe... no
>     checking for FCC... no
>     checking for KCC... no
>     checking for RCC... no
>     checking for xlC_r... no
>     checking for xlC... no
>     checking whether we are using the GNU C++ compiler... no
>     checking whether g++ accepts -g... no
>     checking dependency style of g++... none
>     checking build system type... x86_64-pc-linux-gnu
>     checking host system type... x86_64-pc-linux-gnu
>     configure: CPU arch native optimization enabled: auto
>     checking whether compiler accepts -march=native... no
>     checking simplified host os... linux (version )
>     checking what kind of compiler we're using... none
>     checking whether g++ supports C++11 features by default... no
>     checking whether g++ supports C++11 features with -std=c++11... no
>     checking whether g++ supports C++11 features with -std=c++0x... no
>     configure: No compiler with C++11 support was found
>     checking for ranlib... ranlib
>     checking how to run the C preprocessor... gcc -E
>     checking whether ln -s works... yes
>     checking for egrep... /usr/bin/egrep
>     checking for sh... /usr/bin/sh
>     checking for false... /usr/bin/false
>     checking for true... /usr/bin/true

--
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Yuri Voinov
In reply to this post by Billy.Zheng(zw963)
BTW, it must not detect and explain, this is your responsibility ;)

13.01.16 15:40, Billy.Zheng (zw963) пишет:

> Why configure not detect ot my gcc-c++ package missing?
>
> sure if i install gcc-c++,  it worked now.
>
> maybe we need update Wiki document here
> http://wiki.squid-cache.org/SquidFaq/CompilingSquid
> to add new gcc-c++ package as dependency.
>
> Yuri Voinov writes:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>  
>> That's it.
>>
>> You installed gcc but not g++.
>>
>> Simple.
>>
>> 13.01.16 1:34, Billy.Zheng (zw963) пишет:
>>> checking for cc++... no
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2
>>  
>> iQEcBAEBCAAGBQJWlV63AAoJENNXIZxhPexGv2EIAIeL/q5cQBHLVhxFyqZoZZCn
>> vCfaHslQsrjQqolHHYZUv0yWSXAWwc0H5kDlPXSQLD7g8UZU5rntMNlScYVvDr/9
>> 5al0QMw98YVh84vrl4RxuWtnQlSeVSsTd1ZqWTNcZp2GYWJVNPFsAeksqH0EykCT
>> FSFoXGvaCZpc59+KcZpJ4h3tcQk2floNxlrRlwFno7txBI9Aa1FfKqZsDeGsmWnN
>> IeEjGW4CaiY6TUZ22MtcyRIDJbS+noN9tu3948puImedWzanQXMn2KeOTHHI5Ldb
>> 1UvYX68XW9WL6rNjscmvOsy2ulOT4gUPszZvP17rDcRgH6Uqzz4mVrLphjH4SFo=
>> =amAA
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> squid-users mailing list
>> [hidden email]
>> http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Billy.Zheng(zw963)
surely, I can resolved this problem with Google, although I hope WIKI
can told me gcc-c++ is needed on CentOS.

Thanks.

Yuri Voinov writes:

> BTW, it must not detect and explain, this is your responsibility ;)
>
> 13.01.16 15:40, Billy.Zheng (zw963) пишет:
>> Why configure not detect ot my gcc-c++ package missing?
>>
>> sure if i install gcc-c++,  it worked now.
>>
>> maybe we need update Wiki document here
>> http://wiki.squid-cache.org/SquidFaq/CompilingSquid
>> to add new gcc-c++ package as dependency.
>>
>> Yuri Voinov writes:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA256
>>>  
>>> That's it.
>>>
>>> You installed gcc but not g++.
>>>
>>> Simple.
>>>
>>> 13.01.16 1:34, Billy.Zheng (zw963) пишет:
>>>> checking for cc++... no
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v2
>>>  
>>> iQEcBAEBCAAGBQJWlV63AAoJENNXIZxhPexGv2EIAIeL/q5cQBHLVhxFyqZoZZCn
>>> vCfaHslQsrjQqolHHYZUv0yWSXAWwc0H5kDlPXSQLD7g8UZU5rntMNlScYVvDr/9
>>> 5al0QMw98YVh84vrl4RxuWtnQlSeVSsTd1ZqWTNcZp2GYWJVNPFsAeksqH0EykCT
>>> FSFoXGvaCZpc59+KcZpJ4h3tcQk2floNxlrRlwFno7txBI9Aa1FfKqZsDeGsmWnN
>>> IeEjGW4CaiY6TUZ22MtcyRIDJbS+noN9tu3948puImedWzanQXMn2KeOTHHI5Ldb
>>> 1UvYX68XW9WL6rNjscmvOsy2ulOT4gUPszZvP17rDcRgH6Uqzz4mVrLphjH4SFo=
>>> =amAA
>>> -----END PGP SIGNATURE-----
>>>
>>> _______________________________________________
>>> squid-users mailing list
>>> [hidden email]
>>> http://lists.squid-cache.org/listinfo/squid-users

--
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Amos Jeffries
Administrator
In reply to this post by Yuri Voinov
On 13/01/2016 10:43 p.m., Yuri Voinov wrote:

> BTW, it must not detect and explain, this is your responsibility ;)
>
> 13.01.16 15:40, Billy.Zheng (zw963) пишет:
>> Why configure not detect ot my gcc-c++ package missing?
>>
>> sure if i install gcc-c++,  it worked now.
>>
>> maybe we need update Wiki document here
>> http://wiki.squid-cache.org/SquidFaq/CompilingSquid
>> to add new gcc-c++ package as dependency.

gcc-c++ is not a dependency. That is just the name of a package on your
OS where g++ comes from.

The g++ dependency is documented in section 1.3.1 of that page:
<http://wiki.squid-cache.org/SquidFaq/CompilingSquid#What_kind_of_compiler_do_I_need.3F>

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Eliezer Croitoru
In reply to this post by Billy.Zheng(zw963)
On 13/01/2016 11:36, Billy.Zheng (zw963) wrote:
> So the problem is: Why configure not detect out my system missing g++
> until I run make,  it told me `g++: command not found' ?

There might be something wrong in the configure script as far as I can
tell since your configure shows the next:
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none

Which should somehow understand that there is no g++, then why it tries
to run it?
I can install a new CentOS 7 VM and see this issue.
Can you file a bugzilla report so I can test the issue and report there?
fill your details there..
http://bugs.squid-cache.org/

Thanks,
Eliezer
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile install Squid, configure default options.

Amos Jeffries
Administrator
On 14/01/2016 2:52 a.m., Eliezer Croitoru wrote:

> On 13/01/2016 11:36, Billy.Zheng (zw963) wrote:
>> So the problem is: Why configure not detect out my system missing g++
>> until I run make,  it told me `g++: command not found' ?
>
> There might be something wrong in the configure script as far as I can
> tell since your configure shows the next:
> checking for g++... no
> checking for c++... no
> checking for gpp... no
> checking for aCC... no
> checking for CC... no
> checking for cxx... no
> checking for cc++... no
> checking for cl.exe... no
> checking for FCC... no
> checking for KCC... no
> checking for RCC... no
> checking for xlC_r... no
> checking for xlC... no
> checking whether we are using the GNU C++ compiler... no
> checking whether g++ accepts -g... no
> checking dependency style of g++... none
>
> Which should somehow understand that there is no g++, then why it tries
> to run it?

autoconf assumes that if the CXX environment variable contains a value
that there is a compiler by that name available, even if it can't detect
what type of compiler it is.

Apparently gcc installation sets CXX="g++" even when the g++ compiler
bits are not installed.


> I can install a new CentOS 7 VM and see this issue.
> Can you file a bugzilla report so I can test the issue and report there?
> fill your details there..
> http://bugs.squid-cache.org/

There is nothing we can do about this.

Amos

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users