LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 02:01 PM   #1
peng12
LQ Newbie
 
Registered: Sep 2012
Posts: 15

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, 01:43 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,173
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
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, 07:53 AM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,786

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
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, 03:30 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,173
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
@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



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 07:14 AM
Do I need to reboot after installation of s/w and set the env variable srangu AIX 3 05-16-2006 04:28 AM
Do I need to remote after installation of s/w and set the env variable srangu AIX 2 05-12-2006 02:12 AM
How to test if an env variable is set King of Men Linux - Newbie 5 11-03-2005 04:39 AM
how do you set an env variable from within a csh script? BrianK Linux - General 3 05-26-2004 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 AM.

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
Open Source Consulting | Domain Registration