LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiled openssl, now how to set env. variable? (https://www.linuxquestions.org/questions/linux-newbie-8/compiled-openssl-now-how-to-set-env-variable-4175429633/)

peng12 09-29-2012 02:01 PM

Compiled openssl, now how to set env. variable?
 
Hello,

I'm using Debian x64.

I compiled openssl by myself:

Code:

./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl
make
make install

The old Version has been uninstalled with

Code:

apt-get remove openssl
Now what is the best way to "make it public"?
If I typed "openssl -v" before, the installed version was shown.

Should I set "the search path" to /usr/local/openssl/bin too or just

Code:

cp /usr/local/ssl/bin/openssl /usr/bin/
after Installation.


Thanks in advance
Peng

bathory 09-30-2012 01:43 AM

Hi,
Quote:

Should I set "the search path" to /usr/local/openssl/bin too or just

Code:

cp /usr/local/ssl/bin/openssl /usr/bin/
I guess you mean /usr/local/openssl/bin/openssl, as you've installed it under /usr/local/openssl/
Anyway, it's better to use a symlink, so if you upgrade your openssl installation, you don't have to remember to copy the binary again.
Code:

ln -s /usr/local/openssl/bin/openssl /usr/bin
Or you can add /usr/local/openssl/bin in the PATH env. variable.

Regards

ntubski 09-30-2012 07:53 AM

The usual thing to do is install with --prefix=/usr/local (this is the default), then the binary gets put into /usr/local/bin which is already in $PATH.

bathory 09-30-2012 03:30 PM

@ntubski
Quote:

Originally Posted by ntubski (Post 4793166)
The usual thing to do is install with --prefix=/usr/local (this is the default), then the binary gets put into /usr/local/bin which is already in $PATH.

FYI the default installation location for openssl is /usr/local/ssl

Regards


All times are GMT -5. The time now is 08:40 PM.