vpp icon indicating copy to clipboard operation
vpp copied to clipboard

Error while installng vpp while running the command "./install.sh vpp"

Open muthiyanbhushan opened this issue 7 years ago • 2 comments

Hello,

I am new to c++14 and I am trying to install vpp by executing the command

"./install.sh vpp"

But it gives me following error.

tests/CMakeFiles/fill.dir/build.make:62: recipe for target 'tests/CMakeFiles/fill.dir/fill.cc.o' failed make[2]: *** [tests/CMakeFiles/fill.dir/fill.cc.o] Error 1 CMakeFiles/Makefile2:271: recipe for target 'tests/CMakeFiles/fill.dir/all' failed make[1]: *** [tests/CMakeFiles/fill.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Cannot install /home/bhushan/vpp/vpp_build.

I am using ubuntu 16.04 on Virtual box.

"gcc --version" gives me below output.

--gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

Please, let me know about it.

Thank you.

muthiyanbhushan avatar Sep 22 '17 20:09 muthiyanbhushan

You must use a newer version of GCC. At least GCC 6 or clang newer versions.

zyannick avatar Sep 25 '17 07:09 zyannick

These are the commands to update yout gcc version : sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt update sudo apt install gcc-6 sudo apt install g++-6

And to change your default gcc : sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6

zyannick avatar Sep 25 '17 07:09 zyannick