Computing.Net > Forums > Solaris > C compile problem with gcc

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C compile problem with gcc

Reply to Message Icon

Name: Chittaranjan
Date: November 3, 2005 at 03:26:39 Pacific
OS: Solaris
CPU/Ram: 260/256
Comment:

I had installed gcc-3.4.2-sol9-sparc-local.gz
I did gunzip and pkgadd
and it got installed in /usr/local/bin. And then i set the PATH.
when i tried to compile, it says:
$ gcc myprog.c
ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
Killed

WHen i type $ which gcc
it gives /usr/local/bin

How do i get rid of this error?



Sponsored Link
Ads by Google

Response Number 1
Name: sboffin
Date: November 4, 2005 at 12:50:06 Pacific
Reply:

Look at what you have in your env variable LD_LIBRARY_PATH and set the proper path for libiconv.so

Try putting
LD_LIBRARY_PATH=/usr/openwin/lib:/usr/local/lib

HOPE it helps


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: C compile problem with gcc

C++ compiler problem www.computing.net/answers/solaris/c-compiler-problem/4050.html

Problem with gcc -pg www.computing.net/answers/solaris/problem-with-gcc-pg/3098.html

no C compiler on Solaris 10, GCC? www.computing.net/answers/solaris/no-c-compiler-on-solaris-10-gcc/4688.html