Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7640363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:39:08+00:00 2026-05-31T08:39:08+00:00

//to-long-didnt-read -> missing lgssapi_krb5 library and can’t seem to find it i am having

  • 0
//to-long-didnt-read -> missing lgssapi_krb5 library and can't seem to find it

i am having trouble statically linking libcurl using one of they’re test applications.

ive read forums and someone said issue the “curl-config –libs” command and include all those libraries, but the command only returns

~/Desktop# curl-config --libs
-lcurl

while theirs returns

[root@zabbix ~]# curl-config --libs
-L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz 

i’ve also read this post

Static linking libcurl using c

and my output is

~/Desktop# ldd /usr/lib/libcurl.so
        linux-gate.so.1 =>  (0xb78be000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0xb7837000)
        liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb782a000)
        libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0xb77e2000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb77d9000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb77aa000)
        libz.so.1 => /lib/libz.so.1 (0xb7795000)
        libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb76fa000)
        libgcrypt.so.11 => /lib/libgcrypt.so.11 (0xb7686000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb752c000)
        libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7518000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7500000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb74e7000)
        /lib/ld-linux.so.2 (0xb78bf000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7436000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb7411000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0xb740d000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb7405000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7401000)
        libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb73fd000)
        libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb73eb000)
        libgpg-error.so.0 => /lib/libgpg-error.so.0 (0xb73e6000)

and when i try to compile using

~/Desktop# gcc -static test.c -o down -lcurl -lidn -llber -lldap -lrt -lgssapi_krb5 -lgssapi_krb5 -lz -lgnutls -lgcrypt

i get

/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status

i’ve tried searching around for this library, but i can’t seem to find it through google searches. i’ve also tried to apt-get cache search it but it returned no results. i am running Ubuntu and any help is highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:39:10+00:00Added an answer on May 31, 2026 at 8:39 am

    found a work around that works.

    $ wget http://curl.haxx.se/download/curl-7.24.0.tar.lzma
    $ tar xf curl-7.24.0.tar.lzma
    $ cd curl-7.24.0
    $ ./configure --disable-shared --enable-static --prefix=/tmp/curl --disable-ldap --disable-sspi
    $ make && make install
    $ cat << EOF > a.c
    #include <curl/curl.h>
    int main() {
    printf("%s\n", curl_version());
    return 0;
    }
    EOF
    $ gcc a.c -static $(/tmp/curl/bin/curl-config --static-libs --cflags) -ldl
    $ file a.out
    a.out: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.15, not stripped
    $ ./a.out
    libcurl/7.24.0 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read a long page about XHProfLive, but I didn't manage to find where
Since I got TLDR (too long didn't read) comments, I stripped 90% of this
After doing a long search on stackoverflow i didn't find any one talked about
The too long; didn't read version: Is there any way to disable the automatic
Long time back in past I had read somewhere that if we want to
I tried to read the related questions and didn't find any new tool. Here
I've spent a long time working on layout issues and screen sizes. I've read
I read all other SQLiteException no such table messages but didn't find an answer
It's gonna be a long read so Thanks for being patient :). I have
Having just read the first four chapters of Refactoring: Improving the Design of Existing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.