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

Solr compilation and libcurl error on systems with multiarch support #46

Closed
dpushkarev opened this issue Dec 15, 2022 · 4 comments
Closed

Comments

@dpushkarev
Copy link

Description:
I try to compile solr 2.6.0 but ./configure fails with error

Actual result:
configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/

Expected result:
Extension should be installed

Additional info:
SOLR 2.6.0
PHP 8.0
Platforms:

  • Debian 10 64 bits
  • Debian 11 64 bits
  • Ubuntu 20.04 64 bits
  • Ubuntu 22.04 64 bits
    *On ReaHat Compatible systems error does not appear.

Before compilation I installed required dependency libcurl4-gnutls-dev via apt-get
I found libcurl4-gnutls-dev is installed in /usr/include/x86_64-linux-gnu/curl when ./configure expect it in /include/curl. The script does not detect the multiarch architecture.
I consider that extension should not be installed with using configure flags on popular OS, anyway I tried to use --with-curl=/usr/include/x86_64-linux-gnu/curl but it did not work.

@bix0r
Copy link
Collaborator

bix0r commented Dec 15, 2022

@dpushkarev Did you see pull request #44 ?

I am hoping that one would fix this issue. Personally I use Debian based OS and that fix helps me.

@dpushkarev
Copy link
Author

dpushkarev commented Dec 15, 2022

@bix0r, I did not, thank you!
How do you consider, will it cover OS with ARM architecture. I got the same error on Ubuntu 22.04 ARM with a few exceptions. libcurl4-gnutls-dev was installed in /usr/include/aarch64-linux-gnu/curl instead of /usr/include/x86_64-linux-gnu/curl

@bix0r
Copy link
Collaborator

bix0r commented Dec 16, 2022

@dpushkarev Did you get this arm error using the code in the PR?

I just tested it on a debian11 aarch64 and it worked. Curl installed in /usr/include/aarch64-linux-gnu/curl.

@omars44
Copy link
Collaborator

omars44 commented Jan 13, 2024

released on version 2.7.0

@omars44 omars44 closed this as completed Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants