WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Installation open v switch on core linux  (Read 6566 times)

Offline yszty

  • Newbie
  • *
  • Posts: 11
Installation open v switch on core linux
« on: December 10, 2015, 07:37:14 AM »
Hey,

I am new on core linux and i tryed to find any information on web how to install open v switch on it. Can someone help me with it?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation open v switch on core linux
« Reply #1 on: December 10, 2015, 08:23:33 AM »
It looks like you download the latest source, openvswitch-2.4.0.tar.gz, and compile it - the instructions are in the file named install.md in the tarball.

Offline yszty

  • Newbie
  • *
  • Posts: 11
Re: Installation open v switch on core linux
« Reply #2 on: December 11, 2015, 03:17:04 AM »
I Download it but how compile?  can u help me i try hat u write and dont work maybe i do something bad.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation open v switch on core linux
« Reply #3 on: December 11, 2015, 03:45:10 AM »
What did you do? What error messages did you get?

Offline yszty

  • Newbie
  • *
  • Posts: 11
Re: Installation open v switch on core linux
« Reply #4 on: December 11, 2015, 04:43:40 AM »
i mean i work only on debian compilation of linux and dont know what to do. I press tab to see all compand but didnt see there any command to compile it. Can u help me with that proces?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation open v switch on core linux
« Reply #5 on: December 11, 2015, 05:01:29 AM »
Assuming you copy openvswitch-2.4.0.tar.xz to /home/tc
Code: [Select]
$ cd /home/tc
$ tar xf openvswitch-2.4.0.tar.xz
$ cd openvswitch-2.4.0
$ tce-load -i compiletc perl5 python-dev openssl-dev
$ CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --enable-shared --localstatedir=/var
$ find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
$ make
$ sudo make install

Edit: modified ./configure line above to create shared libs.

Edit1: added commands to uncompress source tarball
« Last Edit: December 11, 2015, 06:59:58 AM by Juanito »

Offline yszty

  • Newbie
  • *
  • Posts: 11
Re: Installation open v switch on core linux
« Reply #6 on: December 11, 2015, 06:09:13 AM »
when i make sudo make install its and error 2 i make photo off it. can u help me with it?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation open v switch on core linux
« Reply #7 on: December 11, 2015, 06:18:17 AM »
It looks like you are trying to install into the source folder instead of the root filesystem.

Did you use prefix=/usr/local (correct) or something like prefix=/home/tc/openvswitch (incorrect)?

Offline yszty

  • Newbie
  • *
  • Posts: 11
Re: Installation open v switch on core linux
« Reply #8 on: December 11, 2015, 06:45:17 AM »
Oh my bad i make just /home and its work but /usr/local not. I make all again and i didnt see any error its look fine! Result on attachment. U know maybe how to run now openvswitch? btw thanks a lot for your help!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation open v switch on core linux
« Reply #9 on: December 11, 2015, 06:56:03 AM »
There is still something wrong as you are installing files into /home

As said above, you need to use "--prefix=/usr/local" exactly as written (without the quotes "") and not something containing "/home".

I have no clue how to run openvswitch  :)

Offline yszty

  • Newbie
  • *
  • Posts: 11
Re: Installation open v switch on core linux
« Reply #10 on: December 11, 2015, 07:07:46 AM »
i try again with /usr/local now work -.- i tryed before and check correct of write and was ok ahh ;D Now i type: make its was ok and again sudo install make and same screen like of attachments. Order find . -name Makefile..... shuld nothing to write on screen?

Offline yszty

  • Newbie
  • *
  • Posts: 11
Re: Installation open v switch on core linux
« Reply #11 on: December 11, 2015, 07:08:55 AM »
And screen with order "find" on attachments.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation open v switch on core linux
« Reply #12 on: December 11, 2015, 07:14:29 AM »
..and same screen like of attachments.
As per your screenshot, the openvswitch files are now installed in the correct place  :)

Quote
Order find . -name Makefile..... shuld nothing to write on screen?
No, nothing will be written on the screen - this command removes "-g -O2" from the Makefiles.

Offline yszty

  • Newbie
  • *
  • Posts: 11
Re: Installation open v switch on core linux
« Reply #13 on: December 11, 2015, 07:16:02 AM »
So all should working now? :)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation open v switch on core linux
« Reply #14 on: December 11, 2015, 07:18:10 AM »
It should be, yes.