>From: owner-openssl-us...@openssl.org On Behalf Of Paulo Roberto
>Sent: Monday, 27 August, 2012 18:37

>Can no one help me? Isn't there a way of specifying the local 
>the openssl is installed?

You mean "location" i.e. in the file system? As far as I know 
packages on most Linuxes, including ubuntu, install into system 
standard locations, maybe something like /usr/lib or /opt/ssl .
"System" locations vary for different Unixes but are usually the same 
for different libraries on the same Unix, so you might be better off 
asking people who know about ubuntu in particular.

If it is in a standard location, your gcc (assuming your gcc is 
the correct package of gcc for your Unix) should find it. 
If you have some kind of nonstandard perhaps experimental package, 
and you know where it is installed, -L/path/to/libdir is the gcc way 
to specify additional library directories. (The -Ldir must occur 
before the/any -llib that's lower-ell that needs it.) 

You always need to make sure you *compile* with headers that are 
compatible with the library(ies) you *link* with; if you are linking 
with libraries in a nonstandard location you may need -I/path/to/incdir 
that's upper-eye (for gcc) to find the corresponding headers. I'm not sure 
if -I must precede the sourcefile(s) but I put it there for clarity.

And if you have a non-package build, such as one you did yourself 
from source, both of these (-L and -I) are much more likely.

>From: bad_boy_...@hotmail.com
>Date: Thu, 23 Aug 2012 22:06:59 -0300
        
>Hello, I am using the package libssl-dev on ubuntu in my beagleboard xm, 
>and I have to run two C algorithms using the openSSL library..
>       Although I can't compile using the command: gcc test.c -lssl -o
test. 
>It seems the compiler isn't recognizing the "-lssl" command.
>Does someone know how to solve this?
>Do I have to set some path, or something like that?

You haven't obeyed the response Friday asking for the actual error.
There are many possible errors and exactly which one you have may 
point to very different causes and solutions. 


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to