Solved

GCC 3.4.1 installation procedure

Posted on 2004-08-18
3
637 Views
Last Modified: 2013-12-27
Does anybody have a good reference site/documents for installing gcc on Solaris8 machine. I prefer installation guide with examples.

The installation guide that comes with the gcc.tar file confused me!
I downloaded the gcc from http://gcc.gnu.org

Pls help.
0
Comment
Question by:eijatt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 100 total points
ID: 11837303
Hi eijatt,

     You can download gcc-3.4.1 binary package from (default install in /usr/local)
     http://sunfreeware.com/

     eg, If you are runing Solaris 8 (Sparc),
       1. download gcc-3.4.1-sol8-sparc-local.gz
       2. unzip the file, use:
           gunzip gcc-3.4.1-sol8-sparc-local.gz
       3. install gcc (you need to login as root, or su as root to do the job), type
           in:
           cd /dir-of-download-file
           pkgadd -d <name-of-package>
           eg:
           pkgadd -d gcc-3.4.1-sol8-sparc-local
           
     To use gcc, you need to set PATH, LD_LIBRARY_PATH, and  MANPATH
     eg:
           PATH=$PATH:/usr/local/bin     # installed utilities
           LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
           MANPATH=$MANPATH:/usr/local/man
           export PATH  LD_LIBRARY_PATH  MANPATH

      It is a good idea to install gdb, libgcc, glib,  libiconv as well (download from the
same site ) the procedures are the same as the gcc installation.

0
 
LVL 34

Expert Comment

by:PsiCop
ID: 11837309
I generally get the package from Sunfreeware.com and install using the package. Unless you purchased the Sun compiler with your Solaris license, there's no compiler on the system with which to compile the gcc source code.

The packages on sunfreeware.com are generally configured to install in /usr/local/bin. I hate that. I put my stuff in /opt. You can change this tendency fairly easily; see --> http://www.brandonhutchinson.com/Relocating_Solaris_packages.html

Or you can use pkgtrans to unpack the package and edit the pkginfo file to change the BASEDIR value to your liking. When you try to install using pkgadd, it'll whine that the pkginfo file length and chksum are wrong, but will helpfully give you the values it wants. Edit the pkgmap file (the length and checksum values are down at the end) to have the values that pkgadd expects, then re-run pkgadd.
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 11837311
Damn, yuzh beat me to it while I was typing.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question