Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/bin/ld: cannot find -lssl #72

Open
kporembinski opened this issue Jul 6, 2015 · 1 comment
Open

/usr/bin/ld: cannot find -lssl #72

kporembinski opened this issue Jul 6, 2015 · 1 comment

Comments

@kporembinski
Copy link

I have problem with compilation on CentOS release 6.6 (Final). I have all libs:

yum install -y openssl-devel
Loaded plugins: fastestmirror, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * epel: mirror.steadfast.net
 * ius: ord.mirror.rackspace.com
Package openssl-devel-1.0.1e-30.el6.11.x86_64 already installed and latest version
Nothing to do

but still there is a problem:

gcc -c -o obj/admin_sqlite.o admin_sqlite.c -I../include -I../sqlite3 -I../../mariadb-native-client/include -I../../libdaemon-0.14 -I../../jemalloc-3.6.0/include -I../../glib-2.40.0 -I../../glib-2.40.0/glib -O0 -ggdb -DDEBUG -Wall
gcc -o proxysql ../../mariadb-native-client/libmysql/libmariadbclient.a ../../libdaemon-0.14/libdaemon/.libs/libdaemon.a ../../glib-2.40.0/glib/.libs/libglib-2.0.a ../../glib-2.40.0/gthread/.libs/libgthread-2.0.a ../sqlite3/sqlite3.o obj/tokenizer.o obj/utils.o obj/l_utils.o obj/mysql_session.o obj/mysql_data_stream.o obj/mysql_backend.o obj/main.o obj/debug.o obj/fundadb_hash.o obj/global_variables.o obj/mysql_connpool.o obj/mysql_protocol.o obj/mysql_handler.o obj/network.o obj/threads.o obj/admin.o obj/admin_sqlite.o -I../include -I../sqlite3 -I../../mariadb-native-client/include -I../../libdaemon-0.14 -I../../jemalloc-3.6.0/include -I../../glib-2.40.0 -I../../glib-2.40.0/glib -O0 -ggdb -DDEBUG -L../../mariadb-native-client/libmysql -L../../libdaemon-0.14/libdaemon/.libs -L../../jemalloc-3.6.0/lib -L../../glib-2.40.0/glib/.libs -L../../glib-2.40.0/gthread/.libs -rdynamic -Wl,-Bstatic -lmariadbclient -ldaemon -ljemalloc -lssl -lcrypto -pthread -lgthread-2.0 -lglib-2.0 -Wl,-Bdynamic -lkrb5 -ldl -lpthread -lm -lz -lrt
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [proxysql] Error 1
@datinho
Copy link

datinho commented Sep 15, 2015

Hi, try to install openssl, openssl-devel and openssl-static (for RHEL/Centos).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants