Discussion:
[clamav-users] Installation problem.
nikos
2018-12-07 07:28:47 UTC
Permalink
Hello list.

I'm trying to install the now version of clam and it seems to be
compilation problems.

I run ./configure --sysconfdir=/etc --enable-milter in the programs
folder and I get the error:

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 the C++ compiler works... no
configure: error: in `/home/admin/clamav-0.101.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

I always install clam from source, as the previous versions. The funny
thing is, if exctract and run configure in the previous version
clamav-0.100.2 every works fine!

I have a server with latest centos release, full updated.

Any suggestions?

Thank you in advance, Nikos.


_______________________________________________
clamav-users mailing list
clamav-***@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Robert Chalmers
2018-12-07 07:44:07 UTC
Permalink
There is something wrong with your C++ compiler.
Is it actually installed?



-----
Robert Chalmers
https://robert-chalmers.uk
***@robert-chalmers.uk
@R_A_Chalmers
Post by nikos
Hello list.
I'm trying to install the now version of clam and it seems to be compilation problems.
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 the C++ compiler works... no
configure: error: C++ compiler cannot create executables
See `config.log' for more details
I always install clam from source, as the previous versions. The funny thing is, if exctract and run configure in the previous version clamav-0.100.2 every works fine!
I have a server with latest centos release, full updated.
Any suggestions?
Thank you in advance, Nikos.
_______________________________________________
clamav-users mailing list
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
Gary R. Schmidt
2018-12-07 08:06:22 UTC
Permalink
Post by nikos
Hello list.
I'm trying to install the now version of clam and it seems to be
compilation problems.
I run ./configure --sysconfdir=/etc --enable-milter in the programs
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 the C++ compiler works... no
configure: error: C++ compiler cannot create executables
See `config.log' for more details
I always install clam from source, as the previous versions. The funny
thing is, if exctract and run configure in the previous version
clamav-0.100.2 every works fine!
I have a server with latest centos release, full updated.
Any suggestions?
Given that your command line works for me, and that your old version is
fine, I suspect a problem with what you have downloaded, so try getting
it again.

Anther thought is that you have run out of space in /home/admin.

And a third is just run configure without any options.

Cheers,
Gary B-)
_______________________________________________
clamav-users mailing list
clamav-***@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Robert Chalmers
2018-12-07 08:54:18 UTC
Permalink
My reasons for querying C++ is this in your log
Post by nikos
checking for cc++... no
checking whether the C++ compiler works... no
and as you are building 101, if you want to stop freshclam dumping an exit error in your logs - it still work, just gives a false error. change this

freshclam/freshclamcodes.h from

typedef enum fc_error_tag {
FC_SUCCESS = 0,
FC_UPTODATE = 1,

to

typedef enum fc_error_tag {
FC_SUCCESS = 0,
FC_UPTODATE = 0,

The clamav code maintainers are aware of this


robert
Post by nikos
Hello list.
I'm trying to install the now version of clam and it seems to be compilation problems.
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 the C++ compiler works... no
configure: error: C++ compiler cannot create executables
See `config.log' for more details
I always install clam from source, as the previous versions. The funny thing is, if exctract and run configure in the previous version clamav-0.100.2 every works fine!
I have a server with latest centos release, full updated.
Any suggestions?
Thank you in advance, Nikos.
_______________________________________________
clamav-users mailing list
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
Robert Chalmers
https://robert-chalmers.uk
***@robert-chalmers.uk
@R_A_Chalmers
Dennis Peterson
2018-12-07 17:32:43 UTC
Permalink
The missing tools are either not in your path or not installed. You could run
yum info */g++ to see if it is installed, and if it is run locate g++ and
compare locations to your path with echo $PATH.

dp
Post by nikos
Hello list.
I'm trying to install the now version of clam and it seems to be compilation
problems.
I run ./configure --sysconfdir=/etc --enable-milter in the programs folder and
_______________________________________________
clamav-users mailing list
clamav-***@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Robert Chalmers
2018-12-10 07:50:30 UTC
Permalink
Ok, try this first.
./configure tidy
./configure clean
./configure <options>

make



