Two versions of openssl on one RHL server? C-kermit issue...

Hi all,

I have a server running Redhat Server 5 which comes standard with openssl version 0.9.8.  Migrating from an old debian box, I need to compile c-kermit with SSL support.  C-kermit only compiles properly with openssl 0.9.6 or 0.9.7, however.

My question is this: How can I get c-kermit compiled using 0.9.7 and have it run on my new server?  Could I have two versions of openssl, without nuking the myriad of programs dependent upon openssl 0.9.8?

Thanks in advance!
moopsAsked:
Who is Participating?
 
NopiusConnect With a Mentor Commented:
> My question is this: How can I get c-kermit compiled using 0.9.7 and have it run on my new server?  

Compile OpenSSL 0.9.7 and install it in a separate directory, say to /usr/local/c-kermit/include and /usr/local/c-kermit/lib
That's easy can done with configure "--prefix=/usr/local/c-kermit" option.

When compiling c-kermit, point compiler to that directory with either configure flags (like --with-openssl=/usr/local/c-kermit you must check, I'm not sure)  or with env variables (export them before compiling c-kermit):
CFLAGS="-I/usr/local/c-kermit/include"
LDFLAGS="-L/usr/local/c-kermit/lib -Wl,-rpath -Wl,/usr/local/c-kermit/lib"

Now, compiled c-kermit should depend on your local openssl library (check with ldd).

> Could I have two versions of openssl, without nuking the myriad of programs dependent upon openssl 0.9.8?

Yes you can. But install old openssl in a different from standard location.

Ask here if you have any problems.
0
 
Dave HoweSoftware and Hardware EngineerCommented:
If you compile c-kermit as a "static library" compile, the binaries will include the ssl library *which was available at the time* and hence will be much larger; however, you will then not be dependent on library files on the same box being of compatable version.
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.