libnetpbm library link seems missing

Solution Verified - Updated -

Issue

While compiling a program using gcc with 32 bits mode on a Red Hat Enterprise Linux 4.8, it throws an error. It seems that there is a missing link in /usr/lib/:

/usr/lib/libnetpbm.so; libnetpbm.so.10

E.g.

# gcc -m32 -lnetpbm -o test example.c/usr/bin/ld: skipping incompatible /usr/lib64/libnetpbm.so when searching for -lnetpbm  
/usr/bin/ld: skipping incompatible /usr/lib64/libnetpbm.a when searching for -lnetpbm  
/usr/bin/ld: cannot find -lnetpbm  
collect2: ld returned 1 exit statusAnd without 32 bits mode compilating process works fine.

# gcc -lnetpbm -o test example.c

Environment

  • Red Hat Enterprise Linux 4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.