I am working on Solaris 8. I have a few questions:
1. How do I determine if I have the CC compiler? I know it isn't in my $PATH, so how do I find it?
2. How do you install wget? I have read the INSTALL file, but I am not familar with the switches, i.e. ./configure --? . The file dosen't say specifically how to install. It is very fague for me as a new user of wget and GCC/CC compilers.
Try typing "gcc" at the command prompt. 'cc' is a purchased Sun compiler that most folks don't have. If that doesn't work, try:
That might tell you where it was installed if it's a package installation. Otherwise you can try
Note that you're root on that one.
If you want to install gcc, head out to http://www.sunfreeware.com and download it. There should be instructions on the site on how to install packages. If you're looking for gcc just so you can install wget, just retrieve wget from sunfreeware instead and install that.
On Solaris, (usually) if you haven't explicitly installed a C compiler, you won't be having one. Run 'pkginfo | grep -i compiler' or some such and check. If you don't get anything, you probably don't have it installed.
If you want to install gcc, I suggest that you go to sunfreeware.com and download the package directly. Don't fiddle around with the sources. Once you get that, just pkgadd and voila! You have gcc.
Regarding wget, just download the sources, extract from the tar. Then go to the directory where you have extracted the source and run "./configure". If you want to specify a specific path to install to, you can specify "./configure --prefix=your_install_path". There are a several other ways to configure, just check the README file. After the configuration is done, run "make" and then "make install". After this, with the default options, you will have wget in the /usr/local/bin directory.
Here is the output I received from grep gcc /var/sadm/install/contents
/usr/local/lib/libgcc_s.so=libgcc_s.so.1 s none SMClibgcc
/usr/local/lib/libgcc_s.so.1 f none 0644 bin bin 165280 24277 1089505610 SMClibgcc
/usr/local/lib/libstdc++.a f none 0644 bin bin 7294388 50147 1089505612 SMClibgcc
/usr/local/lib/libstdc++.la f none 0755 bin bin 1159 31501 1089505612 SMClibgcc
/usr/local/lib/libstdc++.so=libstdc++.so.6.0.1 s none SMClibgcc
/usr/local/lib/libstdc++.so.6=libstdc++.so.6.0.1 s none SMClibgcc
/usr/local/lib/libstdc++.so.6.0.1 f none 0755 bin bin 5348004 43669 1089505614 SMClibgcc
/usr/local/lib/sparcv9 d none 0755 bin bin SMClibgcc
/usr/local/lib/sparcv9/libgcc_s.so.1 f none 0644 bin bin 199936 65055 1089505615 SMClibgcc
/usr/local/lib/sparcv9/libgcc_s_sparcv9.so=libgcc_s.so.1 s none SMClibgcc
/usr/local/lib/sparcv9/libstdc++.a f none 0644 bin bin 10088392 40581 1089505619 SMClibgcc
/usr/local/lib/sparcv9/libstdc++.la f none 0755 bin bin 1368 50022 1089505619 SMClibgcc
/usr/local/lib/sparcv9/libstdc++.so=libstdc++.so.6.0.1 s none SMClibgcc
/usr/local/lib/sparcv9/libstdc++.so.6=libstdc++.so.6.0.1 s none SMClibgcc
/usr/local/lib/sparcv9/libstdc++.so.6.0.1 f none 0755 bin bin 6126992 30880 1089505621 SMClibgcc
Based on this information, I am assuming it is installed.
New question? Is there a switch to turn it on, because I am still getting gcc not found when trying to run ./configure?
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)