How to install C/C++ compiler in Solaris 10 (ie gcc)

HI all,
I have just installed Solaris 10 on my x86 machine. I thought that I installed the C/C++ compilers but when I went to check it turns out that I don't. When I type which gcc or which cc I get gcc not found.
Am I missing something?
If I need to instal gcc/c how do I do it. I am new to Solaris 10, I don't have rpm installed either apparently. I have found the pkgadd utility? but I don't know the first thing about how to use it. I have picked up a Solaris 9 book from my university library but I just thought that this might be a tad faster.
Hope you can help.

Correct, the Companion CD installs into /opt/sfwI can confirm this.
Can someone from Sun check this?I'm not from Sun, but...
I just installed the companion cd, and it installs in
/usr/sfw ... not /opt... this cannot be correct. If you install the full Solaris 10
product (the released version), then you do have
/usr/sfw/bin/gcc, /usr/sfw/bin/gas, /usr/sfw/bin/gmake, ...
If you install the Solaris 10 "Software companion CD" on top
of a full Solaris 10 install, you get more free software installed
under /opt/sfw, including another gcc3 in /opt/sfw/bin/gcc, a
gcc2 in /opt/sfw/gcc-2/bin/gcc, ...
The only software in /opt is:
SUNWits SUNWmlib SUNWspro netbeans
There is no /opt/sfw/bin directory.Then you didn't install the Solaris 10 "Software Comanion CD" !
Perhaps I installed the freeware versions?
http://sunfreeware.com/index.html
sunfreeware.com != "Solaris 10 Software companion CD".
When I downloaded the Solaris 10 DVD image, the software
companion CD was an extra optional CD image download
item on Sun's download center web page.

