Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: yszty on December 10, 2015, 07:37:14 AM

Title: Installation open v switch on core linux
Post by: yszty 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?
Title: Re: Installation open v switch on core linux
Post by: Juanito 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.
Title: Re: Installation open v switch on core linux
Post by: yszty 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.
Title: Re: Installation open v switch on core linux
Post by: Juanito on December 11, 2015, 03:45:10 AM
What did you do? What error messages did you get?
Title: Re: Installation open v switch on core linux
Post by: yszty 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?
Title: Re: Installation open v switch on core linux
Post by: Juanito 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
Title: Re: Installation open v switch on core linux
Post by: yszty 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?
Title: Re: Installation open v switch on core linux
Post by: Juanito 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)?
Title: Re: Installation open v switch on core linux
Post by: yszty 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!
Title: Re: Installation open v switch on core linux
Post by: Juanito 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  :)
Title: Re: Installation open v switch on core linux
Post by: yszty 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?
Title: Re: Installation open v switch on core linux
Post by: yszty on December 11, 2015, 07:08:55 AM
And screen with order "find" on attachments.
Title: Re: Installation open v switch on core linux
Post by: Juanito 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.
Title: Re: Installation open v switch on core linux
Post by: yszty on December 11, 2015, 07:16:02 AM
So all should working now? :)
Title: Re: Installation open v switch on core linux
Post by: Juanito on December 11, 2015, 07:18:10 AM
It should be, yes.
Title: Re: Installation open v switch on core linux
Post by: yszty on December 11, 2015, 07:20:50 AM
And can you say me what do order CC="gcc ???
Title: Re: Installation open v switch on core linux
Post by: Juanito on December 11, 2015, 07:24:15 AM
See:

https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/Optimize-Options.html#Optimize-Options
Title: Re: Installation open v switch on core linux
Post by: yszty on December 11, 2015, 07:32:23 AM
Thanks a lot for your fast reply and help ! Have nice day !