Unable to install GCC on Solaris 10

Posted on 2009-04-23
Last Modified: 2013-12-21
I was trying to install the GNU C compiler onto my server running on Solaris 10.

When i tried to execute this command:
/usr/sbin/pkgchk -d gcc* FSFgcc

I get the following error
pkgchk: ERROR: unable to complete package transfer
    - no packages were selected from </var/tmp/baaI0aqfg>

Here were the steps i took to install GCC:
         a) Confirm & unzip it:
            unix%  file /tmp/download/gcc*
                   This should report something like:
                        gzip compressed data - deflate method,
                        original file name"
            unix%  gzip -d gcc*
                   This will create the ASCII package file "gcc-2_8_1-local".
            unix%  head /tmp/download/gcc*
                   This should report something like:
                        # PaCkAgE DaTaStReAm
                        SMCgcc 1 117495
                        # end of header
                        VENDOR=Free Software Foundation
         b) Install gcc into /usr/local/bin:
            unix%  rlogin localhost -l root (optional if you're already root)
            unix#  cd /tmp/download
            unix#  /usr/sbin/pkgadd -d gcc*
                   Assent to all questions; when done, it should say:
                   "Installation of <GNUgcc> was successful."
            You'd then need to run:
                         unix#  /usr/sbin/pkgchk -d gcc* FSFgcc
         c) Test the installation:
            unix#  /usr/sbin/pkgchk -d gcc* GNUgcc

Can anyone advice me on this?
Thanks in advance :)
Question by:edisonffs
    1 Comment
    LVL 22

    Accepted Solution

    Well, the problem here is that you installed package SMCgcc, not FSFgcc, so when you do the package check, there
    is no FSFgcc package to check.

    It certainly asked you if you wanted to install package SMCgcc during the pkgadd, but almost everybody just
    says yes without even reading the question, since if you didn't want to install the package, you wouldn't have
    run the command.

    I have a question though. Why didn't you just use the gcc that comes bundled with Solaris 10?

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    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…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now