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

Add troubleshooting steps in docs #6640

Open
naty55 opened this issue Sep 29, 2023 · 3 comments
Open

Add troubleshooting steps in docs #6640

naty55 opened this issue Sep 29, 2023 · 3 comments

Comments

@naty55
Copy link

naty55 commented Sep 29, 2023

Hi I installed and build the library on Ubuntu Linux and had some issues, I want to add their solutions to documentation

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIR) 
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
@bondress
Copy link

This error is raised because the pkg-config utility is not available on your system.

Using PkgConfig with CMake is not a truly cross-platform solution, as Windows does not come with the pkg-config utility installed. (The PCL developers should instead use find_package() in their CMake. Perhaps, this is worth opening up a bug report on their Github.) On Linux, this is an easy fix; you can install pkg-config like this:

sudo apt-get install pkg-config

Source: https://stackoverflow.com/questions/33380020/errorcould-not-find-pkgconfig-missing-pkg-config-executable

Summary, for the impatient
To fix this error "-- Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIR)", run these commands:

sudo ln -s /usr/bin/krb5-config.mit /usr/bin/krb5-config
sudo ln -s /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 /usr/lib/libgssapi_krb5.so
sudo apt-get install python-pip libkrb5-dev
sudo pip install gssapi

Source: https://stackoverflow.com/questions/30896343/how-to-install-gssapi-python-module

To fix this error "-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)", run this command:

sudo apt install libssl-dev

After you install it, you can now run your compilation which caused the error.

Source: https://www.debugpoint.com/could-not-find-openssl/

@Suprithvarma1
Copy link

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
the reason for this is the unavailabilty of the utility in your system
install pk-config utility on your system,resolving this on Linux is a simple task by installing pkg-config through the following method:
sudo apt-get install pkg-config
source :https://copyprogramming.com/howto/error-could-not-find-pkgconfig-missing-pkg-config-executable

-- Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIR)

$ sudo ln -s /usr/bin/krb5-config.mit /usr/bin/krb5-config
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 /usr/lib/libgssapi_krb5.so
$ sudo apt-get install python-pip libkrb5-dev
$ sudo pip install gssapi

source: https://devpress.csdn.net/python/63045d5f7e6682346619a917.html

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)

The package name is different in Linux distributions. Use as per below.
Open a terminal window and use the following command to install in Ubuntu, Debian, Linux Mint and related distributions.
sudo apt install libssl-dev

For Fedora, CentOS, RHEL and related distributions, use the below.
sudo dnf install openssl-dev

For Arch Linux, use the following command to install it.
sudo pacman -S --needed openssl

After you install it, you can now run your compilation which caused the error.

@ChudeObiamaka
Copy link

This error is raised because the pkg-config is not available in your system
Steps to resolve the problem
Install PkgConfig using the package manager
sudo apt-get update
sudo apt-get install pkg-config
PkgConfig tells the compiler where to find dependent libraries. Installing it with apt-get usually resolves the issue.

If GSSAPI is missing, Install the GSSAPI development package
sudo apt-get update
sudo apt-get install libkrb5-dev
If the issue persists, ensure that the GSSAPI libraries and include files are in standard locations. You can check their locations using
dpkg -L libgssapi-dev
Make sure that the paths are included in the compiler and linker search paths

If OpenSSL is missing, Install the OpenSSL development package
sudo apt-get update
sudo apt-get install libssl-dev
Installing libssl-dev provides the required OpenSSL libraries and headers.
You may also need to set the OpenSSL root directory path as a CMake variable. For example
cmake -DOPENSSL_ROOT_DIR=/usr/lib/ssl ..
Ensure to include any other details about the error messages in the documentation along with these troubleshooting steps. Let me know if you need any clarification or have additional questions!
@naty55 #6640

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

4 participants