Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started 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?
-
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.
-
I Download it but how compile? can u help me i try hat u write and dont work maybe i do something bad.
-
What did you do? What error messages did you get?
-
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?
-
Assuming you copy openvswitch-2.4.0.tar.xz to /home/tc
$ 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
-
when i make sudo make install its and error 2 i make photo off it. can u help me with it?
-
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)?
-
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!
-
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 :)
-
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?
-
And screen with order "find" on attachments.
-
..and same screen like of attachments.
As per your screenshot, the openvswitch files are now installed in the correct place :)
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.
-
So all should working now? :)
-
It should be, yes.
-
And can you say me what do order CC="gcc ???
-
See:
https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/Optimize-Options.html#Optimize-Options
-
Thanks a lot for your fast reply and help ! Have nice day !