DeveloperSide.NET Forums

DeveloperSide.NET => Building a Web Server, for Linux => Topic started by: Glet on August 28, 2003, 12:01:56 PM



Title: OpenSSL
Post by: Glet on August 28, 2003, 12:01:56 PM
I make install witn no error woo00!! now I put /usr/local/ssl/lib in /etc/ld.so.conf and then typed ldconfig then edited /root/.bash.profile and put /usr/local/ssl/bin in it does this look right??
 



if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi



PATH=$PATH:/usr/local/ssl/bin:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"

export USERNAME BASH_ENV PATH


I type openssl version and I still get the old OpenSSL 0.9.6b [engine] 9 Jul 2001
but when i goto /usr/local/ssl/bin]# ./openssl version it works!!

Ive even tried putting libcrypto.so.0.9.7 and libssl.so.0.9.7 in /lib??

and when i type which openssl i get "/usr/bin/openssl"

CAn someone please help me
 :shock:  :shock:  :shock:


Title: WooTlES
Post by: Glet on August 28, 2003, 12:22:51 PM
I went into /lib and deleted the lib files that had to do with the old openssl and then copyed the new ones to /lib then I deleted the old openssl from /usr/bin and then cp'ed the new one to /usr/bin :P ? Will this work or am I leaving things out??


Title: OpenSSL
Post by: Anonymous on August 28, 2003, 06:10:11 PM
PATH=$PATH:/usr/local/ssl/bin:$HOME/bin

You should have just put "/usr/local/ssl/bin" first, and then $PATH after that.

As you had it, usr/bin was searched first for openssl, /usr/local/ssl/bin was last.


Title: OpenSSL
Post by: guessx on September 28, 2003, 04:44:39 AM
i got this problems too

You mean correct to

PATH=/usr/local/ssl/bin$PATH:$HOME/bin  ?


and i tried it b4

PATH=$PATH:$HOME/usr/local/ssl/bin

then logout..
login root
i type any thing got error
like    -bash xxxxxxxxxxxxxx
i just reinstall the linux...............


Title: OpenSSL
Post by: Anonymous on September 28, 2003, 04:42:42 PM
What the hell are you people doing???

Edit /root/.bash_profile

dont comment or delete anything out, dont delete old files

dont do ANYTHING except at the very end, but right before the 'export ... PATH' statement add this line

PATH=/usr/local/ssl/bin:$PATH


Title: OpenSSL
Post by: Anonymous on September 28, 2003, 04:46:22 PM
Quote

What the hell are you people doing???

Edit /root/.bash_profile

dont comment or delete anything out, dont delete old files

dont do ANYTHING except at the very end, but right before the 'export ... PATH' statement add this line

PATH=/usr/local/ssl/bin:$PATH


And just to clarify, this PATH statement should be the last PATH statement in that file.

So it would be just like I said, than the next line will be "export blah blah PATH blah"

All this does is, put /usr/local/ssl/bin at the very beigining of the PATH.

Than relogin.

Type 'which openssl'


Title: OpenSSL
Post by: Anonymous on September 28, 2003, 06:14:00 PM
Thx a lot
i am new hand!!