logo
down
shadow

Cannot find `lcrypto` or `lssl` when building with Cargo


Cannot find `lcrypto` or `lssl` when building with Cargo

By : user2956880
Date : November 22 2020, 03:03 PM
seems to work fine You are using crates that depend on OpenSSL and on libcrypto. You must download, compile and install OpenSSL. Since you are using Windows, you should use MSYS or MSYS2 to build OpenSSL. MSYS2 has a package for OpenSSL, so it should be relatively easy to install.
code :


Share : facebook icon twitter icon
OpenSSL link options -lssl and -lcrypto in GCC

OpenSSL link options -lssl and -lcrypto in GCC


By : Anno Scholten
Date : March 29 2020, 07:55 AM
"cannot find -lssl; cannot find -lcrypto" when installing mysql-python?

"cannot find -lssl; cannot find -lcrypto" when installing mysql-python?


By : Avinash
Date : March 29 2020, 07:55 AM
will help you I'm struggling to install the mysql-python pip either systemwide or in a venv on Ubuntu 14.04 with MariaDB 10 installed. Also tried with MariaDB 5.5 and getting the same error. I don't have this issue with vanilla mysql-server installed. , I did the same as you did, and still couldn't reproduce the issue:
code :
(venv)➜  src  pip install mysql-python==1.2.5
Downloading/unpacking mysql-python==1.2.5
  Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
  Running setup.py (path:/home/braiam/src/venv/build/mysql-python/setup.py) egg_info for package mysql-python

Installing collected packages: mysql-python
  Running setup.py install for mysql-python
    building '_mysql' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing
    In file included from _mysql.c:44:0:
    /usr/include/mysql/my_config.h:439:0: warning: "HAVE_WCSCOLL" redefined
     #define HAVE_WCSCOLL
     ^
    In file included from /usr/include/python2.7/pyconfig.h:3:0,
                     from /usr/include/python2.7/Python.h:8,
                     from _mysql.c:29:
    /usr/include/x86_64-linux-gnu/python2.7/pyconfig.h:911:0: note: this is the location of the previous definition
     #define HAVE_WCSCOLL 1
     ^
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/_mysql.o -L/usr/lib/x86_64-linux-gnu -lmariadbclient_r -lpthread -lz -lm -lssl -lcrypto -ldl -o build/lib.linux-x86_64-2.7/_mysql.so

Successfully installed mysql-python
Cleaning up...
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
➜  src  ld -lcrypto --verbose | grep succeeded
attempt to open //usr/lib/x86_64-linux-gnu/libcrypto.so succeeded
ld: warning: cannot find entry symbol _start; not setting start address
➜  src  ld -lssl --verbose | grep succeeded
attempt to open //usr/lib/x86_64-linux-gnu/libssl.so succeeded
ld: warning: cannot find entry symbol _start; not setting start address
Ruby on Rails cannot find -lssl and -lcrypto when installing the mysql2 gem on Debian

Ruby on Rails cannot find -lssl and -lcrypto when installing the mysql2 gem on Debian


By : Omer Khan
Date : March 29 2020, 07:55 AM
it should still fix some issue It looks like you are missing the libssl-dev package. Try running:
code :
sudo apt-get update
sudo apt-get install libssl-dev
Apache2.4.20 Compilation error: /usr/bin/ld: cannot find -lssl and -lcrypto

Apache2.4.20 Compilation error: /usr/bin/ld: cannot find -lssl and -lcrypto


By : Miki Hoshitsuki 437S
Date : March 29 2020, 07:55 AM
help you fix your problem You are building your custom OpenSSL version, but you are not adding the path where you install openssl (most likely /usr/local) to your LDFLAGS. I think --with-ssl=/usr/local should fix your issues
Problem with Ruby Bundle Install, /usr/bin/ld: cannot find -lssl, /usr/bin/ld: cannot find -lcrypto Dradis Framework

Problem with Ruby Bundle Install, /usr/bin/ld: cannot find -lssl, /usr/bin/ld: cannot find -lcrypto Dradis Framework


By : gitreset
Date : March 29 2020, 07:55 AM
I hope this helps you . The -lssl and -lcrypto options are provided by the libssl-dev package on Ubuntu/Debian and Ubuntu-like systems.
Once you install the libssl-dev package you should be able to install the MySQL2 gem.
Related Posts Related Posts :
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org