Ld Library Not Found For Lssl Mysql

Ld library not found for lssl

Python - macOS 10.14 mysql 5.7 python 2.7 mysqlclient 1.3 pip install 出现 ld: library not found for -lssl 小G哥 2019-02-08T14:41:52Z 2 mysql - macOS brew 安装 mysql 5.7. Linking shared-object mysql2/mysql2.bundle ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) make. Thrift; THRIFT-2799; Build Problem(s): ld: library not found for -l:libboostunittestframework.a. `ld: library not found for -lssl` after Mac OS Sierra upgrade Issue, infile.c compiling mysql2ext.c compiling result.c compiling statement.c linking shared-object mysql2/mysql2.bundle ld: library not found for Trouble linking shared-object mysql2/mysql2.bundle Tagged with note, troubleshooting. Linking shared-object mysql2/mysql2.bundle ld.

Share:
Please consider sharing 🙏
Published At:
Dec 11th, 2020
Tags:
#ruby, #rails, #mysql, #gem
Next:
Ruby's Shovel Method: Digging Deeper
Previous:
Webpacker 6: Tutorial Setup

I’ve come across this error several times throughout my development career so I figured it was finally time to write it down.

Ld Library Not Found For Lssl Mysql Server

Scenario

Library not found for -lsslLd library not found for lssl mysql database

Whenever I try to install certain versions of the mysql2 gem in a Ruby on Rails application, I get the following error:

Solution

Ld Library Not Found For Lssl Mysql Database

In order to fix this issue on macOS, first make sure that you have cmake installed.

Then you can install the gem via the following command:

Hope this helps save someone some time!

Ld Library Not Found For Lssl

View All Articles

Ld Library Not Found For Lssl Mysql Command

aneuryzma wrote:
Hi,
I'm trying to compile some sources and I get the following error message:
/bin/sh ../libtool --mode=link g++ -g -O2 -o pursuit_monitor Monitor.o MonitorParameters.o RGBcolor.o ../../pursuitbase/pursuitbase/libConnection.la ../../pursuitbase/pursuitbase/libGenericValues.la -lpthread -lnsl -lglut -lXi -lGLU -lGL
g++ -g -O2 -o pursuit_monitor Monitor.o MonitorParameters.o RGBcolor.o -Wl,-bind atload ../../pursuitbase/pursuitbase/.libs/libConnection.a ../../pursuitbase/pursuitbase/.libs/libGenericValues.a -lpthread -lnsl -lglut -lXi -lGLU -lGL
ld: library not found for -lnsl
collect2: ld returned 1 exit status
make[3]: * [pursuit_monitor] Error 1
make[2]: * [all-recursive] Error 1
make[1]: * [all] Error 2
make: * [all-recursive] Error 1
What's lnsl library ?
Is something I can remove from makefile configuration ?

The parameter '-lnsl' is a a lower-case 'L' (which describes a library to be searched) followed by the suffix of the name of the library, 'nsl'. The effect is to tell 'ld' to look for a library named 'libnsl.a' or 'libnsl.dylib'. The 'ld' command normally searches for ibraries in the directories /usr/lib and /usr/local/lib . If the 'libnsl' library is in neither of these, addition search directories can be added with the '-L' parameter.
You might try that command with the '-lnsl' parameter removed. If nothing else, it would give you a clue as to what routines were needed from the 'nsl' library, which could help you resolve the problem.

Ld Library Not Found For Lssl Mysql Download

Sep 7, 2009 2:02 PM