- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Can't install Matlab Runtime even with root privileges - permission denied
36 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I can't install Matlab Runtime. I unzips the file and try to do the command sudo ./install in Terminal, I get the message:
sudo: unable to execute ./install: Permission denied
I have try to change the permissions for the "install" file and the entire folder but that doesn't work either.
I have try to install as root that doesn't work either. I have try to unzip the zip file as root and then do the sudo command afterward.
I have try the command "xhost +" both with and without localuser.
I think I've tried everything possible, so I'm really at a loss and hope someone can help me.
0 Kommentare
Antworten (1)
Hassaan
am 19 Jan. 2024
Check Execution Permissions: Ensure that the 'install' file has execution permissions. You can set the necessary permissions using the chmod command:
chmod +x ./install
Then attempt to run the installation script again with sudo:
sudo ./install
Run with Full Path: Try executing the script with its full path. Navigate to the directory where the install file is located, and then run it:
cd /path/to/matlab_runtime/installation_folder
sudo ./install
Ensure the File System is Not Mounted with 'noexec': Sometimes, the file system might be mounted with the noexec option, which prevents execution of binaries on that mount. Verify the mount options with mount or cat /etc/fstab, and remount without noexec if necessary.
Check for File System Corruption or Read-Only Mode: If the file system has been mounted in read-only mode due to errors, you might need to check for file system corruption. Use fsck to check the file system:
sudo fsck /dev/sdX # Replace /dev/sdX with your actual device, like /dev/sda1
Be careful with this command as it can lead to data loss if used improperly.
Extract with Appropriate Permissions: Sometimes unzipping as root can set owner-only permissions. Ensure you unzip the file with the correct user permissions or change ownership with chown:
sudo chown -R $USER:$USER /path/to/matlab_runtime/installation_folder
Disable Security Features Temporarily: Security features like SELinux or AppArmor might interfere with the installation. You can temporarily disable these features to see if they are causing the issue. For SELinux:
sudo setenforce 0
Make sure to re-enable it with sudo setenforce 1 after the installation.
Consult the Installation Logs: Check if there are any logs generated by the installation script that might give you more details on why the permission is denied.
File Corruption: The downloaded file might be corrupted. Try re-downloading the MATLAB Runtime installer from the official source.
Support Forums and Documentation: If none of the above steps work, consult the MATLAB support forums or the official installation documentation for MATLAB Runtime.
Contact Technical Support: As a last resort, if you are still facing issues, you should contact MathWorks Technical Support for assistance with your installation problem.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Feel free to contact me.
2 Kommentare
Hassaan
am 31 Jan. 2024
Yes. Could be.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests Technical Services and Consulting Embedded Systems | Firmware Developement | Simulations Electrical and Electronics Engineering
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Feel free to contact me.
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!