LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2012, 03:01 PM   #1
peng12
LQ Newbie
 
Registered: Sep 2012
Posts: 12

Rep: Reputation: Disabled
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
 
Old 09-30-2012, 02:43 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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
 
Old 09-30-2012, 08:53 AM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Arch
Posts: 3,058

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
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.
 
Old 09-30-2012, 04:30 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
@ntubski
Quote:
Originally Posted by ntubski View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set Display env variable in solaris LINUXQueAns Solaris / OpenSolaris 3 11-08-2010 08:14 AM
Do I need to reboot after installation of s/w and set the env variable srangu AIX 3 05-16-2006 05:28 AM
Do I need to remote after installation of s/w and set the env variable srangu AIX 2 05-12-2006 03:12 AM
How to test if an env variable is set King of Men Linux - Newbie 5 11-03-2005 05:39 AM
how do you set an env variable from within a csh script? BrianK Linux - General 3 05-26-2004 03:16 PM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration