Operating System - HP-UX
1830044 Members
6877 Online
109998 Solutions
New Discussion

Can't find library: "iconv"

 
Henry_52
Advisor

Can't find library: "iconv"

Hello,

When I executed "make" command, I saw below error messages. Please let me know if you know the solution.

Best Regards,

Henry

/usr/ccs/bin/ld: Can't find library: "iconv"


*** checking if a hello world program can be built ...
*** test program is
#include

int main(int argc, char *argv[])
{
puts("hello world");
return 0;
}
*** results are
/opt/gcc/bin/gcc -O -DMAILRC='"/um01/users/yoonhk/nail-11.17/nail.rc"'
-DMAILSPOOL='"/var/mail"' -DSENDMAIL='"/usr/lib/sendmail"' \
-L/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/libgcc.a -lic
onv -lssl -L/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1 ___build28083.c `gr
ep '^[^#]' LIBS` -o ___build28083
/usr/ccs/bin/ld: Can't find library: "iconv"
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.
*** no
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Can't find library: "iconv"

SHLIB_PATH=/usr/ccs:$SHLIB_PATH
export SHLIB_PATH

make

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: Can't find library: "iconv"

Hi,

Looks like you do not have iconv library. You can get it from here. Also install gettext from the same website as it is also most commonly used.

http://hpux.cs.utah.edu/hppd/hpux/Development/Libraries/libiconv-1.9.2/

-Sri
You may be disappointed if you fail, but you are doomed if you don't try