{"id":3601,"date":"2011-06-13T15:38:12","date_gmt":"2011-06-13T14:38:12","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=3601"},"modified":"2014-04-07T14:48:51","modified_gmt":"2014-04-07T13:48:51","slug":"matlab-2011a-installation-on-linux-mount-permission-issues","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=3601","title":{"rendered":"MATLAB 2011a Installation on Linux &#8211; mount permission issues"},"content":{"rendered":"<p>When installing MATLAB 2011a on Linux you may encounter a huge error message than begins with<\/p>\n<pre>Preparing installation files ...\r\nInstalling ...\r\nException in thread \"main\" com.google.inject.ProvisionException: Guice provision\r\n errors:\r\n\r\n1) Error in custom provider, java.lang.RuntimeException: java.lang.reflect.Invoc\r\nationTargetException\r\n  at com.mathworks.wizard.WizardModule.provideDisplayProperties(WizardModule.jav\r\na:61)\r\n  while locating com.mathworks.instutil.DisplayProperties\r\n  at com.mathworks.wizard.ui.components.ComponentsModule.providePaintStrategy(Co\r\nmponentsModule.java:72)\r\n  while locating com.mathworks.wizard.ui.components.PaintStrategy\r\n    for parameter 4 at com.mathworks.wizard.ui.components.SwingComponentFactoryI\r\nmpl.(SwingComponentFactoryImpl.java:109)\r\n  while locating com.mathworks.wizard.ui.components.SwingComponentFactoryImpl\r\n  while locating com.mathworks.wizard.ui.components.SwingComponentFactory\r\n    for parameter 1 at com.mathworks.wizard.ui.WizardUIImpl.(WizardUIImpl.\r\njava:64)\r\n  while locating com.mathworks.wizard.ui.WizardUIImpl\r\n  while locating com.mathworks.wizard.ui.WizardUI annotated with @com.google.inj\r\nect.name.Named(value=BaseWizardUI)<\/pre>\n<p>This is because you haven&#8217;t mounted the installation disk with the correct permissions. The fix is to run the following command as root.<\/p>\n<pre>mount -o remount,exec \/media\/MATHWORKS_R2011A\/<\/pre>\n<p>Assuming, of course, that \/media\/MATHWORKS_R2011A\/ is your mount point. Hope this helps someone out there.<\/p>\n<p><strong>Update: 7th April 2014<\/strong><br \/>\nA Debian 7.4 user had this exact problem but the above command didn&#8217;t work. We got the following<\/p>\n<pre>mount -o remount,exec \/media\/cdrom0\r\n\r\nmount: cannot remount block device \/dev\/sr0 read-write, is write-protected<\/pre>\n<p>The fix was to modify the command slightly:<\/p>\n<pre>mount -o remount,exec,ro \/media\/cdrom0<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When installing MATLAB 2011a on Linux you may encounter a huge error message than begins with Preparing installation files &#8230; Installing &#8230; Exception in thread &#8220;main&#8221; com.google.inject.ProvisionException: Guice provision errors: 1) Error in custom provider, java.lang.RuntimeException: java.lang.reflect.Invoc ationTargetException at com.mathworks.wizard.WizardModule.provideDisplayProperties(WizardModule.jav a:61) while locating com.mathworks.instutil.DisplayProperties at com.mathworks.wizard.ui.components.ComponentsModule.providePaintStrategy(Co mponentsModule.java:72) while locating com.mathworks.wizard.ui.components.PaintStrategy for parameter 4 at com.mathworks.wizard.ui.components.SwingComponentFactoryI [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,11],"tags":[],"class_list":["post-3601","post","type-post","status-publish","format-standard","hentry","category-linux","category-matlab"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-W5","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/3601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3601"}],"version-history":[{"count":4,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/3601\/revisions"}],"predecessor-version":[{"id":5426,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/3601\/revisions\/5426"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}