could not configure a c++ compiler in ns3 installation

1,023 views
Skip to first unread message

Muntasir Ahmed

unread,
Jan 30, 2020, 8:27:33 PM1/30/20
to ns-3-users
riaz@riaz-as:~/workspace/ns-allinone-3.30/ns-3.30$ CXX="clang++" ./waf configure
Setting top to                           : /home/riaz/workspace/ns-allinone-3.30/ns-3.30 
Setting out to                           : /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for cc version                  : 9.2.1 
Checking for 'g++' (C++ compiler)        : not found 
Checking for 'clang++' (C++ compiler)    : not found 
Checking for 'icpc' (C++ compiler)       : not found 
could not configure a C++ compiler!
(complete log in /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build/config.log)


but g++ is installed. What to do????????

Sound

unread,
Jan 30, 2020, 9:36:46 PM1/30/20
to ns-3-...@googlegroups.com
What platform are u running your ns3 on ?
Ubuntu? Or Mac OS 

Sent from my iPhone

On 31 Jan 2020, at 02:27, Muntasir Ahmed <muntasira...@gmail.com> wrote:


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/e10ae8bc-0c1c-4310-8537-612784210f46%40googlegroups.com.

Muntasir Ahmed

unread,
Jan 30, 2020, 10:16:56 PM1/30/20
to ns-3-users
Ubuntu 19.10


On Friday, January 31, 2020 at 8:36:46 AM UTC+6, Sound wrote:
What platform are u running your ns3 on ?
Ubuntu? Or Mac OS 

Sent from my iPhone

On 31 Jan 2020, at 02:27, Muntasir Ahmed <muntasira...@gmail.com> wrote:


riaz@riaz-as:~/workspace/ns-allinone-3.30/ns-3.30$ CXX="clang++" ./waf configure
Setting top to                           : /home/riaz/workspace/ns-allinone-3.30/ns-3.30 
Setting out to                           : /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for cc version                  : 9.2.1 
Checking for 'g++' (C++ compiler)        : not found 
Checking for 'clang++' (C++ compiler)    : not found 
Checking for 'icpc' (C++ compiler)       : not found 
could not configure a C++ compiler!
(complete log in /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build/config.log)


but g++ is installed. What to do????????

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-...@googlegroups.com.

Gabriel Ferreira

unread,
Jan 31, 2020, 3:33:06 PM1/31/20
to ns-3-users
You're trying to use clang as your compiler (CXX="clang++") but it's not installed. If you want to use GCC (which is installed), remove that CXX flag.
Reply all
Reply to author
Forward
0 new messages