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

Linking libraries #116

Closed
dataindataout opened this Issue Feb 26, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@dataindataout

I was having a hard time getting make to complete without error. Here were the errors:

/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
/usr/bin/ld: cannot find -lz

Here's the hack way I got it to work. Is there a better, more repeatable way to do this you could recommend?

[root@centosbase sysbench]# ln -s /usr/lib64/libcrypto.so.1.0.1e /usr/lib64/libcrypto.so
[root@centosbase sysbench]# ln -s /usr/lib64/libssl.so.1.0.1e /usr/lib64/libssl.so
[root@centosbase sysbench]# ln -s /usr/lib64/libz.so.1.2.7 /usr/lib64/libz.so

I'm using Centos 7 and MariaDB 10.1, but I also had the issue with MariaDB 10.0 and Percona 5.6.

@akopytov

This comment has been minimized.

Show comment
Hide comment
@akopytov

akopytov Feb 26, 2017

Owner

Yes, the .so symlinks (as opposed to numbered file names) are installed by the -dev versions of the corresponding packages. I.e. you probably want to install libssl-dev and zlib1g-dev, but exact package names may be different on your system.

Owner

akopytov commented Feb 26, 2017

Yes, the .so symlinks (as opposed to numbered file names) are installed by the -dev versions of the corresponding packages. I.e. you probably want to install libssl-dev and zlib1g-dev, but exact package names may be different on your system.

@akopytov akopytov added the question label Feb 26, 2017

@akopytov akopytov closed this Feb 26, 2017

@dataindataout

This comment has been minimized.

Show comment
Hide comment
@dataindataout

dataindataout Feb 26, 2017

Thank you! This worked.

Thank you! This worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment