LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   openvpn compilation (https://www.linuxquestions.org/questions/linux-software-2/openvpn-compilation-566105/)

hua 07-02-2007 02:04 PM

openvpn compilation
 
Hello

I am going to set up may slackware for VPN services with openVPN.
I am beginer with compilations and because I cannot download the tgz packages from slackware homepage right now - I decide that this is the right time to learn it. (even if I need it to work tomorrow :scratch: )

I downloaded the source and extracted it from tar.gz.( By the way, it is right way extracted if I just open the file with midnight commander and copy to a directory (as root)??:confused: It is necessary to extract such things with tar -xvzf command?)

And I read the install text file.
There are such things like (LZO for example) - remember to add "--with-lzo-headers" and "--with-lzo-lib" directives to configure pointing to /usr/local/include and /usr/local/lib.
- What does that mean?
- What if I forget in config something like this?
- Can it be corrected in second try of compilation?

( sorry for stupid questions)

weibullguy 07-02-2007 04:11 PM

LZO is a data compression library which is suitable for data de-/compression in real-time. It is recommended for OpenVPN, but not required. OpenSSL is also recommended. If you want to LZO support compiled into OpenVPN, then you need to tell the configure script where to look for the LZO libraries and headers on your system. That is what those switches are for.

Pkgconfig will usually take care of finding headers and libraries for you. If you have pkgconfig, OpenVPN can be installed by simply
Code:

./configure --prefix=/usr --enable-iproute2 &&
make &&
su -c 'make install'

You can always reconfigure and/or recompile the package if you want to.


All times are GMT -5. The time now is 05:22 PM.