[slicer-users] lcrypto error

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Apr 4 10:25:05 EDT 2011


On fedora/debian/ubuntu you need to install both the binary package
and the so-called dev package. The dev package contains includes files
and proper symlinks for ld to find -lcrypto lib.

in my case:
$ dpkg -S /usr/lib/libcrypto.so
libssl-dev: /usr/lib/libcrypto.so

HTH

On Mon, Apr 4, 2011 at 4:17 PM, Magnotta, Vincent A
<vincent-magnotta at uiowa.edu> wrote:
> Matt,
> Typically there is a link from libcrypto.so to the exact version of the
> library (libcrypto.so.10). I am not sure why this is not linked on your
> machine. I would have expected this to exist on all machines if you have the
> library installed, which it appears that you do. I believe that if you
> create this link it will resolve your build issue. You may also want to
> check /usr/lib and see if you have a crypt library there.
> Vince
> --
> Associate Professor
> Department of Radiology
> 0453-D JCP
> 200 Hawkins Drive
> Iowa City, IA 52242
> E-mail: vincent-magnotta at uiowa.edu
> Phone: 319-356-8255 Fax: 319-353-6275
> Website: http://www.healthcare.uiowa.edu/Radiology
> From: Matt A <lucky13_ferrari at hotmail.com>
> Date: Mon, 4 Apr 2011 09:46:50 -0400
> To: <slicer-users at bwh.harvard.edu>, <hans-johnson at uiowa.edu>, Vincent
> Magnotta <vincent-magnotta at uiowa.edu>
> Subject: lcrypto error
>
> Hello,
>
> I'm encountering this error where it cannot find the crypto library. Any
> suggestions?
> Below is the library path echoed, and the /lib has libcrypto
>
>
> [  8%] Performing build step for 'BRAINSInitilizedControlPoints'
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /home/marcese/BRAINS3-build/src/BRAINSTools/BRAINSInitilizedControlPoints-build
> Linking CXX executable
> /home/marcese/BRAINS3-build/src/bin/BRAINSInitilizedControlPoints
> /usr/bin/ld: cannot find -lcrypto
> collect2: ld returned 1 exit status
> make[8]: ***
> [/home/marcese/BRAINS3-build/src/bin/BRAINSInitilizedControlPoints] Error 1
> make[7]: *** [CMakeFiles/BRAINSInitilizedControlPoints.dir/all] Error 2
> make[6]: *** [all] Error 2
> make[5]: ***
> [BRAINSTools/BRAINSInitilizedControlPoints-prefix/src/BRAINSInitilizedControlPoints-stamp/BRAINSInitilizedControlPoints-build]
> Error 2
> make[4]: *** [BRAINSTools/CMakeFiles/BRAINSInitilizedControlPoints.dir/all]
> Error 2
> make[3]: *** [all] Error 2
> make[2]: *** [BRAINS3-prefix/src/BRAINS3-stamp/BRAINS3-build] Error 2
> make[1]: *** [CMakeFiles/BRAINS3.dir/all] Error 2
> make: *** [all] Error 2
> [root at robMoreland BRAINS3-build]# echo $LD_LIBRARY_PATH
> /home/marcese/BRAINS3-build/src/lib:/home/marcese/BRAINS3-build/src/lib/InsightToolkit:/home/marcese/BRAINS3-build/src/lib/vtk-5.6:/home/marcese/BRAINS3-build/src/lib/BRAINSCommonLib:/usr/local/lib:/usr/lib:/lib
> [root at robMoreland BRAINS3-build]# ls /lib | grep crypto
> libcrypto.so.10
> libcrypto.so.1.0.0d
> libk5crypto.so.3
> libk5crypto.so.3.1
> [root at robMoreland BRAINS3-build]#
>
>
> Matthew A.
>
>
>
>
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by the
> Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential
> and may be legally privileged.  If you are not the intended recipient, you
> are hereby notified that any retention, dissemination, distribution, or
> copying of this communication is strictly prohibited.  Please reply to the
> sender that you have received the message in error, then delete it.  Thank
> you.
> ________________________________
> _______________________________________________
> slicer-users mailing list
> slicer-users at bwh.harvard.edu
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
> To unsubscribe: send email to slicer-users-request at massmail.spl.harvard.edu
> with unsubscribe as the subject
>



-- 
Mathieu



More information about the slicer-users mailing list