-
Notifications
You must be signed in to change notification settings - Fork 202
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
Cannot find OpenSSL's libraries when I try to install #138
Comments
fixed it... sudo apt-get install clibcurl4-openssl-dev pkg-config libssl-dev libsslcommon2-dev |
Do you know if you had libbsl-dev installed, or if installing pkg-config fixed it? Using pkg-config is generally preferable, but the fallback should work -- but you'll need to provide: |
(also "-beta" is no longer needed -- the 1.0.0-stable has been released :)) |
I already had libssl-dev and pkg-config installed already. After I installed those packages, I did a normal "sudo pecl install mogodb" and it worked without a problem. |
The configure output said you were missing pkg-config
Anyway, glad everything worked out. Let us know if you find any other issues! |
ug, sorry. I was thinking of a different VM I was testing with. omg, it's the very next line BEFORE the openssl error line and I didn't notice it. Sorry, ID-10T issue. |
I'm running in OSX and tried the following commands
|
Ubuntu 16.10 sudo pecl install mongodb |
@necromant2005 Can you post your "config.log" somewhere (pastebin.com)? And provide a link here? |
I fixed the issue by installing extra libraries, the whole list |
@pocketmax i did the same and it worked! thanks! |
@necromant2005 Thanks, worked for me on Debian 8.3 too! |
On Ubuntu 16.04 I removed libcurl14-openssl-dev and works too |
I am on Ubuntu 14.10 and I get same error but when I try to run everything that @necromant2005 said I get errors: E: Package 'pkg-config' has no installation candidate |
@ostojicmilica: Those look like If you're unable to get those installed, you may want to inquire in an Ubuntu support forum. AFAIK, our config.m4 only relies on Explicit paths for both OpenSSL and SASL may be set with the |
Maybe the problem is because I dont use 14.04, but 14.10 Ubuntu . And can you tell me how to find these paths? @jmikola |
The OpenSSL library path will contain
My mistake for misreading your last post. The packages are still present in 14.10, though: I should reiterate that if you are receiving the following errors:
...that really hints at a problem with your operating system's package manager and is likely outside the scope of this PHP extension. |
|
last solution: |
Small correction for this command (in 2nd comment ) that I came across on Ubuntu 16.04 So I tried |
@necromant2005 solution worked perfectly for me. Thanks ! 🍻 |
u r god! @necromant2005 |
I've created PHPC-1237 so we can improve the installation notes on PHP.net to list a number of packages from #138 (comment). The current documentation is OS-agnostic, but I realize it'd be more helpful to list package names for the most common Linux distributions (e.g. Debian/Ubuntu and perhaps Fedora/CentOS). |
in xenial
fixed my problem. |
sudo pecl install mongodb-beta
...
checking configuring libmongoc... ...
checking Use system libmongoc... no
checking for pkg-config... no
configure: error: Cannot find OpenSSL's libraries
I've tried with/without sudo. I've tried to just install the mongodb lib without the -beta. I have all the openssl libs and dev libs installed and it still gives me this message. I'm using ubuntu utopic
The text was updated successfully, but these errors were encountered: