I retreived gcc-3.4.6.tar.gz and gunzip and untarred it. I completed the following commands:
cd gcc-3.4.6
mkdir objdir
cd objdir
../configure
Here is what I received:
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking build system type... sparc-sun-solaris2.8
checking for a BSD compatible install... ./install-sh -c
/usr/ucb/cc: language optional software package not installed
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
I tried the following command from the gcc.gnu.org installation page:
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking build system type... sparc-sun-solaris2.8
checking for a BSD compatible install... ../install-sh -c
../configure: cc: not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
I received the same results...What am I doing incorrectly? How do I set the environment variable CC to a working compiler?
Just to clarify, I can install all packages that have .tar.gz with pkgadd. I was under the impression that in order to install packages with pkgadd, the term "pkgadd" must appear in the bundled software name. ex: "software.pkgadd" The package I retrieved was from sunfreeware. I checked again and there isn't a package with pkgadd in the name.
I also installed openssl-0.9.8d-sol8-sparc-local. I installed all of those to get pkg-get and wget installed and running. It is my understanding that pkg-get downloads and compiles everything for you, but I am very new to all of this...I could be wrong. I googled your problem and found this website: http://www.openldap.org/lists/openld...dex.html#00426
Look at the "RE: Newbie - Simple? installation problem"
hi,
can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also
can we install sun cc compiler in AIX environment and vice versa.
and more ..is linux support cc compiler
regards
Ajay (3 Replies)
To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first?
The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's...
Eventhough i... (12 Replies)
Hi,
we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier).
As a part of this i need to change the CFLAGS.
The xl c/c++ complier CFLAGS is
CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \
-qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
I'm new to C but eager to get started. I purchasewd beginning C by Ivor Horton and realise that I need a C compiler. I looking for the most appropriate and economical way to obtain this, any suggestions would be greatly appreciated. (5 Replies)
i'm using linux to compile my c program right now. are there any free c compiler with all the standard header file, such as <stdio.h>, <unistd.h>..., i can download and use?
can Microsoft Visual C++ compile C code?
thanks. (1 Reply)
I have just installed C compiler, the installation
was successful but when I try to excute a gcc file I received the error message
"types.c: In function `main':
> types.c:4: warning: return type of `main' is not `int'
> ld: fatal: file values-Xa.o: open failed: No such file or directory
>... (5 Replies)