Knowledgebase

/opt/alt/curlssl11/usr/lib64/libcurl.so.4: undefined symbol: nghttp2_session_callbacks_set_error_callback

The error message you provided indicates that there is an undefined symbol related to the nghttp2 library when trying to load libcurl.so.4. This suggests that there might be a mismatch or conflict between different versions of nghttp2.

To address this issue, follow these steps:

1. Check nghttp2 Library:

  1. List nghttp2 Libraries:
    • Check if there are multiple versions of the nghttp2 library installed on your system:

      bash
    • ls /usr/lib64/libnghttp2*
    • Ensure there are no conflicting versions.

2. Update or Reinstall nghttp2:

  1. Update nghttp2:

    • If you have multiple versions installed, try updating nghttp2 to the latest version using your package manager:
      SQL

 

    • yum update nghttp2
  • Reinstall nghttp2:

    • If updating doesn't solve the issue, you may need to reinstall nghttp2:
       

 

    • yum reinstall nghttp2

3. Check for Conflicting Libraries:

  1. Use ldd To check for Conflicts:

    bash
  1. ldd /opt/alt/curlssl11/usr/lib64/libcurl.so.4
    • This will display a list of shared libraries that libcurl.so.4 depends on. Check if any of these libraries have conflicts or are missing.

4. Verify Library Versions:

  1. Check nghttp2 Version:
    • Verify which version of nghttp2 is installed:

       
    • nghttp -V
    • Ensure that the installed version is compatible with the version expected by libcurl.so.4.

5. Update Environment Variables:

  1. Check LD_LIBRARY_PATH:
    • Ensure that the LD_LIBRARY_PATH environment variable does not conflict with the location of libcurl.so.4. If necessary, adjust it to point to the correct directory.

6. Rebuild or Recompile:

  1. Rebuild Applications:
    • If you have control over the application that is using libcurl.so.4, try recompiling or rebuilding it.

7. Consult with Support:

If the issue persists, consider reaching out to the support channels of the software or library you're working with. They might have specific recommendations or patches to address this issue.

Remember to back up your data and configurations before making significant changes to your system. If you're uncertain about any step, seek advice from experienced system administrators or support forums.

 
 
 
 
  • 0 Users Found This Useful
Was this answer helpful?