Similar Messages

  • How to install oracle 8i on sun solaris OS.

    Dear all,
    how to install oracle 8i on sun solaris OS.
    please guide in detail.
    Thanks
    Muhammad Nadeem

    OTN has much to offer including installation guides:
    http://www.oracle.com/technology/documentation/oracle8i.html
    Werner

  • How to install a network print on solaris 10

    How to install a network print on solaris 10?
    Thank You!

    Thank you Zettabyte!!
    Folks, network printers should NOT BE configured like this:
    lpadmin -p somequeue -s someprinter
    that creates a remote style queue and puts all the I/O and processing capability on the basic LPD listener present on network printer interfaces. This will cause problems down the road, not to mention that you cannot control access, get any logging, filter content, or control banner pages.
    Network printers should use any software (or PPD file) supplied by the vendor over the basic lpadmin/netstandard config.
    You can install CUPS, but Oracle won't support it until it's part of the OS (S11, apparently).
    The "System Administration Guide: Solaris Printing" is highly recommended for those administering printers on Solaris.

  • How to install printer and modem in solaris

    Please send me detailed installation information about how to install a serial or aparallel printer on solaris 7 and 8 and also how to install the modem on solaris 7 and 8.pls send me some docs,informations etc.

    Solaris 8 includes an "answerbook" CDROM that explains this
    in great detail. Look in the <tt>Solaris 8 System Administrator Collection</tt> �
    <tt>System Administration Guide, Volume 2</tt>.
    You can also read the answerbook documentation online on
    http://docs.sun.com.

  • How to install a network card on Solaris 10

    Hi to all,
    I have installed for the first time Solaris 10 on i386 system.
    All went fine. Although Solaris did not found the PCI network card, is this normal?
    How can I install the (Realtek) network card;
    Thank you.
    Costas.
    Edited by: tritsako on Feb 9, 2009 11:33 AM

    Thank you Zettabyte!!
    Folks, network printers should NOT BE configured like this:
    lpadmin -p somequeue -s someprinter
    that creates a remote style queue and puts all the I/O and processing capability on the basic LPD listener present on network printer interfaces. This will cause problems down the road, not to mention that you cannot control access, get any logging, filter content, or control banner pages.
    Network printers should use any software (or PPD file) supplied by the vendor over the basic lpadmin/netstandard config.
    You can install CUPS, but Oracle won't support it until it's part of the OS (S11, apparently).
    The "System Administration Guide: Solaris Printing" is highly recommended for those administering printers on Solaris.

  • How to install the video driver on solaris?

    I'm trying to install my video card on solaris but i don't know how to start the aplication that configure this feature on CDE.....
    Thanks......

    Boot from Solaris partition and press "ESC" key to enter in to Device Configuration Assistant and add it your video device driver.
    Hope it helps.
    Senthilkumar
    Developer Technical Support
    Sun Microsystems, Inc.
    http://www.sun.com/developer/support

  • How to install nabto plugin for danfoss solar app

    I want to install a plugin for a App taken from the iTunes store "Danfoss Solar App".
    There is a download for a Safari plugin to connect the App via network to an electronic device.
    Called nabto plugin, but I am not able to install the plugin in Safari.
    Does anybody know how to install the plugin from nabto in Safari?

    You need to contact the Danfoss Solar App developer for assistance here.

  • How would I go about compiling my own multilib GCC?

    Hello, as the topic says, how would I compile my own multilib GCC? I realize there is one on the AUR, but it is version 4.4.0, which has issues with compiling FFMpeg and MPlayer(both of which I compile daily), and the fact that the pkgbuild has to be manually updated in a few areas to work in the first place. I'm thinking about updating the PKGBUILD myself, actually(well creating a parallel build in any case, because the author hasn't actually orphaned it, but he seems to have disappeared).
    I've found a few documents on the subject but they are distro specific, or use scripts. I don't want to be a script kiddie, I want to know what the "base" configure parameters are for setting one up. I can figure out the rest.
    Slackware scripts link here.
    -What ./configure parameters create a multi-lib system? What specifies the multilib compile to be 32-bit and 64-bit?(I read that sometimes people use multi-lib for other features so I want to make sure it's 32-bit and 64-bit, not something else)
    -How would I make this build compatible with the /opt/lib32 system that Arch users like to use?
    -Do I only need to compile binutils, glibc, and gcc? And lastly, does this replace the "regular" gcc on the system?(aka if I created a PKGBUILD for this, would gcc still be named gcc or would it be renamed gcc-multilib and have it's own directories for libs)
    Last edited by MP2E (2009-10-01 01:03:40)

    I'd start by going here:
    http://aur.archlinux.org/packages.php?ID=28545

  • How to install the C Compiler (cc)

    I just finished installing the Solaris 8 on Sparc system. But the C Compiler did not get installed when I give the command cc I get:
    # cc
    /usr/ucb/cc: language optional software package not installed
    Can someone URGENTLY help me out? I have all the Solaris 8 cds sent by Sun. How I do I install this "language optional software package" ?
    Thanks in advance.
    Chandra

    Ok, all the language tools you need are on the Companion CD. If you haven't already loaded it, then just stick it in and it should autoload.
    If it doesn't, then see if it mounted under /cdrom/cdrom0 and run the installer by hand.
    Worst case, you have to load all the packages by hand (somewhere on the CD) using 'pkgadd -d /cdrom/cdrom0/<path_to_packages>'
    This will load everything under '/opt/sfw'. So just look and see if you already have '/opt/sfw/bin/gcc'.
    Do: '/opt/sfw/bin/gcc --version' and you should get 2.95.2
    The Sun 'cc' compiler (in /usr/ccs/bin) is not a free compiler. That is why you get the Optional Language error, because you don't have the "SUNWpro" package loaded that installs the fullblown Sun ANSI C compiler.
    Gcc should be all that you need. But bear in mind that (at least on SPARCs) the Sun compiler will create far faster code!
    -- S

  • How to install oracle connection manager on solaris 10

    I have installed oracle application server 10.1.2 on solaris 10. How do i install oracle connection manager utility.
    My end goal is to use applets/jdbc.
    Thanks

    Thank you Zettabyte!!
    Folks, network printers should NOT BE configured like this:
    lpadmin -p somequeue -s someprinter
    that creates a remote style queue and puts all the I/O and processing capability on the basic LPD listener present on network printer interfaces. This will cause problems down the road, not to mention that you cannot control access, get any logging, filter content, or control banner pages.
    Network printers should use any software (or PPD file) supplied by the vendor over the basic lpadmin/netstandard config.
    You can install CUPS, but Oracle won't support it until it's part of the OS (S11, apparently).
    The "System Administration Guide: Solaris Printing" is highly recommended for those administering printers on Solaris.

  • How to install MS Windows in a Solaris 10 Zone (Container)?

    Hi:
    I am a Windows expert because of my work but I am trying to get away from it at home while still being able to run Windows Applications in their native environment. So I read somewhere that is possible to install and run Windows in a Solaris 10 Zone (Container). Since I am not that experienced with Solaris a How-to guide to perform this task is greatly appreciated.
    Regards

    This is impossible. containers are only paravirtualization which is essentially
    a solaris kernel pretending to be two machines.
    You need a true virtualisation solution like vmware.
    I don't vmware supports using solaris as a server. Only a client.

  • How to install directory server/client on Solaris 9 for dummys

    Hi,
    after reading hunderts of pages, after asking questions in forums without getting the right answers, i was able to install the directory server in our company.
    Here is the summary i made for myself. Perhaps it helps others to avoid the same problems.
    Set up a Directory Server (sun one ds 5.1)
    Present situation:
    -Nisplus is installed
    -Solaris OS 9 sparc 64bit is installed
    -DS5 Software is normally already installed in Solaris 9. Check off with 'pkginfo | grep IPLT*'
    -Otherwise install from Solaris OS 9 Disc1 with 'pkgadd -d IPLTxxxx .'
    -Software setup with '/usr/sbin/directoryserver setup'
         Install admin- and directory server.
         For Directory Server use port 389 (necessary for later use of SSL)
         For Admin Server use any empty port > 1024
         Run directoryserver as root (necessary for using port 389 and for -starting servers from console)
         Use default Directory Manager DN cn=Directory manager
         Use your domain as DIT (default information tree) example: dc=example, dc=com
         As second DIT, setup installs o=NetscapeRoot. Don't change this DIT at all!!!!!
    The server stores all the default schemas there which are absolutely important for the directoy
    server. Don't change anything there !
    -Configure software with 'idsconfig'
         Preferred - and default server xxx.xxx.xxx.xxx (ip_adds of your directory server)
         Use default search scope one
         Use credential's Proxy
         Use authentication Simple (you may change this later if needed)
         All the rest should remain on default settings
         You will be asked for a proxy passwort
    -Start the directoryserver console with '/usr/sbin/directoryserver startconsole'
    -If it's not yet running, start the directory server from console or with command 'directoryserver -s instance_name start'
    -If it's not yet running, start the admin server from console or with command 'directoyserver start-admin'
    -On directoryserver's gui at configuraton/password set password encryption to 'unix crypt algorithm (CRYPT)'
    Import Data
    -Get Data from Nisplus with
         'niscat passwd.org_dir passwd.ldap'
         'niscat hosts.org_dir hosts.ldap'
         'niscat groups.org_dir groups.ldap'
         etc
    -adjust the files. (try it out with one entry of a file only. You may delete this entry with the gui very easy if it's not successfull.
    -hosts.ldap must look like
    xxx.xxx.xxx.xxx machine1
    xxx.xxx.xxx.xxx machine2
    xxx.xxx.xxx.xxx machine3
         First value is the ip-address, second one is the hostname.
         If you have more than one hostname per machine, use a second line (don't write 2 names behind the ip-address like you did in nisplus!!!)
    Change content of files into ldif format
    -perl migrate_hosts.pl hosts.ldap hosts.ldif
    -perl migrate passwd.pl passwd.ldap passwd.ldif
    -You may download the above perl-Files from http://www.padl.com
    Change the converted passwd.ldif File as follows:
    -before change:
    dn: uid=mario,ou=People,dc=krinfo,dc=ch
    uid: mario
    cn: mario
    objectClass: account
    objectClass: posixAccount
    objectClass: top
    userPassword: {crypt}6O9m3uK./T/rM
    loginShell: /bin/bash
    uidNumber: 1020
    gidNumber: 14
    homeDirectory: /home/mario
    -after change:
    dn: uid=mario,ou=People,dc=krinfo,dc=ch
    uid: mario
    cn: mario
    objectClass: account
    objectClass: posixAccount
    objectClass: shadowAccount <--- this line must be inserted
    objectClass: top
    userPassword: {crypt}6O9m3uK./T/rM
    loginShell: /bin/bash
    uidNumber: 1020
    gidNumber: 14
    homeDirectory: /home/mario
    Insert the line for every entry in the passwd.ldif file
    You may now import all these xxxx.ldif files into the directory server with
    -ldapadd -h name_of_directoryserver -D "cn=Directory Manager" -w password -f XXXXX.ldif
    You may use this commands later to import further data.
    -Initialise a client
    'ldapclient -a proxyDN=cn=proxyagent,ou=profile,dc=example,dc=com init xxx.xxx.xxx.xxx'
    The xxx.xxx.xxx.xxx at the end is the ip address of the directory server
    -This will make a client with data taken from the default profile from the directory server. This profile has been produced with the earlier command idsconfig and can be changed if needed.
    -The System will ask you for the proxy password (given the first time in idsconfig dialog)
    -You may now look at the produces files
    in '/var/ldap/ldap_client_file' for the client settings
    in '/var/ldap/ldap_client_cred' for the proxy settings
    'ldapclient list' shows the settings of the client
    With 'ldaplist -h' you may see all the existing entries with their objects.
    Activate the client
    -If it's not yet running, start '/usr/lib/ldap/ldap_cachemgr'
    -All nisplus daemons/programs have been stopped by ldapclient command. If not, stop them manually.
    -/etc/nsswitch.conf should have been copied from /etc/nsswitch.ldap from ldapclient too.
    -If not, do it manually.
    example
    passwd: files ldap
    group: files ldap
    hosts ldap dns files
    etc
    I recommend to change the file '/etc/nsswitch.ldap' because the system oftens copies nsswitch.ldap to nsswitch.conf and if nsswitch.ldap is adapted, you must now change it again and again.
    you may now check whether ldap is working fine with the following requests:
    getent passwd username
    getent hosts hostname
    getent groups
    getent network
    These commands should give you the requested answer.
    Be sure to clean:
    /etc/hosts      inside is only your workstation and the directory server
    /etc/passwd     only default and local entries
    /etc/groups only default and local entries
    etc
    try a telnet to your own machine to check, whether password and automount of your home_dirctory works fine.
    I failed here. All was working fine, but the password exchange did not because of credential/authentication problems.
    Best regards and good luck
    Mario

    Directory Server 5.1 does not support Kerberos authentication.
    Beside this there are some extensions in MS kerberos authentication that makes it almost impossible to have a MS client authenticate with something else than AD.
    Regards,
    Ludovic.

  • How to install Apache Http server on Solaris sparc-32 bit systems

    Hi Friends,
    I installed apache in windows platform, where we have direct .exe file to install apache on windows.
    I heard, in solaris different process of installation is that right...?
    will we get direct .bin executable file for apache like wls923_solaris32.bin or need to we follow diff procedure for apache installation in solaris.
    Please help me
    Thanks
    Deep
    Edited by: user10249953 on Feb 22, 2009 8:28 PM

    Hi Friends,
    I installed apache in windows platform, where we have direct .exe file to install apache on windows.
    I heard, in solaris different process of installation is that right...?
    will we get direct .bin executable file for apache like wls923_solaris32.bin or need to we follow diff procedure for apache installation in solaris.
    Please help me
    Thanks
    Deep
    Edited by: user10249953 on Feb 22, 2009 8:28 PM

  • How to install webgate on tomcat with solaris 10 AMD 64bits?

    Hi Experts
    I need to install a webgate on the webserver tomcat, but i found that installation is not possible because thes is not webgate for tomcat, many people recommended install a reverse proxy with Apache or OHS but i can't find a webgate installer on Solaris 10 AMD 64bits.
    Exists that version of webgate? or exist a workaround??
    what is your suggestion??

    Choose the Webserver and the WebGate from the OAM support matix.
    If OAM does not have WebGate for the platform where you have tomcat installed, if it is an option, you can install a webserver and WebGate on any OAM supported OS and configure Reverse Proxy. WebGate does not need to be on the same server/machine or on same platform.

  • How to install a power monitor in Solaris 10

    Hello everyone,
    I have installed Solaris 10 in my laptop Sony VGN-S350F. Now, I have realized that I can't check what my battery's status is. I am using java desktop System as my default graphic environment.
    I have worked several times with linux and I know Gnome comes with an special applet to monitor the battery's level.
    Could anybody tell me where I can find a similar function in Solaris 10?
    Thank You

    Thank you Zettabyte!!
    Folks, network printers should NOT BE configured like this:
    lpadmin -p somequeue -s someprinter
    that creates a remote style queue and puts all the I/O and processing capability on the basic LPD listener present on network printer interfaces. This will cause problems down the road, not to mention that you cannot control access, get any logging, filter content, or control banner pages.
    Network printers should use any software (or PPD file) supplied by the vendor over the basic lpadmin/netstandard config.
    You can install CUPS, but Oracle won't support it until it's part of the OS (S11, apparently).
    The "System Administration Guide: Solaris Printing" is highly recommended for those administering printers on Solaris.

Maybe you are looking for