1 2 3 Previous Next 30 Replies Latest reply: Jul 24, 2012 9:56 AM by 819184 RSS

    OracleStudio12.3 and Red Hat 6.2

    819184
      I have OracleStudio12.3 and Red Hat 6.2 on my system. When I run 12.3 on the simple little app you get with the IDE packag I get red error lines even in the comment areas. Any help would be appreciated. Maybe I should shift to12.2 but I don't have a copy of it.

      Thanks - Tom Michlik
        • 1. Re: OracleStudio12.3 and Red Hat 6.2
          823360
          Hello Tom,

          Could you please run IDE with fresh user directory. To do that just execute it with --userdir /path/to/some/writable/dir command-line parameter.
          I.e., ./solstudio --userdir /tmp/testud.

          Do you see the same effect after that?

          If so, could you please provide more detailed scenario. What exactly you are doing?

          Regards,
          Igor
          • 2. Re: OracleStudio12.3 and Red Hat 6.2
            819184
            Hi Igor:

            I appreciate your advice but I do notknowhow to use it. Do I have to go into BASH andchange the PATH in vi?

            Regards;

            Tom
            • 3. Re: OracleStudio12.3 and Red Hat 6.2
              823360
              You should execute the Studio IDE from the command line with --userdir option. Please use the following steps to do that:
              1. Find where the Studio is installed:
              - by default it should be installed to /opt/oracle/solarisstudio12.3;
              - if you using GNOME menu to start IDE, check it's properties to understand where IDE is located (this is Basic -> Command property value);
              - you can try 'which solstudio' or 'whereis solstudio' (both without quotes) commands in the console (see next step).
              2. Start Terminal application (in my CentOS 6.2 is is in Applications -> System Tools GNOME menu).
              3. Execute the following command in the Terminal:
              <path-to-solstudio-installation>/bin/solstudio --userdir /tmp/testud

              Regards,
              Igor
              • 4. Re: OracleStudio12.3 and Red Hat 6.2
                819184
                Igor:

                Your last suggestion brought up a clean (no red lines) iteration of SS12.3. What can I do to make this happen in Gnome?

                Thanks - Tom
                • 5. Re: OracleStudio12.3 and Red Hat 6.2
                  819184
                  Hi Igor:

                  Do you know if there are going to be any stable versions of SS12.3 coming out in the near term. The CLI string you sent me got the IDE working but without a working debugger. I put a "break" in the source of a very small working program. When I did a debug run it was totally ignored.

                  Best regards - Tom
                  • 6. Re: OracleStudio12.3 and Red Hat 6.2
                    881506
                    hi, would you please go to main menu/tools/options then to the C/C++ tab/build tools and then click on the Versions button on the bottom of the dialog,
                    then copy here versions that will appear. thanks
                    • 7. Re: OracleStudio12.3 and Red Hat 6.2
                      823360
                      Hello Tom,

                      You need to delete IDE cache directory, which is

                      $HOME/.solstudio/ide-12.3-Linux-*/var/cache/cnd

                      To do that you can use the following steps:
                      1. Open Terminal.
                      2. Type the following command:
                      rm -r $HOME/.solstudio/ide-12.3-Linux-*/var/cache/cnd


                      Regards,
                      Igor
                      • 8. Re: OracleStudio12.3 and Red Hat 6.2
                        819184
                        CCompiler: gcc (GCC) 4.4.6 20110731(Red Hat 4.4.6-3)
                        C++ Compiler: gcc (GCC) 4.4.6 20110731(Red Hat 4.4.6-3)
                        Fortran Compiler: not found
                        Assembler: GNU assembler version2.20.51.0.2-5.28.el6 20091009
                        Make Tool: GNU Make 3.81
                        Debugger: GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
                        QMake Tool: not found
                        CMake Tool: not found

                        Igor:

                        This is the output from the "Version Information"

                        Regards - Tom
                        • 9. Re: OracleStudio12.3 and Red Hat 6.2
                          819184
                          Hi Igor:

                          I tried the command 'rm -r $HOME/.solstudio/ide-12.3-Linux-*/var/cache/cnd' in the CLI of my home directory and and root directory. The response was the same in both:


                          rm: cannnot remove '/home/tom/.solstudio/ide-12.3-Linux-*/var/cache/cnd' : No such file or directory

                          thanks - Tom
                          • 10. Re: OracleStudio12.3 and Red Hat 6.2
                            823360
                            OK. let's try the following steps:

                            1. Start IDE from the GNOME menu.
                            2. Go to Help -> About menu.
                            3. Record userdir value at the very end of About box. In my case it is:
                            /home/inikiforov/.solstudio/ide-12.3-Linux-unknown
                            4. Close IDE.
                            5. Go to Terminal.
                            6. Try the following command
                            rm -r <userdir>/var/cache/cnd
                            where <userdir> should be replaced by path recorded on step #3.
                            7. If you got the error that this directory doesn't exists, try the following command
                            rm -r <userdir>/var/cache
                            8. Start IDE and create you project.

                            If this steps still doesn't help you, please, provide the IDE log:
                            it is located in <userdir>/var/log/messages.log*.

                            Regards,
                            Igor
                            • 11. Re: OracleStudio12.3 and Red Hat 6.2
                              823360
                              As for debugging problems.
                              Could you please try to debug some sample application?

                              To do that just follow these steps:
                              1. Start IDE.
                              2. File -> New Project menu, then select Samples -> C/C++/Fortran and choose to create Welcome sample.
                              3. Right-click on the Welcome project in Project View and click Step Into -> debugging process should start and
                              you should stop on the first line of the main function.

                              If above steps are working for you, please, try to play with Welcome debugging some more time: check if breakpoints are working as
                              well as some debugging commands.

                              If everything is OK for you with sample project then please check if Debug mode is used for the project you are working on:
                              1. Right-click on that project and choose Properties.
                              2. Go to C++ Compiler properties and check if Development Mode is set to debug in the active configuration.

                              Regards,
                              Igor


                              Regards,
                              Igor
                              • 12. Re: OracleStudio12.3 and Red Hat 6.2
                                819184
                                Hi Igor:

                                I tried the sequense:

                                1. Start IDE from the GNOME menu.
                                2. Go to Help -> About menu.
                                3. Record userdir value at the very end of About box. In my case it is:
                                /home/inikiforov/.solstudio/ide-12.3-Linux-unknown
                                4. Close IDE.
                                5. Go to Terminal.
                                6. Try the following command
                                rm -r <userdir>/var/cache/cnd
                                where <userdir> should be replaced by path recorded on step #3.
                                7. If you got the error that this directory doesn't exists, try the following command
                                rm -r <userdir>/var/cache
                                8. Start IDE and create you project.

                                The response was : rm: invalid option - - ' / '
                                Try 'rm --help'   for more information

                                Regards - Tom
                                • 13. Re: OracleStudio12.3 and Red Hat 6.2
                                  823360
                                  It looks like that some extra space appeared in the command-line.

                                  The commands should be something like this in my case:
                                  rm -r /home/inikiforov/.solstudio/ide-12.3-Linux-unknown/var/cache/cnd
                                  or
                                  rm -r /home/inikiforov/.solstudio/ide-12.3-Linux-unknown/var/cache
                                  Alike command should be used in your case.

                                  You can also use GNOME to delete these directories. Just don't forget to enable
                                  hidden file displaying unless you won't see .solstudio directory in you home.

                                  Regards,
                                  Igor
                                  • 14. Re: OracleStudio12.3 and Red Hat 6.2
                                    819184
                                    hi Igor:

                                    I reloaded Solaris Studio 12.3 and now SS12.3 is telling me that I don't have gcc. Should I uninstall SS12.3 and reload it?

                                    Regards - Tom
                                    1 2 3 Previous Next