Sun Studio 11 SUNWbash package

I am trying to install studio 11 and apparently a prereq is to have the SUNWbash pkg installed. I went to sunfreeware and installed the bash package but it does not seem to contain
SUNWbash. Does anyone know where this package can be found?
Thanks,
-Todd

This is installed by Solaris (assuming Solaris 10 here) which means it should be on the installation media for Solaris 10.
It may be that you don't have a comprehensive software cluster installed (i.e. a minimal or core installation of Solaris doesn't include things like SUNWbash)
cat /var/sadm/system/admin/CLUSTER
and see what it says
Also pkginfo -l|grep SUNWbash to make sure it is not in fact installed.
Just mount up the Solaris CD/DVD and pkgadd SUNWbash and you should be golden.

Similar Messages

  • Sun Studio 11 install report 0 bytes size of products.

    Hi , I'm trying to install Sun Studio into Solaris 8 , but thats report 0 bytes size to be installed and no more messages.
    root@saexpintr01# uname -a
    SunOS saexpintr01 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Fire-280R
    root@saexpintr01# java -version
    java version "1.4.2_12"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
    root@saexpintr01# pwd
    Select Locale localized data for the languages showing a checked box will be
    installed:
    [X] 1 English [en] [CURRENT LOCALE]
    [X] 2 Japanese [ja]
    [X] 3 Chinese [zh]
    To check a particular locale, enter its number, or 0 when you are finished
    [0] {"<" goes back, "!" exits}: 0
    Select the components you want to install by clicking the radio button in the
    Default Install column or Custom Install column. If you choose a Custom
    Install, you can select which subcomponents you want to install. To continue,
    click Next.
    No Install Default Install Custom Install Product
    0. [ ] [X] [ ] Solaris patches
    1. [ ] [X] [ ] Sun Studio Software
    2. [ ] [X] [ ] Documentation
    3. [ ] [X] [ ] Source Distribution
    4. [ ] [X] [ ] Sun Performance Library
    5. Done
    Enter the number that corresponds with the product you want to change.
    Select the number that corresponds with Done when you are finished. [5] {"<"
    goes back, "!" exits} 5
    Enter the directory name where you want to install the product.
    Studio Software [opt] {"<" goes back, "!" exits} /u01
    Checking disk space.
    The following items will be installed:
    Product: Solaris patches
    Location: /u01
    Size: 0 bytes
    Product: Sun Studio Software
    Location: /u01
    Size: 0 bytes
    Product: Documentation
    Location: /u01
    Size: 0 bytes
    Product: Source Distribution
    Location: /u01
    Size: 0 bytes
    Product: Sun Performance Library
    Location: /u01
    Size: 0 bytes
    Ready to Install
    1. Install Now
    2. Start Over
    3. Exit Installation
    What would you like to do [1] {"<" goes back, "!" exits}? 1
    Installing Solaris patches
    |-1%--------------25%-----------------50%-----------------75%--------------100%|
    Installing Sun Studio Software
    |-1%--------------25%-----------------50%-----------------75%--------------100%|
    Installing Documentation
    |-1%--------------25%-----------------50%-----------------75%--------------100%|
    Installing Source Distribution
    |-1%--------------25%-----------------50%-----------------75%--------------100%|
    Installing Sun Performance Library
    |-1%--------------25%-----------------50%-----------------75%--------------100%|
    Installation details:
    Product Result More Info
    1. Solaris patches Not Installed Available
    2. Sun Studio Software Not Installed Available
    3. Documentation Not Installed Available
    4. Source Distribution Not Installed Available
    5. Sun Performance Library Not Installed Available
    6. Done
    Enter the number corresponding to the desired selection for more
    information, or enter 6 to continue [6] {"!" exits}: 1
    /var/sadm/install/logs/Solaris_patches_install.B07191842 does not exist
    Failed:
    Log file: /var/sadm/install/logs/Solaris_patches_install.B07191842
    Product Result More Info
    1. Solaris patches Not Installed Available
    2. Sun Studio Software Not Installed Available
    3. Documentation Not Installed Available
    4. Source Distribution Not Installed Available
    5. Sun Performance Library Not Installed Available
    6. Done
    Enter the number corresponding to the desired selection for more
    information, or enter 6 to continue [6] {"!" exits}: 6

    Hmm... could you just check that you have downloaded the SPARC version of the product? I have seen zero bytes in each cluster when trying to install the "wrong" architecture. Also, there is a gotcha on Solaris 8 - you must have the SUNWbash package (which is on the companion CD for Solaris 8 I believe) otherwise your install will fail. This isn't the symptom of that problem, I'm just mentioning it ahead of time.
    --Terry.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Welcome to the Sun Studio General Discussion!

    Ask questions or seek answers to topics that do not fit other Sun Studio forums, such as installation, upgrading to recent Studio versions, IDE wizards, and documentation.
    In addition, visit the Sun Studio developer site for technical articles, code samples, knowledge base and more:
        http://developers.sun.com/sunstudio
    Finally, make sure you have the latest version of Sun Studio as well as appropriate patches:
        http://developers.sun.com/prodtech/cc/downloads/index.html

    Here is content of my .cshrc file:
    # @(#)cshrc 1.11 89/11/29 SMII'm sorry, it seems like I wasn't clear about what I meant.
    The command "sunstudio" is itself a shellscript. It isn't a binary executable. In Sun Studio 10 it is a bash script. It's first line is
    #!/bin/bash
    This means that when it is passed to the exec system call, the kernel searches for /bin/bash, and runs bash with its input connected to the script. If you don't have bash on your system, you will get the message you described (although there could be other reasons for getting that message).
    You need to check whether /bin/bash exists on your system, and if it doesn't, install the appropriate package from the Solaris companion software CD. I believe the package is SUNWbash.
    --Terry.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sun Studio 11 Installation Problem on Solaris 9

    Hi
    I am installing Sun Studio11 on Solaris 9 SPARC Platform using -nodisplay option. The command line output is showing as installation is success.
    But when I see the install log file I am seeing the following errors.
    Begin------------------------------------------------------------------------------------------
    Installing Package: SPROcpl
    Processing package instance <SPROcpl> from </mcc/app/ds/Compiler/CD1/kits/ide/packages>
    Sun Studio 11 C++ Compiler
    (sparc) 11.0,REV=2005.10.13
    Using </mcc/app/ds/sunstudio11> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    ## Verifying package dependencies.
    ## Verifying disk space requirements.
    Installing Sun Studio 11 C++ Compiler as <SPROcpl>
    ## Installing part 1 of 1.
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/inventory/v15n1/SPROcpl <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/CC <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/CCadmin <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/CClink <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/c++filt <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/ccfe <not present on Read Only file system>
    End ------------------------------------------------------------------------------------------
    The above errors are coming for almost all the packages / components.
    Also I am not seeing any files created in <installdir>/SUNWspro/prod/bin folder.
    Thanks in advance

    Give this a whizz:
    for a in `pkginfo | nawk '/SPRO/{print $2}'` ; do pkgchk $a ; doneDoes it report anything? If it doesn't, I wouldn't lose too much sleep over the warnings.
    Paul

  • Core dump using iostream with Sun Studio 8

    I'm running on Solaris 9 using C++ compiler Sun Studio 8, and encoutered a very strange problem.
    My application failed with a core and here is the stack.
    [1] t_splay(0x3774b470, 0x387a0ec0, 0x389aec60, 0x39e5ef1f, 0x3774b470, 0x1), at 0xfc347930
    [2] t_delete(0x387a0ec0, 0x80, 0x39be9748, 0x20, 0x383ccd20, 0x0), at 0xfc347698
    [3] mallocunlocked(0x80, 0x0, 0x21b08, 0xfc3bc000, 0x10, 0x20), at 0xfc346d40
    [4] malloc(0x80, 0xfbaa7400, 0x1, 0x759c40, 0x0, 0x0), at 0xfc346b74
    [5] operator new(0x80, 0x0, 0xd3a18, 0x759c74, 0x0, 0x8345fc), at 0x760c10
    [6] strstreambuf::overflow(0xf41f6e28, 0x29, 0xf41f6e28, 0x39fe0e88, 0x39fe0e88, 0x8345fc), at 0x75bb1c
    [7] streambuf::xsputn(0xf41f6e28, 0xfee00bc0, 0x1, 0x0, 0x81010100, 0x1), at 0x75ab94
    [8] unsafe_ostream::outstr(0xf41f6e78, 0xfee00bbf, 0x0, 0x0, 0xf41f6e7c, 0xfffffffe), at 0x757bac
    =>[9] unsafe_ostream::operator<<(this = 0xf41f6e78, _s = 0xfee00bbf ")"), line 1211 in "iostream.h"
    [10] ostream::operator<<(this = 0xf41f6e74, _s = 0xfee00bbf ")"), line 1350 in "iostream.h"
    [11] CorInterfaceEntity::ifState(this = 0x1bc3de78, newState = MISMATCH_OF_INSTALLED_AND_EXPECTED, needToSendEvent = false
    Can somebody help me giving a direction of investigation ?
    Is there perhaps known problem with iostream on Sun Studio 8 running on Solaris 9 ?
    Thanks for any tips.
    Yaakov Berkovitch
    [email protected]

    But sorry for my insistence, but do you think that
    purify or/and runtime are not able to detect any
    corruption of the heap ?They can detect some kinds of corruption, such as some uses of an invalid pointer.
    But a wild pointer that changes the value of data that is part of your program cannot be detected by RTC or Purify. Those programs can't know whether that change is intentional.
    >
    BTW, we are not using any volatile declaration, and weIf non-local data is shared among threads, it should be declared volatile. For example, suppose you have
    x = foo;
    ... // code not changing foo
    y = foo;
    If foo is not marked volatile, the compiler is allowed to assume its value hasn't changed, and assign to y the same value assigned to x. If foo was changed by another thread, y will not have the current value of foo. The "volatile" declaration says that the variable's value might change without any obvious reason, and the compiler should generate code to load a fresh value each time it is referenced.
    are using the rwtools library packaged with the
    compiler, and are not using the STD library.OK, you are not running into a std::string synchronization bug.
    >
    Also about the compiler option -xarch=v8, is probably
    not relevant for us because we are running Solaris 9.
    So the relevant compiler is probably -xarch=v9. Do you
    advise us using this option ?I think you misunderstand. The -xarch values refer to the kind of processor your program will run on.
    The -xarch=v8 option generates 32-bit code that will run on all SPARC chips, including the chips found in very old SPARCstations. This option is the default for compilers prior to Sun Studio 9 (which ships this week).
    The -xarch=v8plus option generates 32-bit code that runs only on UltraSPARC chips, found in Ultra workstations. These are the only kinds of workstations shipped by Sun since about 1996. Unless you need to support the ancient SPARCstations, we recommend compiling with -xarch=v8plus, to get smaller and faster code.
    The -xarch=v9 option generates 64-bit code that runs only on UltraSPARC chips, an only on Solaris 7 or later. Unless your program requires a very large address space, you generally don't want to generate 64-bit code. On SPARC, 64-bit code is larger and slower than 32-bit code. (Type "long" and all pointers are 64 bits instead of 32 bits.)
    >
    Also I want to return you two new questions:
    1) I read in another discussion,
    http://forum.sun.com/thread.jsp?forum=5&thread=18124&me
    sage=47854#47854
    that another memory manager can be more efficient in
    multi-threaded environment (libmtmalloc.so), and also
    an alternate threads library (/usr/lib/lwp) that
    reduced CPU usage. Do you advice us using this
    alternate library ?The libmtmalloc library usually has better performance in MT programs than the default version of malloc. It also can result in more memory fragmentation. In that case, the larger working set can sometimes have a large negative effect, more than offsetting the MT efficiency. You have to experiment to see whether it is appropriate for your particlular program. If you are running into heap corruption, the pattern of corruption will probably be different with libmtmalloc than with the default malloc. The differences might provide a clue to what is wrong.
    The alternative "T2" threads library was introduced in Solaris 8 as an option.
    In Solaris 9 it is the default, so you are already using it.
    >
    2) We are using the Rogue Wave library shiped with the
    compiler. Is it an up-to-date version ? Can we assume
    that is a good choice or it will be preferable to move
    to the STD library ?I assume you mean Rogue Wave Tools.h++. As explained in the compiler docs, this version of Tools is obsolete, and has not been supported for many years. We continue to provide it for customers who used it before the introduction of the C++ Standard Library in 1998, and who don't want to change their code. We do not recommend it for use in new code.

  • After installing Sun Studio 11, libfsu.a in Sun Forte  6 is removed.

    I have Sun compilers 5.0 and 6.2 on my Sun Solaris 8 Ultra Sparc machine. After installing Sun Studio 11, some library files (e.g., libfsu.a in Sun Forte 6) from the old compilers were removed. What is wrong with my installation?
    Note that I install the different versions of compilers in separate directories.

    After the 1st failed installation of Sun studio 11,
    did you making sure that Sun studio 11 is not exist
    on your system before re-install Sun studio 11? The
    rule is you can have different Sun studio releases
    on the same system, but you can not have the
    multiple copy of the same release on the same
    system, even though they are in a totally separate
    directory. If Sun Studio 11 exist after 1st fail
    installation, you need to un-install it first before
    you re-start 2nd installation attemp.
    Installation of Sun Studio 11 should not remove files
    from older releases, but we know the case it did mess
    up package of the older release before.
    -NgocNo, after 1st install failed due to insufficient disk space, I did not uninstall Studio 11. After I deleted some user files to free up disk space, I run the install again, specified the same directory for installation, and just select Sun Performance Libraries. The installation seems to finished successfully. Perhaps this is one scenario where old versions can get messed up.

  • Sun Studio 10 Linux, RHEL3 U4, install fails on openmotif21.

    Hello everyone,
    As a long-time user of Sun WorkShop... I mean Forte.. I mean Studio; it was with great anticipation that I downloader Sun Studio 10 for Linux.
    On one machine it failed to install and on another it installed properly.
    Here are the details:
    - Machine 1: RHEL3 U2 (x86/i686), small install: Installation of Studio 10 went fine.
    - Machine 2: RHEL3 U4 (x86/i686), complete install : Installation of Studio 10 failed. The following can be gathered from the logs under /var/opt/sun:
    [....snip....]
    Installing Sun Studio Software
    Log file: /var/opt/sun/install/logs/Sun_Studio_Software_install.A04060111
    Installed: /var/prod/com.sun.studio_10/uninstall_Sun_Studio_Software.class
    Uninstaller is at: /var/prod/com.sun.studio_10/uninstall_Sun_Studio_Software.class
    Standalone Tools: Building Software
    Installing RPM: sun-dmake-10.0-1
    [....snip....]
    System packages supporting Sun Studio Software
    Installing RPM: openmotif-2.1.31-2_IST
    error: Failed dependencies:
    openmotif < 2.2.2 conflicts with openmotif21-2.1.30-9.RHEL3.4
    Error: RPM openmotif-2.1.31-2_IST install failed}.
    Install complete. Package: openmotif-2.1.31-2_IST
    rpm: Skipping rpm remove of openmotif-2.1.31-2_IST, not installed.
    rpm: Skipping rpm remove of sun-svc-locale-zh-10.0-1, not installed.
    [....snip....]
    And everything is removed. Is this issue documented somewhere? Is there a workaround?
    Thanks for reading,
    Vincent

    Deselecting 'system supporting packages' from the Sun Studio 10 installation list made the trick and Studio finished installing.
    However, I have a few concerns:
    1) Since Studio will be using the system's openmotif, will it be supported? (I guess not).
    2) Since openmotif-2.1.31-2_IST.i386.rpm from the Studio 10 IDE kits lands under /usr/OpenMotif-2.1.31 and should not conflict with any kind of other/system openmotif, why didn't SUN just create a sun-openmotif-support package? This would prevent a naming conflict when trying to install on RHEL3 if RHEL's openmotif21 is already installed?
    3) It appears to work fine, even without SUN's provided openmotif.
    Cheers,
    Vincent

  • Sun Update Manager attempts to patch wrong arch of Sun Studio 12

    Hi,
    I'm having patching problems as mentioned here: http://forum.java.sun.com/thread.jspa?threadID=5198127&tstart=0
    However, I recently (last week) installed an x86_64 version of Sun Studio 12 on my sparc NFS server as documented here: http://docs.sun.com/app/docs/doc/820-0274/6nc1b7u4r?a=view
    (Installing the Sun Studio 12 Software on a Solaris Server for Use by Clients With a Different Architecture)
    The clients are Sun Solaris 10 11/06 x86_64.
    After running "check for updates", Sun Update Manager today returned 9 patches for Sun Studio 12. All of these patches appear to be for sparc architecture:
    126995-01
    124861-02
    124867-01
    124863-01
    127000-01
    127143-01
    126503-01
    127001-01
    124872-01
    My question is, why doesn't Sun Update Manager realize that I installed the x86_64 version of Sun Studio 12 (for NFS exporting) and give me the x86_64 version of these patches?
    Or am I missing something? How does the procedure "Installing the Sun Studio 12 Software on a Solaris Server for Use by Clients With a Different Architecture" result in the package system on the NFS server being aware of the correct arch version of Sun Studio 12?
    This should explain more:
    (/opt/x86_64/SUNWspro is my NFS share)
    # pwd
    /opt/x86_64/SUNWspro
    # ls -l
    total 62
    lrwxrwxrwx 1 root root 15 Aug 12 18:32 LEGAL-SS12 -> prod/LEGAL-SS12
    drwxr-xr-x 2 root sys 25 Aug 12 18:33 READMEs
    lrwxrwxrwx 1 root root 9 Aug 12 18:31 atd1 -> prod/atd1
    drwxr-xr-x 3 root sys 95 Aug 12 18:33 bin
    drwxr-xr-x 5 root sys 5 Aug 12 18:32 contrib
    drwxr-xr-x 2 root sys 3 Aug 12 18:32 docs
    drwxr-xr-x 2 root sys 7 Aug 12 18:33 examples
    drwxr-xr-x 2 root sys 5 Aug 12 18:32 include
    drwxr-xr-x 3 root sys 3 Aug 12 18:30 inventory
    drwxr-xr-x 9 root sys 40 Aug 12 18:33 lib
    drwxr-xr-x 12 root sys 13 Aug 12 18:30 man
    drwxr-xr-x 2 root root 4 Aug 12 19:46 nb-install
    drwxr-xr-x 21 root sys 21 Aug 12 18:32 prod
    drwxr-xr-x 5 root sys 5 Aug 12 18:33 sfw
    # uname -a
    SunOS <hostname> 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V440
    # cd bin
    # ls
    CC cscope er_print gvim smctl visu
    CCadmin ctc er_rm indent ss_attach visuroot
    amd64 ctcr er_src lint sunCC whatdir
    analyzer ctrace etags lock_lint sunas xdcapture
    b2m cxref f77 ootags sunc89 xdconfig
    bcheck dbx f90 prepare_system sunc99 xdesigner
    bil2xd dem f95 ptclean suncc xdhelp
    c++filt dmake fbe rcs-checkin sunf77 xdrecord
    c89 dumpstabs fdumpmod rtc_patch_area sunf90 xdreplay
    c99 dwarfdump fpp rxm sunf95 xdroot
    cb ellcc fpr rxs sunstudio xdtosj
    cc er_archive fsplit sbcleanup tcov xemacs
    cc-5.0 er_cp gil2xd sbenter tha xemacs-mule
    cflow er_export gnuattach sbquery uil2xd
    checkjava er_kernel gnuclient sbtags version
    collect er_mv gnudoit smallxd version-5.0
    # file f95
    f95: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, stripped
    I obviously have the i386 version of f95 sitting on my sparc server. The x86 clients are happy with it - works great, but I want to be able to patch it.
    Can anyone tell me how to apply patches to my Sun Studio 12 installation in this case?
    Thanks,
    Phil

    its probably best to get your other patching issue sorted out first before going any further with this. it may turn out that fixing the problem of smpatch analyze recommending already installed patches will also fix this problem

  • IDE SUN STUDIO ONE V5

    Hi,
    I would like to build j2ee system, using an IDE. I have downloaded evaluation version of SUN STUDIO ONE SE which has no ejb facility.
    But documentation says after creating package in Local System when you click all you will session bean. But I could not find there any thing about ejb. If any body can help me here to quickly find the STUDIO ONE EVALUATION VERSION that has EJB creation facility, It will be a great help for me.
    Thanks in Advance
    email: [email protected]

    I think the Community Edition is the free/evaluation version; any other flavor needs to be paid for. Unfortunately, all flavors share the same documentation, which can lead you to believe the version you have can do things when it really can't; as is your situation.

  • Installing  cooltools when Sun studio is installed in a non default dir

    Hello all,
    I have installed sun studio 12 on one node of a SPARC cluster. When installing, I did not use the default directory (/opt/SUNWspro), but I used a different one as this installation is for trial purposes only.
    Now, I want to install discover, ats and all other tools that are included in the tar file. I followed the instruction on suns web page : http://cooltools.sunsource.net/cmtdt/install.html, but all the information there is based on the fact that sun studio is installed in the default directory.
    Does anyone know, what should I do in order to install the tools in the proper directory? Should I specify a path in the "pkgadd" command? Please help as I am stuck at the moment.
    Thanks a lot.
    Yiannis

    I think I found the answer myself. It is written in sun's web page:
    If the Sun Studio 12 tools are installed with a different base directory, say /opt/Studio12/SUNWspro/bin, then use the option -a none in the pkgadd command. When you are prompted for the <base_dir>, enter /opt/Studio12. The tools in the SPROprfns and SPROcool packages will be installed in /opt/Studio12/SUNWspro/extra/bin.
    I think this solves the problem, but in any case, please feel free to comment on this one.

  • Tcov Code Coverage Libraries missing from Sun Studio 12!!!

    Hi,
    When I try to collect coverage statistics using the -xprofile=tcov I get the following message
    f90     -xprofile=tcov -w0 -C  -c ./intfaces.f90 -o ./scovintfaces.o
    f90     -xprofile=tcov -w0 -C  -c ./gcovsrc.f90 -o ./scovsrc.o
    f90     -xprofile=tcov -w0 -C  -c ./gcovdrv.f90 -o ./scovdrv.o
    f90      -xprofile=tcov -w0 -C  -o ./five82scov.exec ./scovdrv.o ./scovsrc.o /usr/lib/libg2c.so.0 
    f90: Cannot find /opt/sun/sunstudio12/prod/lib/bb_link.oThis file does not seem to be within the packages provided in sun studio 12!!! (linux/x86 editon). I then decided to get the latest patches and now I get the following message
    f90     -xprofile=tcov -w0 -C  -c ./intfaces.f90 -o ./scovintfaces.o
    /opt/sun/sunstudio12/prod/bin/f90comp: error while loading shared libraries: libyabe.so: cannot open shared object file: No such file or directoryThis file is also nowhere to be found!!! Have the sun developers decided to leave out crucial libraries?!?
    Regards

    This is not very nice from the compiler, but at least it is documented here:
    http://developers.sun.com/sunstudio/documentation/ss12/mr/READMEs/fortran_95.html#limitations
    Quote:
    The -xprofile=collect and -xprofile=tcov options should not be used when building shared libraries on Linux.

  • GTK in Sun Studio project (question)

    I'm new to Sun Studio. My background is 22 years c/c++ non-unix development (embedded systems & Windows application development).
    I'm trying to write a GUI based c++ app for Solaris. I know this is a complete newbie question. Any help will be GREATLY appreciated.
    Here's my question/issue: I cannot seem to include <gtk.h>. I've installed every GTK/ GTKMM package I can find. Building/deploying any project that does not use GTK is fine. I cannot for the life of me figure out how to build a GTK app. Even the GtkFreeway example app for Sun Studio fails to compile at #include <gtk.h>.
    So, how do I set up my environment to include gtk headers and link with the appropriate libraries.
    Thanks in advance,
    Mike

    You can use the IDE. Add the path to the gtk.h include directory in the compiler option dialog.
    For example, if gtk.h is in /opt/gtk/include, add /opt/gtk/include to the list of -I options.
    If the error you get is
    Could not open include file "gtk.h"
    it's due to the missing path.
    If you get some other error, please post the error output.
    Your experience with <> and "" for include directives is misleading. You can make incorrect inferences due to not testing every possible combination of headers locations and #include directives..
    The C++ standard says the <> form is required for standard headers. It goes on to say that the search method for the "" and <> forms is implementation-defined. The search method for Sun C++ is described in the C++ Users Guide
    [http://docs.sun.com/app/docs/doc/820-7599/bkaso?a=view]
    The details of lookup vary only slightly among modern compilers. If you use <> for system headers and "" for project headers, you should expect to get the right result. The <> form can prevent local directories from being searched, which is appropriate for system includes, but not for project includes.

  • Sun studio not working in linux

    I installed sun studio 12 in suse 10 linux, and i created a simple pgm,
    when compiling it, it shows these below errors,
    Running "/root/Desktop/sunstudio12/bin/dmake -f Makefile CONF=Debug" in /root/SunStudioProjects/Add
    dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    linux-n3wz --> 1 job
    /root/Desktop/sunstudio12/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    linux-n3wz --> 1 job
    mkdir -p build/Debug/Sun12-Linux-x86
    cc -c -g -o build/Debug/Sun12-Linux-x86/newmain.o newmain.c
    linux-n3wz --> Job output
    mkdir -p build/Debug/Sun12-Linux-x86
    cc -c -g -o build/Debug/Sun12-Linux-x86/newmain.o newmain.c
    (/root/SunStudioProjects/Add)newmain.c:
    "/root/Desktop/sunstudio12/prod/include/cc/stdio.h", line 5: cannot find include file: <stdio.h>
    "/root/Desktop/sunstudio12/prod/include/cc/stdlib.h", line 6: cannot find include file: <stdlib.h>
    "newmain.c", line 17: warning: implicit function declaration: scanf
    "newmain.c", line 19: warning: implicit function declaration: printf
    "newmain.c", line 20: undefined symbol: EXIT_SUCCESS
    cc: acomp failed for newmain.c
    *** Error code 2
    dmake: Fatal error: Command failed for target `build/Debug/Sun12-Linux-x86/newmain.o'
    Current working directory /root/SunStudioProjects/Add
    *** Error code 1
    dmake: Fatal error: Command failed for target `.build-impl'
    Build failed. Exit value 1.
    CAN any body tell me whats the exact problem?
    this same pgm is currectly running in sunstudio 12 installed in solaris.

    satmatrix wrote:
    ok, shall i install ubuntu in my laptop?No, I'm just saying that I'm not familiar with SuSe enough to tell what package you need to install to have standard includes. But you already have an answer now...
    Solaris 10 is not installable in my laptop, it doesnt support graphics, also i had tried opensolaris, it works without errors and it supports graphics,
    but can i install Sun Studio 12 in that?Of course. You can do it using OpenSolaris package manager; no need to download, unpack, install - package manager will do it for you.

  • How to install sun studio 12 under Centos 5???

    HI, all,
    I am trying to install Sun Studio 12 into Centos 5. The followings are what I did:
    1. Download sun studio 12 package by selecting Linex (x86) for Centos from web site and save this package under /var/tmp.
    2. I used bzcat to unpack this package by:
    bzcat < SunStudio12ml-linux-x86-200709-pkg.tar.bz2 | /bin/tar xvf -
    3. I did prepare_system before installation by:
    ./prepare_system [-d /opt/sun/ ] [-R /var/tmp/ ] [-C | -s netbeans | java | patches | all_patches | jdk_patches | all | print_needed_steps ]
    where [-d /opt/sun/ ] is the directory where all missing softwares will be installed, [-R /var/tmp/ ] is the directory where unpacked programs are saved.
    After running prepare_system, the resposes are:
    bash: -s: command not found
    bash: patches: command not found
    bash: all_patches: command not found
    bash: all: command not found
    bash: print_needed_steps: command not found
    bash: jdk_patches: command not found
    *Usage: gij [OPTION] ... CLASS [ARGS] ...*
    to invoke CLASS.main, or
    *gij -jar [OPTION] ... JARFILE [ARGS] ...*
    to execute a jar file
    *Try `gij --help' for more information.*
    4. I started to use installer with command line to install the sun studio 12 by:
    ./installer -nodisplay
    The result shows me some exceptions and installation is failed as:
    Exception in thread "Thread-1" java.awt.HeadlessException
    at java.awt.dnd.DropTarget.<init>(libgcj.so.7rh)
    at java.awt.dnd.DropTarget.<init>(libgcj.so.7rh)
    at javax.swing.JComponent.<init>(libgcj.so.7rh)
    at javax.swing.JPanel.<init>(libgcj.so.7rh)
    at javax.swing.JPanel.<init>(libgcj.so.7rh)
    at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)
    at com.sun.wizards.core.WizardComposite.<init>(WizardComposite.java:83)
    at com.sun.wizards.core.WizardTreeManager.createWizardPanel(WizardTreeManager.java:890)
    at com.sun.wizards.core.WizardTreeManager.<init>(WizardTreeManager.java:325)
    at com.sun.wizards.core.CommandLineConsole.run(CommandLineConsole.java:75)
    at java.lang.Thread.run(libgcj.so.7rh)
    Task Failed: java.lang.NullPointerException
    java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(libgcj.so.7rh)
    at java.util.ResourceBundle.tryBundle(libgcj.so.7rh)
    at java.util.ResourceBundle.tryBundle(libgcj.so.7rh)
    at java.util.ResourceBundle.getBundle(libgcj.so.7rh)
    at java.util.ResourceBundle.getBundle(libgcj.so.7rh)
    at com.sun.setup.util.wbResource.getString(wbResource.java:212)
    at com.sun.setup.util.wbResource.getString(wbResource.java:132)
    at com.sun.setup.util.setupInitializationTask.perform(setupInitializationTask.java:88)
    at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
    at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
    at java.lang.Thread.run(libgcj.so.7rh)
    I followed installation instructions to install sun studio 12 under Centos 5. I can not make it. However, I made it under Solaries system.
    So, is there any special for Centos 5?
    Hunter 3D

    Hi,
    Thank you for your helps.
    According to your suggestions, I downloaded JDK 6 update 10 RC, specifical in Linux platform : self-extracting JDK file named:
    jdk-6u10-bin-b28-linux-i586-21-jul-2008.bin
    I saved downloading under the directory where sun studio is located.
    I used
    yum search jdk
    to find jdk exists in Centos 5.2 shown as the message as:
    [root@localhost sun]# yum search jdk
    Loading "priorities" plugin
    Loading "fastestmirror" plugin
    Loading mirror speeds from cached hostfile
    * rpmforge: ftp-stud.fht-esslingen.de
    * base: mirror.raystedman.net
    * updates: mirror.raystedman.net
    * addons: mirror.voxitas.com
    * extras: mirror.raystedman.net
    0 packages excluded due to repository priority protections
    jakarta-commons-launcher.i386 : The Launcher Component is designed to be a cross platform Java application launcher.
    jakarta-commons-collections.i386 : Jakarta Commons Collections Package
    mockobjects-alt-jdk1.4.i386 : Mockable API for JDK 1.4
    jakarta-commons-beanutils.i386 : Jakarta Commons BeanUtils Package
    gnu-crypto-sasl-jdk1.4.i386 : Gnu Crypto SASL API
    ldapjdk.i386 : The Mozilla LDAP Java SDK
    ldapjdk-javadoc.i386 : Javadoc for ldapjdk
    mockobjects-jdk1.4.i386 : MockObjects for 1.4 JDK
    I used
    ./installer -nodisplay
    to install sun studio 12 and error message show as:
    [root@localhost sun]# ./installer -nodisplay
    Exception in thread "Thread-1" java.awt.HeadlessException
    at java.awt.dnd.DropTarget.<init>(libgcj.so.7rh)
    at java.awt.dnd.DropTarget.<init>(libgcj.so.7rh)
    at javax.swing.JComponent.<init>(libgcj.so.7rh)
    at javax.swing.JPanel.<init>(libgcj.so.7rh)
    at javax.swing.JPanel.<init>(libgcj.so.7rh)
    at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)
    at com.sun.wizards.core.WizardComposite.<init>(WizardComposite.java:83)
    at com.sun.wizards.core.WizardTreeManager.createWizardPanel(WizardTreeManager.java:890)
    at com.sun.wizards.core.WizardTreeManager.<init>(WizardTreeManager.java:325)
    at com.sun.wizards.core.CommandLineConsole.run(CommandLineConsole.java:75)
    at java.lang.Thread.run(libgcj.so.7rh)
    Task Failed: java.lang.NullPointerException
    java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(libgcj.so.7rh)
    at java.util.ResourceBundle.tryBundle(libgcj.so.7rh)
    at java.util.ResourceBundle.tryBundle(libgcj.so.7rh)
    at java.util.ResourceBundle.getBundle(libgcj.so.7rh)
    at java.util.ResourceBundle.getBundle(libgcj.so.7rh)
    at com.sun.setup.util.wbResource.getString(wbResource.java:212)
    at com.sun.setup.util.wbResource.getString(wbResource.java:132)
    at com.sun.setup.util.setupInitializationTask.perform(setupInitializationTask.java:88)
    at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
    at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
    at java.lang.Thread.run(libgcj.so.7rh)
    So, please tell me what I will do.
    Thank you.

  • Sun studio in fedora 10

    in my machine
    $ uname -a
    Linux roddur 2.6.27.15-170.2.24.fc10.i686 #1 SMP Wed Feb 11 23:58:12 EST 2009 i686 i686 i386 GNU/Linux
    i am trying to install sunstudio12 package installer, but it fails. in graphical mode, it claims that it is writing a log which actually dose not exist. in batch installer, it fails to detect netbeans, though it should download it(hopefully) if it is not there.
    so what should i do? though the tarball package is working fine but its just my preference to have the package installer. one more thing. in the graphic mode it says that the all the files have 0 Byte....what it means? though the total file size downloaded is same as that maitained.
    plz help

    Fedora 10 is an unsupported platform, which may or may not be the reason for all those installer errors you see.
    Which version of Sun Studio are you trying to install? Anyway, the latest Sun Studio Express (http://developers.sun.com/sunstudio/downloads/express/index.jsp) may work on this (still unsupported) platform, but Sun Studio 12 probably won't.
    For all I know, batch installer (or graphical one, for that matter) does not download anything; you have to manually run system preparation tool and this tool will unpack and install missing components (such as supported version of Java, for example).
    Also, worth mentioning that if you have NetBeans already, it can't be used by Sun Studio; it will install it's own private version of NetBeans.

Maybe you are looking for