Announcement

Collapse
No announcement yet.

[SOLVED!] - Matlab is installed, but doesn't run

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: Matlab is installed, but doesn't run

    I know that Kubuntu is Ubuntu, but here comes the most strange thing:
    .
    The SAME Matlab I am trying to run in Kubuntu used to run in Ubuntu 10.10!!!!
    .
    All I had to do is change the line "Exec=matlab -desktop" by "Exec=/usr/local/matlab2009b/bin/matlab -desktop" by running the command:
    .
    gedit /usr/share/applications/matlab.desktop
    .
    I tried to do the same in Kubuntu (kdesud kate ...) but it didn't work!
    &quot;Our idols and demons will pursue us untill we learn to let them go.&quot;<br />~Madonna~

    Comment


      #17
      Re: Matlab is installed, but doesn't run

      So, you've tried Matlab in Ubuntu Maverick and it works!
      Here's what I'd do. Install (re-install?) Ubuntu 10.10 and then Matlab. After you get Matlab running, IF you want to install KDE the instructions are here.

      IF you are already running KDE from within Ubuntu then I have no solution for you.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #18
        Re: Matlab is installed, but doesn't run

        God! I can't believe that I will have to format my computer again!
        I spent 4 hours just to install Kubuntu and all the packages that I needed and now I have to re-install them all over again!?!?!
        .
        I was trying to edit matlab.desktop file:
        kdesudo kate /usr/share/application/matlab.desktop
        .
        In the line
        "Exec= matlab -desktop"
        I replaced by:
        "Exec=/usr/local/matlab2010a/bin/matlab -desktop"
        .
        That's exactly what I used to do in Ubuntu 10.10. but here it says:
        .
        "KDEInit could not launch '/usr/local/matlab2009a/bin/matlab'."
        .
        Isn't that really strange
        &quot;Our idols and demons will pursue us untill we learn to let them go.&quot;<br />~Madonna~

        Comment


          #19
          Re: Matlab is installed, but doesn't run

          Originally posted by Gael
          God! I can't believe that I will have to format my computer again!
          I spent 4 hours just to install Kubuntu and all the packages that I needed and now I have to re-install them all over again!?!?!
          .
          I was trying to edit matlab.desktop file:
          kdesudo kate /usr/share/application/matlab.desktop
          .
          In the line
          "Exec= matlab -desktop"
          I replaced by:
          "Exec=/usr/local/matlab2010a/bin/matlab -desktop"
          .
          That's exactly what I used to do in Ubuntu 10.10. but here it says:
          .
          "KDEInit could not launch '/usr/local/matlab2009a/bin/matlab'."
          .
          Isn't that really strange
          Not really. /usr/local/matlab2009a/bin/matlab is owned by root, not by gael. IOW, it is a permission problem.

          Try this: open a Konsole and issue
          kdesudo /usr/local/matlab2010a/bin/matlab -desktop

          Even this may not work if running that ...bin/matlab executable doesn't cause ~/.matlab directory to be created.

          IF kdesudo /usr/local/matlab2010a/bin/matlab -desktop works you can make that the command in a manually made menu entry.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #20
            Re: Matlab is installed, but doesn't run

            After all that we've been discussing, i tried what you said... and it *****works*****!!!!!!!!
            .
            Now, please, how can I create an icon for it?
            &quot;Our idols and demons will pursue us untill we learn to let them go.&quot;<br />~Madonna~

            Comment


              #21
              Re: Matlab is installed, but doesn't run

              This is weird!
              .
              I tried
              .
              /usr/local/matlabR2010a/bin/matlab
              .
              in konsole, and it works perfectly, but if I do Alt + F2 and use the same command, it doesn't work!

              Why is that?
              &quot;Our idols and demons will pursue us untill we learn to let them go.&quot;<br />~Madonna~

              Comment


                #22
                Re: Matlab is installed, but doesn't run

                "alt+F2" runs a program called "krunner", which pops open a dialog into which you can type a command, usually to run a binary. It does not have the same environmental settings as a Konsole does. You can open a Konsole and enter
                env
                and see what its environment settings are.


                Having run the command "/usr/local/matlabR2010a/bin/matlab" in a Konsole....
                Even this may not work if running that ...bin/matlab executable doesn't cause ~/.matlab directory to be created.
                did it create ~/.matlab ?


                Anyway, right mouse on the KGear (Kmenu) and select "Menu Editor"
                Navigate to the heiracrchy directory (in the menu structure) where you want to put the menu item, say "Science and Math"
                Right click on "Science and Math" and select "new item" and give it a name -MatLab. The right panel displays some text fields. Enter what you want in the description field and the comment field.
                In the command: field enter the command that causes MatLab to run:
                /usr/local/matlabR2010a/bin/matlab
                Next to the "Command:" entry text box is a floppy disk icon. That is for navigating graphically to the file matlab under the /usr/local/matlabR2010a/bin/ directory, but if you type it in you don't have to use the file navigator.

                Assigning an icon to MatLab. To the right of the "Name:" and "Description:" text boxes is an area that usually has a question mark icon (or may not). Click on that area to bring up the icon assignment dialog. If MatLab has an app icon you can click the "Other icon" radio button and then click the "Browse" button. Browse to the appropriate directory under /usr/local/matlabR2010/ and locate and select it.


                Click on the "Advanced" tab.

                Set the "Work path", the directory where you want your user created files to be stored and temp files to be created. The floppy icon next to it serves the same purpose as the previous floppy icon.

                The checkbox "Run in terminal" may have to be checked if, when you try this menu item, it doesn't appear to work.
                You can set "Current shortcut key:" (hot-keys) to call it from the keyboard, just be sure you don't use previously assigned hot-keys or you will lose that functionality.

                Now, left click the black Floppy disk "Save" icon in the menu tool bar. When it is saved close the Menu Editor.

                Click on the KGear, navigate to "Science and Math", and under it click on "MatLab". If it runs you are in business. If it doesn't play with the Menu Editor settings for MatLab until it does.


                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #23
                  Re: Matlab is installed, but doesn't run

                  I just fixed it!
                  I had to reinstall Kubuntu, and do exatcly what is says on that tutorial just changing sudo gedit by kdesudo kate, then I changed the line matlab - desktop by /usr/local/matlabR2010a/bin/matlab -desktop!

                  Thank you very much for your support!
                  &quot;Our idols and demons will pursue us untill we learn to let them go.&quot;<br />~Madonna~

                  Comment

                  Working...
                  X