?
Solved

Unable to install GCC on Solaris 10

Posted on 2009-04-23
1
Medium Priority
?
1,973 Views
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:
                       "gcc-2.95-sol25-sparc-local.gz:
                        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
                        NAME=gcc
                        ARCH=sparc
                        VERSION=2.95
                        CATEGORY=application
                        VENDOR=Free Software Foundation
                        EMAIL=steve@smc.vnet.net
                        etc.
         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 :)
0
Comment
Question by:edisonffs
1 Comment
 
LVL 22

Accepted Solution

by:
Brian Utterback earned 1500 total points
ID: 24213350
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?
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month8 days, 1 hour left to enroll

616 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