Help for running C at Solaris 10 using cc complier

I have installed a Sun Studio 11 on Solaris 10. And when i use cc command to compile the c program then it is showing "C:language optional component is required".
How can i run the c on solaris 10

You have to set PATH so that Sun Studio C compiler (cc) is invoked.
Currently you have /usr/ucb/cc ahead of Sun Studio cc. If you run
echo $PATHand
which ccyou will see why wrong C compiler starts.
For example, if you installed Sun Studio under /opt/SUNWspro/ directory,
you have to set PATH like this:
csh
setenv PATH /opt/SUNWspro/bin:$PATHBTW, Sun Studio 11 is an old release. It is better to use Sun Studio 12 update 1.
Thanks.
Nik

Similar Messages

  • HELP FOR RUN PHOTOSHOP IN COMMAND PROMPT AND OPEN FILE

    HELLO
    i have problem for run photoshop in cmd(command prompt) and
    open a file immediate
    for example:
    D:\Program Files\Adobe\Photoshop CS>Photoshop.exe -open -f:\1.jpg
    but these not answer
    I need parameter open in photoshop
    please help me
    thanks

    I would right click on 1.jpg. Select Open with... Select Choose default program... Pick Photoshop and make sure you check "always use the selected program to open this kind of file."
    D:\1.jpg
    Would then open photoshop.

  • Seeking Help for Guidance in developing a product using JAVA CARD

    Hi All,
    I am using windows environment with netbeans 6.8 as developer tool and MySql Server connectivity for back end process.My requirement is to develop applets and installing them to my Smart card and reader.my question is
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?
    2. how to install them into the smart card?
    3.what are the commands i am supposed to follow if other than APDU commands?
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.
    5.if possible please help me with a small example so that i will start developing it.
    can anyone help me in developing this application.i will be so helpful if anyone helps me in guiding me to develop the java card product.
    Edited by: Sijukj on Mar 4, 2010 7:04 AM

    Hi,
    Welcome to the wonderful world of embedded Java development!
    Sijukj wrote:
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?The first step is to download the Java Card Development Kit (JCDK) from the Sun website (along with the related documentation/specifications). If you plan on using your code on a real card, I would recommend JC version 2.2.1 or 2.2.2. If it is sufficient to run your applet on a simulator (as a proof of concept or for assignments) with no intention on running on real hardware you could go for JC 3.0.2 and use the supplied simulator. This version of JC does not have commercially available cards as of yet.
    Once you have the applet coded and installed on your card, you would personalise the card for the card holder. This means loading card holder specific data into your application. This may also involve registering the smart card ID with the student in your database.
    2. how to install them into the smart card?The procedure for loading and installing applets is outlined in the Java Card documentation (available with the JC development kits from Sun) and the GlobalPlatform card specifications (available from [http://www.globalplatform.org]). You can look into some open source tools for doing this (GPShell and the Java Card Development Kit).
    3.what are the commands i am supposed to follow if other than APDU commands?This depends on what you are trying to achieve with your applet. If you want interoperability you could implement a standard like ISO7816 or IOS24727. This is a lot of work so you may just want to implement the proprietary you require for each operation you need (e.g. set student ID, get student ID etc).
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.These are defined in ISO7816 part 4.
    The CLA byte gives information on the command you are sending such as secure messaging, command chaining, ISO or proprietary command
    The INS is the instruction or command you are trying to perform
    P1 and P2 are parameters to the command. These may not be required for each command but are able to be used to convey further information to the applet.
    Lc is the length of the data field you are sending (e.g. for a PUT DATA command this would be the amount of data you are sending)
    Le is the length of the data you expect to receive back from the card. If this is absent you do not expect the card to return any data, 0x00 means send all the data you have left (up to the limit of the response APDU)
    5.if possible please help me with a small example so that i will start developing it.You can find example code in the Java Card Development Kit. There are a wide range of examples there that can help you get started.
    Cheers,
    Shane

  • F4 help for custom table field - to be used when populating data thru SM30

    Hi,
    I have a custom table with 5 fields - say A, B, C, D and E. While populating data to the table through SM30, I need to create a F4 help for the field C. A  custom function module needs to be used.
    I have created a module for the same in the event PROCESS ON VALUE-REQUEST of the function group of the table.
    But the F4 for field C depends on the values put in fields A and B.
    I am not able to get the values of fields A and B from within the module PROCESS ON VALUE-REQUEST.
    Please help me to create the F4 help.

    hii,
    This is the piece of code i have used in one of my SM30 to get f4. mopdify according to ur need and use.
    revert back for further help.
    w_dynpread-fieldname = 'ZSITEDCDATA-SITE'.
      APPEND w_dynpread TO i_dynpread.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = 'SAPLZSITEDCDATA'
          dynumb               = sy-dynnr
          translate_to_upper   = 'X'
        TABLES
          dynpfields           = i_dynpread
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE i_dynpread INTO w_dynpread INDEX 1.
      IF sy-subrc IS INITIAL.
        SELECT land1 FROM t001w
          INTO TABLE i_site
          WHERE werks EQ w_dynpread-fieldvalue.
        IF i_site[] IS NOT INITIAL.
          DATA: lv_line TYPE i.
          CLEAR lv_line.
          DESCRIBE TABLE i_site LINES lv_line.
          IF lv_line GT 1.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                retfield        = 'ZSITEDCDATA-SITE_COUNTRY'
                dynpprog        = 'SAPLZSITEDCDATA'
                dynpnr          = sy-dynnr
                window_title    = 'Site Country'
                value_org       = 'S'
              TABLES
                value_tab       = i_site[]
                return_tab      = i_return
              EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
              READ TABLE i_return INTO w_return INDEX 1.
              IF sy-subrc IS INITIAL.
                zsitedcdata-site_country = w_return-fieldval.
              ENDIF.
            ENDIF.
    Thanks ,
    Gaurav

  • Can we provide new f4 help for a field in a list using grid display

    Hi Gurus,
    Can I provide F4 help for field in edit mode for (which is not using any std. data type, uses only custom char field ) in the list displayed using CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
    I know this can be done using OOPS concepts but, I need to know whether it is possible in this manner.
    And please dont suggest me to use CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' to get automatic  f4 help.
    I need to provide F4 help with my own logic once I press F4 in the edited field in GRID_DISPLAY
    Regards
    Mac.

    Hi Macmohan,
    You have to use F4AVAILABL attribute of fieldcatalog to achieve this.
    lv_fldcat-f4availabl = 'X'.
      lv_fldcat-ref_table = 'T582A'.
      lv_fldcat-ref_field = 'ZEITB'.
    This works with ALV GRID CONTROL
    Regards
    Abhii
    Edited by: Abhii on Dec 16, 2009 3:37 PM

  • Need help for connecting internet in solaris 10

    Hello ,
    I am new to Sunsolaris, recently i installed solaris 10 in my HP laptop. In my lap vista is the host and i installed Virtual box 3.0. Inside virtual box i installed solaris. My problem is not able to connect to internet. Iam using a wireless modem for connecting internet which is configured in vista. Solaris is not identifying wireless modem. Virtual box host adaptor is the ethernet iam using. I want to connect solaris to vista and access the internet( i have a guest open suse Linux in my lap, this is able to connect to internet through vista) can anybody give me a solution to get internet in solaris(ie through vista)
    Biju

    Hi,
    What is the gateway used by Solaris. Please send the result of ifconfig -a on the Sun OS.
    Sunil.

  • Help for run-time menu localization

    I would like to dynamically change the run-time menu according to the predefined language setting. For example, if the setting (may be set up in a txt file) is German, then when the application is running, it automaticall display a german menu. if the setting is spanish, the menu will change to spanish display. Any help will be appreciated.

    The attached VI can dynamically change the run-time menu and short-cut menu based on language.
    帖子被ttrr在07-24-2006 09:12 PM时编辑过了
    Attachments:
    Multi Language Menu.zip ‏13 KB

  • F4 help for field in ALV grid control (using ABAP objects)

    Hi All,
        I have created a z table ZTAB which is a master table( with single column X). field X should be a input field in ALV Grid through F4 key. I have created searchelp and assigned it to data element of X feild, and in domain level I have assigned ZTAB as value table.
        And in ALV field catalog wrote ls_fcat-ref_tab = 'ZTAB'. But still I'm not getting list of values when I press F4.
    Can anyone help me to understand what is missing here? How to call standardard F4 help?
    This is very urgent..
    Regards
    Jaker.

    u can refer to this standard program :BCALV_EDIT_08
    also u wont get the list of values automatically..
    declare a class :
    CLASS LCL_EVENT_HANDLER DEFINITION.
      PUBLIC SECTION.
        METHODS :
        handle_on_f4 for event onf4 of cl_gui_alv_grid
        importing e_fieldname es_row_no er_event_data,
    ENDCLASS.               "LCL_EVENT_HANDLER
    implementation of class
    here u pass ur internal table what u want to display as pop up for f4 help.
    *&       Class (Implementation)  LCL_EVENT_HANDLER
           Text
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *Method to handle F4 click.
      Method handle_on_f4.
    Function to create a popup and passing the values of internal table in it.
          CALL FUNCTION 'POPUP_WITH_TABLE'
            EXPORTING
              ENDPOS_COL   = 60
              ENDPOS_ROW   = 60
              STARTPOS_COL = 5
              STARTPOS_ROW = 5
              TITLETEXT    = 'pop up'
            IMPORTING
              CHOICE       = wa_grid-zfield
            TABLES
              VALUETAB     = ITAB
            EXCEPTIONS
              BREAK_OFF    = 1
              OTHERS       = 2.
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            RETURN.
          ENDIF.
      endmethod.                    "handle_on_f4
    ENDCLASS.               "LCL_EVENT_HANDLER
    hope this gives u some idea.

  • Urgent Help for Run Report

    after creating a button in form builder 9i i want to fire a tigger for execute the report which is built in report builder 9i but it is not executing and showing me these errors..
    code behind tigger of button is
    Declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    Begin
    repid := FIND_REPORT_OBJECT( ' c:\rsoreport.rep ' );
    or ( ' rsoreport.jsp ' );
    or ( ' rsoreport ' );
    v_rep := RUN_REPORT_OBJECT(repid);
    End;
    error = FRM-41219 : Cannot find the Report: invalid id; on Form
    and on Status bar Run_Report_Object cannot be null.
    i need to execute the report behind form button so if any one know the simple code for this or tell me my code mistake then i would be very thanfull to him

    You need to post this in forms forum. But you can check this. It has example how to run report from forms.
    http://www.oracle.com/technology/products/forms/pdf/frm9isrw9i.pdf

  • Query Help for Running Count

    hi i have table with data like below
    CREATE TABLE Table1
    ID int
    ,GroupID int
    insert into Table1 values(1,1)
    insert into Table1 values(2,2)
    insert into Table1 values(3,2)
    insert into Table1 values(4,1)
    insert into Table1 values(5,1)
    insert into Table1 values(6,3)
    insert into Table1 values(7,3)
    insert into Table1 values(7,3)
    insert into Table1 values(8,2)
    insert into Table1 values(9,4)
    insert into Table1 values(10,5)
    Here i need the out put with GroupID and the count. The expected output like below
    GroupID
    Count
    1
    1
    2
    2
    1
    1
    3
    3
    2
    1
    4
    1
                 5              1  
    I think you got my scenario. For each groupID i need to put the count but with adjusents same GroupID

    Hi Akhil,
    It looks like your expected is wrong, Try the below:
    CREATE TABLE Table1
    ID int
    ,GroupID int
    insert into Table1 values(1,1)
    insert into Table1 values(2,2)
    insert into Table1 values(3,2)
    insert into Table1 values(4,1)
    insert into Table1 values(5,1)
    insert into Table1 values(6,3)
    insert into Table1 values(7,3)
    insert into Table1 values(7,3)
    insert into Table1 values(8,2)
    insert into Table1 values(9,4)
    insert into Table1 values(10,5)
    ;WITH FirstCte AS (
    SELECT GroupID,id,
    ROW_NUMBER() OVER(ORDER BY id) AS rnComplete,
    ROW_NUMBER() OVER(PARTITION BY GroupID ORDER BY id) AS rnGroupID
    FROM Table1)
    , SecondCte AS (
    SELECT id,GroupID, count(GroupID) Over(partition by GroupID, rnComplete - rnGroupID) as GroupCnt
    FROM FirstCte )
    SELECT m.GroupID, GroupCnt
    FROM SecondCte AS m
    GROUP BY m.GroupID, GroupCnt
    Order by MAX(m.ID)
    Drop table Table1
    GroupID
    Count
    1
    1
    2
    2
    1
    2
    3
    3
    2
    1
    4
    1
                 5              1 

  • Help with running multiple threads

    I'm new to programming with threads. I want to know how to run
    multiple threads at the same time. Particularly for making games
    in Java which I'm also begining to learn. For running multiple
    threads at the same time, do you have to put two run() methods
    in the source? If not then how do you make two threads or more
    run at the same time?
    Thanks for helping.

    For running multiple
    threads at the same time, do you have to put two run()
    methods
    in the source? Hi there,
    Each thread is presumably performing a task. You may be performing the same task multiple times or be performing different tasks at once. Either way, each task would typically be contained within the run() method of a class. This class would either be a subclass of java.lang.Thread (extends Thread) or would be an implementation of java.lang.Runnable (implements Runnable). In either case, you would define a method with signature (public void run()...). The difference comes into play when you wish to actually perform one of these tasks. With a subclass of Thread, you would simply perform:
    new MyTask().start();
    With an implementation of Runnable, you would do this:
    new Thread(new MyTask()).start();
    This assumes you don't need to monitor the threads, won't be sending any messages to your tasks or any such thing. If that were the case, you would need to tuck away those returns to new MyTask() for later access.
    In order to launch two threads simultaneously, you would have something along the lines of:
    new MyTask().start();
    new MyOtherTask().start();
    Now it is perfectly possible that MyTask() would complete before MyOtherTask() managed to start in which case it wouldn't appear as if you had actually had multiple threads running, but for non-trivial tasks, the two will likely overlap. And of course, in a game, these tasks would likely be launched in response to user input, which means that you wouldn't have any control over when or in what order they executed.
    Anyhow, it's as simple as that. You should also consider following the Java Threading trail which shows a simple example of using multiple threads. You can find it at:
    http://java.sun.com/docs/books/tutorial/essential/threads/index.html
    Regards,
    Lynn

  • Reg : F4 help for custom fields in ALV report

    hi friends..
    in my internal table i have fields including 1 custom field..
    DATA : BEGIN OF i_final OCCURS 0,
      pernr LIKE p0000-pernr,
      begda LIKE p0000-begda,
      plans LIKE ZPOSITION-plans,  (custom)
      werks LIKE pspar-werks,
      end of i_final.
    i want to display this i_final table in alv. for that i genetrate one fieldcatalog
    PERFORM fcat USING:
                      'I_FINAL' 'PERNR' 'P0000' 'PERNR' '15' 'X' '',
                      'I_FINAL' 'BEGDA' 'P0000' 'BEGDA' '10' 'X' '',
                      'I_FINAL' 'PLANS' 'ZPOSITION' 'PLANS' '8' 'X' '',
                      'I_FINAL' 'WERKS' 'PSPAR' 'WERKS' '14' 'X' ''.
    in custom table zposition, i maintain serch help for custom field "PLANS".
    then i used reuse_alv_grid_display.. for all the std fields along wit custom fields
    i got f4 all std fields but for my custom i am not getting the f4 help
    how can i get the F$ help for this custom fields Zposition-plans..
    plz give some idea

    Hi
    In that Ztable against the field
    PLANS give the check table name as  <b>T528B</b>
    then it will automatically give the search help
    or you can create your own search help(elementary) and add to that field
    Reward if useful
    regards
    Anji

  • Freely Programed Help for select-option field

    Hi,
    how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    Please suggest where i am doing wrong??
    Edited by: kranthi kumar on Dec 29, 2010 6:19 PM

    >
    kranthi kumar wrote:
    > Hi,
    >
    > how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    >
    > i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    >
    > i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    >
    > View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    >
    > Please suggest where i am doing wrong??
    >
    > Edited by: kranthi kumar on Dec 29, 2010 6:19 PM
    Hi Kranthi,
    Please help me to understand your design.
    Why would you like to create a Freely programmed value help for select-option?. why not use wdr_select_option directly ?

  • Creating Help for Iphone/Android app

    I need to create help for an iPhone and Android app using RoboHelp 10. 
    Which option do I choose for a New Project: Blank Project or Application Help?
    And, which output do I choose under "File > Generate"? I see an option for "Native Mobile App." But, I'm not seeing a "Multiscreen HTML5" option.
    Which file do I give the developer?
    Thanks for your help!

    That's a pretty big question and you haven't given us any clues such as which version of RoboHelp you are using and whether it is just this form of help that is new to you or help in general.
    It doesn't really matter whether you choose Blank Project or Application Help as they are just starters with different default topics and you will be trashing them anyway. For now let's say start with Blank Project and create your topics. You do need to keep in mind they will be viewed on various devices. More about that later.
    When that is done you start thinking about creating a suitable output. Multiscreen HTML5 is the output in RoboHelp 10. RoboHelp 11 was released today and that has a new output, Responsive HTML5. That is simpler, especially first time out. Both of those types are intended for use where they will be viewed via a browser, be that on a desktop or a mobile device.
    It is not clear whether you want your company's app to access help in that way or whether the need is for the help to be an app in its own right. The latter adds another layer of learning. Essentially after creating an HTML5 output, you use the script to create an app. From the questions you ask, I suspect you will need developer assistance with that.
    Start by viewing my page at http://www.grainge.org/pages/authoring/html5/html5.htm where you can download a project with information inside, include some ideas about how to write content.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Need help creating a bootable dvd for solaris 9 using windows

    Ok, I am using windows XP, I have 2 hard drives in my computer and want to load Solaris 9 on my other hard drive. I have downloaded the ziped ISO files from sun.com, I have extracted them (sol-9-u8-ga-x86-dvd-iso-a, sol-9-u8-ga-x86-dvd-iso-b, sol-9-u8-ga-x86-dvd-iso-c, sol-9-u8-ga-x86-dvd-iso-d, and sol-9-u8-ga-x86-dvd-iso-e) Now what? I burned them to a DVD but its not booting to them (I have checked my boot sequence) I figured I would have to make a bootable DVD but I don't know how. All the instructions I am finding are for doing it in Solaris 9. Can someone please give me instructions on what I need to do now that I have downloaded the files or point me to a site that already has the instructions? Also I have Nero 7 Essentials as my DVD burning software.
    Thanks

    Copy all unzipped pieces into one directory (sol-9-u8-ga-x86-dvd-iso-a, sol-9-u8-ga-x86-dvd-iso-b etc... all 5 pieces)
    take command prompt and goto that directory and run the below command
    copy /b sol-9-u8-ga-x86-dvd-iso-a + sol-9-u8-ga-x86-dvd-iso-b + sol-9-u8-ga-x86-dvd-iso-c + sol-9-u8-ga-x86-dvd-iso-d + sol-9-u8-ga-x86-dvd-iso-e sol-9-u8-ga-x86-dvd-iso.iso
    It will create sol-9-u8-ga-x86-dvd-iso.iso file.
    Using any DVD Burner software (e.g. Nero 7 or later), Burn the newly ceated image ( sol-9-u8-ga-x86-dvd-iso.iso) do "Burn Image" (NOT a DATA DVD/CD)
    Regards,
    Prvn

Maybe you are looking for

  • Layout for entering invoice

    Hi, How can the layout on the miro screen adjusted and saved as per our own requirement. Eg. few columns to the extreme right I need to bring to the start so that to have a ease in viewing/entering data My second question is does SAP allow entering P

  • Sap netweaver portal bussiness package for supplier collaboration

    Hi I have the following questions on sap netweaver portal bussiness package for supplier collaboration : 1. What is this above process ? [ Please explain it in brief ] 2. What is iView ? 3. What is supplier collaboration Biz pack? 4. What is sap purc

  • Why does Firefox not update automatically nor allow me to manually update?

    I'm running version 3.0.5, but didn't notice it wasn't updating until websites started complaining recently. When I try to upload manually from the website, the program downloads but will not copy into my applications folder. It says there is already

  • Random songs of mine are being deleted from my library

    Hey I am having issues with songs just randomly disappearing, and these are songs that I imported from CDs.  I really cant find a pattern, its just one or two songs from one album, five from another, etc.  Any help would be aprreciated, especially si

  • Cannot get past the new T's & C's to download apps

    Hi People, I'm struggling to download any apps all of a sudden. ..... It is telling me that I have to agree to the new T's & C's, which I do, then it times out almost immediately so I cannot get any further. ... This only happened since I upgraded to