I just installed gcc from the latest package at sunfreeware.com using pkgadd. I write a simple 'Hello World!' program to test it. I try to compile it and I get this error:
I set my LD_LIBRARY_PATH variable:
Get the same error. I check /usr/lib/ and libiconv.so.2 isn't there anyway. Is the package I found at sunfreeware.com the official package to install or is there a better one out there? I assume there would be a better package that comes with all the .so files I need to compile a simple file like this.
---------- Post updated at 11:42 AM ---------- Previous update was at 10:59 AM ----------
OK, I'm an idiot. gcc is already installed in /usr/sfw/bin/gcc and is fully functional. Admins can close this post.
Hello experts,
This issue has kept me busy all day long. It started off with openssl compilation which was giving linking error with following message:
/usr/local/bin/ld: target elf32-sparc not found
collect2: ld returned 1 exit status
I tried every step possible thing that I could think... (2 Replies)
I want to install gcc for Solaris 10 to an alternate location besides /usr/local/bin, so I can't use the pre-compiled package from sunfreeware.com.
So I assume I need to compile gcc for myself and specify --prefix.
How can I accomplish this? Am I pretty much out of luck trying to compile... (3 Replies)
I have a very simple c++ program like:
> cat easy_gcc.cc
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
int debugging = 1;
int main()
{
printf ("This is a... (2 Replies)
Folks -
This may sound like a newbee question - and it is. But a project that I'm managing is under a time crunch and I need a quick answer.
IS it possible to install gcc 2.8.1 on a Solaris 10 Sun box? We have some old libraries that need that version of the compiler in order to work... (2 Replies)
We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is
sailfish@st-kvar02 -> uname -a
SunOS st-kvar02 5.10... (7 Replies)
Hi,
I tried to install apache web server on solaris 8 and was prompted that i do not have any valid compiler.
I tried to install GCC on solaris 8 using the command
#pkgadd -d gcc-2.95.2-sol17-sparc-local (hit enter). May I know how I should set the environment variables to make it work... (1 Reply)
Hi, I am having trouble installing gcc 3.4.2-sol8-sparc-local in my sparc machine running solaris 8. It looks like I do not have enough memory in /var , but I have about 3GB free memory in /export/home. I have read some suggestion from previous threads that said it is possible to link /var and... (8 Replies)
I packed gcc to /usr/local/ with pkgadd
and when I wan't to compile a c code file it says
gcc: no file
how do I configure gcc on Solaris 8
plz help (1 Reply)