-----
Robert Chalmers
https://robert-chalmers.uk
***@robert-chalmers.uk
@R_A_Chalmers
Post by nikos
Hello list.
I tried Robert, but nothing change.
I think is something with configure file. I copy the configure file from previous version and work with no problem. So there is no problem with the C++ compiler. Can I do the installation with the previous configure file?
I try download it again but nothing change, same problem.
Any suggestions?
Thank you.
Post by Robert Chalmers
My reasons for querying C++ is this in your log
Post by nikos
checking for cc++... no
checking whether the C++ compiler works... no
and as you are building 101, if you want to stop freshclam dumping an exit error in your logs - it still work, just gives a false error. change this
freshclam/freshclamcodes.h from
typedef enum fc_error_tag {
FC_SUCCESS = 0,
FC_UPTODATE = 1,
to
typedef enum fc_error_tag {
FC_SUCCESS = 0,
FC_UPTODATE = 0,
The clamav code maintainers are aware of thisβ€Š
robert
Post by nikos
Hello list.
I'm trying to install the now version of clam and it seems to be compilation problems.
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 the C++ compiler works... no
configure: error: C++ compiler cannot create executables
See `config.log' for more details
I always install clam from source, as the previous versions. The funny thing is, if exctract and run configure in the previous version clamav-0.100.2 every works fine!
I have a server with latest centos release, full updated.
Any suggestions?
Thank you in advance, Nikos.
_______________________________________________
clamav-users mailing list
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
Robert Chalmers
https://robert-chalmers.uk
@R_A_Chalmers
_______________________________________________
clamav-users mailing list
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
Robert Chalmers
2018-12-10 10:36:43 UTC
Permalink
Ok, try
make clean

To cleanup the build first.

What sort of OS are you on? You may have said but I can’t remember.
So, delete the current directory you have it in and make sure you are downloading the correct sources.
https://github.com/Cisco-Talos/clamav-faq/blob/master/faq/Installing.md

Or
https://github.com/Cisco-Talos/clamav-faq/blob/master/manual/UserManual/Installation-Unix.md

Ensure your environment points to your compiler. and libraries etc.

Read the INSTALL.MD

Other than that, not sure what could be wrong.

-----
Robert Chalmers
https://robert-chalmers.uk
***@robert-chalmers.uk
@R_A_Chalmers
Post by nikos
Robert,
configure: WARNING: you should use --build, --host, --target
checking for clean-g++... no
checking for clean-c++... no
checking for clean-gpp... no
checking for clean-aCC... no
checking for clean-CC... no
checking for clean-cxx... no
checking for clean-cc++... no
checking for clean-cl.exe... no
checking for clean-FCC... no
checking for clean-KCC... no
checking for clean-RCC... no
checking for clean-xlC_r... no
checking for clean-xlC... no
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 the C++ compiler works... no
configure: error: C++ compiler cannot create executables
See `config.log' for more details
Thank you.
Ok, try this first.
./configure tidy
./configure clean
./configure <options>
make
-----
Robert Chalmers
https://robert-chalmers.uk
author at robert-chalmers.uk
@R_A_Chalmers
Post by nikos
Hello list.
I tried Robert, but nothing change.
I think is something with configure file. I copy the configure file from previous version and work with no problem. So there is no problem with the C++ compiler. Can I do the installation with the previous configure file?
I try download it again but nothing change, same problem.
Any suggestions?
Thank you.
Post by Robert Chalmers
My reasons for querying C++ is this in your log
Post by nikos
checking for cc++... no
checking whether the C++ compiler works... no
and as you are building 101, if you want to stop freshclam dumping an exit error in your logs - it still work, just gives a false error. change this
freshclam/freshclamcodes.h from
typedef enum fc_error_tag {
FC_SUCCESS = 0,
FC_UPTODATE = 1,
to
typedef enum fc_error_tag {
FC_SUCCESS = 0,
FC_UPTODATE = 0,
The clamav code maintainers are aware of this 
robert
Post by nikos
Hello list.
I'm trying to install the now version of clam and it seems to be compilation problems.
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 the C++ compiler works... no
configure: error: C++ compiler cannot create executables
See `config.log' for more details
I always install clam from source, as the previous versions. The funny thing is, if exctract and run configure in the previous version clamav-0.100.2 every works fine!
I have a server with latest centos release, full updated.
Any suggestions?
Thank you in advance, Nikos.
_______________________________________________
clamav-users mailing list
clamav-users at lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
Robert Chalmers
https://robert-chalmers.uk
author at robert-chalmers.uk
@R_A_Chalmers
_______________________________________________
clamav-users mailing list
clamav-users at lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
clamav-users mailing list
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
Continue reading on narkive:
Loading...